Home
Scalable Systems
Scalable Systems Consul Service Registration Example
Scalable Systems Consul Service Registration Example
Auto-Scaling Caching Cloud Infrastructure Distributed Systems High Availability Infrastructure Load Balancing Message Queues Platform Engineering Scalable Architecture Service Discovery
Scalable Systems Consul Service Registration Example is an example object payload from Scalable Systems, with 1 top-level field. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
example
Example Payload
{
"example": {
"title": "Consul Service Registration and Health Check",
"description": "Example Consul API call to register a microservice instance with health checks for service discovery in a scalable distributed system.",
"request": {
"method": "PUT",
"url": "http://localhost:8500/v1/agent/service/register",
"headers": {
"Content-Type": "application/json",
"X-Consul-Token": "{{CONSUL_TOKEN}}"
},
"body": {
"ID": "payment-service-instance-1",
"Name": "payment-service",
"Tags": ["v2", "production", "payments"],
"Address": "10.0.1.42",
"Port": 8080,
"Meta": {
"version": "2.3.1",
"region": "us-east-1",
"environment": "production"
},
"Checks": [
{
"CheckID": "payment-service-http-check",
"Name": "HTTP health check",
"HTTP": "http://10.0.1.42:8080/healthz",
"Interval": "10s",
"Timeout": "3s",
"DeregisterCriticalServiceAfter": "90s"
},
{
"CheckID": "payment-service-grpc-check",
"Name": "gRPC health check",
"GRPC": "10.0.1.42:9090",
"GRPCUseTLS": false,
"Interval": "10s",
"Timeout": "3s"
}
],
"Weights": {
"Passing": 10,
"Warning": 1
}
}
},
"response": {
"status": 200,
"body": null,
"description": "Empty 200 response indicates successful service registration."
},
"discovery": {
"description": "After registration, other services can discover this instance via:",
"dnsQuery": "payment-service.service.consul",
"httpQuery": "GET http://localhost:8500/v1/health/service/payment-service?passing=true",
"response": [
{
"Node": {
"ID": "node-id-uuid",
"Node": "worker-node-1",
"Address": "10.0.1.42"
},
"Service": {
"ID": "payment-service-instance-1",
"Service": "payment-service",
"Tags": ["v2", "production", "payments"],
"Address": "10.0.1.42",
"Port": 8080
},
"Checks": [
{
"CheckID": "payment-service-http-check",
"Status": "passing",
"Output": "HTTP GET http://10.0.1.42:8080/healthz: 200 OK"
}
]
}
]
}
}
}
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/scalable-systems-consul-service-registration-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.