internal/website/docs/guides/comparison.md
How Go Micro compares to other Go microservices frameworks.
| Feature | Go Micro | go-kit | gRPC | Dapr |
|---|---|---|---|---|
| Learning Curve | Low | High | Medium | Medium |
| Boilerplate | Low | High | Medium | Low |
| Plugin System | Built-in | External | Limited | Sidecar |
| Service Discovery | Yes (mDNS, Consul, etc) | No (BYO) | No | Yes |
| Load Balancing | Client-side | No | No | Sidecar |
| Pub/Sub | Yes | No | No | Yes |
| Transport | HTTP, gRPC, NATS | BYO | gRPC only | HTTP, gRPC |
| Zero-config Dev | Yes (mDNS) | No | No | No (needs sidecar) |
| Production Ready | Yes | Yes | Yes | Yes |
| Language | Go only | Go only | Multi-language | Multi-language |
go-kit (requires more setup):
// Define service interface
type MyService interface {
DoThing(ctx context.Context, input string) (string, error)
}
// Implement service
type myService struct{}
func (s *myService) DoThing(ctx context.Context, input string) (string, error) {
return "result", nil
}
// Create endpoints
func makeDo ThingEndpoint(svc MyService) endpoint.Endpoint {
return func(ctx context.Context, request interface{}) (interface{}, error) {
req := request.(doThingRequest)
result, err := svc.DoThing(ctx, req.Input)
if err != nil {
return doThingResponse{Err: err}, nil
}
return doThingResponse{Result: result}, nil
}
}
// Create transport (HTTP, gRPC, etc)
// ... more boilerplate ...
Go Micro (simpler):
type MyService struct{}
type Request struct {
Input string `json:"input"`
}
type Response struct {
Result string `json:"result"`
}
func (s *MyService) DoThing(ctx context.Context, req *Request, rsp *Response) error {
rsp.Result = "result"
return nil
}
func main() {
svc := micro.NewService("myservice")
svc.Init()
svc.Handle(new(MyService))
svc.Run()
}
You can use gRPC with Go Micro for native gRPC compatibility:
import (
grpcServer "go-micro.dev/v6/server/grpc"
grpcClient "go-micro.dev/v6/client/grpc"
)
svc := micro.NewService("myservice",
micro.Server(grpcServer.NewServer()),
micro.Client(grpcClient.NewClient()),
)
See Native gRPC Compatibility for a complete guide.
ADK (Agent Development Kit) is Google's open-source, code-first
framework for building AI agents. It spans several languages (Python, TypeScript,
Go, Java, Kotlin); adk-go is the Go
implementation. It's model-agnostic (optimized for Gemini), speaks MCP and A2A,
and supports multi-agent systems, evaluation, and deployment to Cloud Run / GKE.
They overlap on agents but solve different problems. ADK is a library for building an agent process — you define an agent, its tools, and a model, then run and deploy it. Go Micro is the harness around agents once they operate real systems: service discovery, inter-service RPC, pub/sub, durable flows, tool execution, and deployment. Those pieces are out of scope for ADK, and you bring your own.
In Go Micro an agent is built as an ordinary service: it registers in the registry,
is callable by RPC (Agent.Chat) and over A2A, and other services and agents
discover and call it the same way they call anything else. Its endpoints are exposed
as MCP tools automatically. So once you have more than one agent or service, Go Micro
also gives you the discovery, RPC, pub/sub, config, and deployment around them.
| Go Micro | Google ADK | |
|---|---|---|
| Primary unit | A harnessed service (an agent is a service with an LLM inside) | An agent |
| Service discovery / registry | Built-in (mDNS, Consul, etcd) | Not in scope |
| Inter-service RPC, load balancing, pub/sub | Built-in | Not in scope |
| MCP | Every service endpoint is automatically an MCP tool (no extra code) | MCP tools, wired explicitly |
| A2A | Agents are A2A-reachable services | Supported |
| Deterministic orchestration | Flows | Graph workflows |
| Multi-agent | Agents discover & call each other via the registry; plan/delegate built in | Composition, routing, workflow patterns |
| Evaluation suite | Harnesses/conformance today; first-class evaluation is a gap | Yes (criteria, user/env simulation, metrics) |
| Context engineering | Store-backed memory | "Context as source code" (auto filter/summarize/token tracking) |
| Languages | Go | Python, TypeScript, Go, Java, Kotlin |
| Backing | Community |
Both speak MCP and A2A, so this isn't strictly either/or: a Go Micro agent and an ADK agent (in any language) can call each other over A2A, and either can consume the other's MCP tools. A common pattern is to run Go Micro as the service mesh / runtime and let ADK (or any A2A agent) plug into it.
tRPC-Agent-Go (maintained by tRPC-Group, validated inside Tencent) is a production-grade Go framework for agent systems: LLM / Chain / Parallel / Cycle / Graph agents, function tools, MCP, A2A, AG-UI, Redis memory and RAG, evaluation, agent self-evolution, and OpenTelemetry. It's a serious, well-resourced project.
They overlap heavily on agents but take a different approach. tRPC-Agent-Go is an agent SDK you run alongside your services — you compose agents and tools into graphs and conditional workflows, and your microservices (tRPC) live separately and are called into. Go Micro starts from the premise that an agent is a service — one runtime where every endpoint is automatically a tool, an agent registers and is discovered and load-balanced like anything else, and workflows are durable code paths rather than a graph DSL. The premise is that the line between "your services" and "your agents" is accidental complexity; remove it and there's less to wire and keep in sync.
| Go Micro | tRPC-Agent-Go | |
|---|---|---|
| Primary unit | A harnessed service (an agent is a service with an LLM inside) | An agent |
| Orchestration | Durable flow steps + Loop — plain code paths | Graph / Chain / Parallel / Cycle agents (graph DSL) |
| Services as tools | Every endpoint is automatically an MCP tool | Function tools + MCP, wired explicitly |
| Service runtime | Built in — agents are services (registry, RPC, load balancing, pub/sub) | Runs alongside your existing service stack (tRPC) |
| MCP / A2A | Both, generated from the registry | Both |
| Evaluation / self-evolution | Verification loop on the roadmap; not yet first-class | First-class today |
| Memory / RAG | Store-backed memory (Postgres, NATS KV, file); RAG on the roadmap | In-memory / Redis memory; RAG today |
| Observability | OpenTelemetry run timelines, micro runs | OpenTelemetry, Langfuse examples |
| Backing | Independent, community | tRPC-Group / Tencent |
Both speak MCP and A2A, so a Go Micro agent and a tRPC-Agent-Go agent can call each other over A2A, and either can consume the other's MCP tools. You can run Go Micro as the service-and-agent runtime and still reach an agent built on tRPC-Agent-Go.
Go Micro: Built-in with plugins
// Zero-config for dev
svc := micro.NewService("myservice")
// Consul for production
reg := consul.NewRegistry()
svc := micro.NewService("myservice", micro.Registry(reg))
go-kit: Bring your own
// You implement service discovery
// Can be 100+ lines of code
gRPC: No built-in discovery
// Use external solution like Consul
// or service mesh like Istio
Go Micro: Client-side, pluggable strategies
// Built-in: random, round-robin
selector := selector.NewSelector(
selector.SetStrategy(selector.RoundRobin),
)
go-kit: Manual implementation
// You implement load balancing
// Using loadbalancer package
gRPC: Via external load balancer
# Use external LB like Envoy, nginx
Go Micro: First-class
broker.Publish("topic", &broker.Message{Body: []byte("data")})
broker.Subscribe("topic", handler)
go-kit: Not provided
// Use external message broker directly
// NATS, Kafka, etc
gRPC: Streaming only
// Use bidirectional streams
// Not traditional pub/sub
See specific migration guides:
Coming Soon:
Choose Go Micro if:
Choose go-kit if:
Choose gRPC if:
Choose Dapr if:
Rough benchmarks (requests/sec, single instance):
| Framework | Simple RPC | With Discovery | With Tracing |
|---|---|---|---|
| Go Micro | ~20k | ~18k | ~15k |
| gRPC | ~25k | N/A | ~20k |
| go-kit | ~22k | N/A | ~18k |
| HTTP std | ~30k | N/A | N/A |
Benchmarks are approximate and vary by configuration
Start with Go Micro if you're building Go microservices and want to move fast. You can always:
micro.Transport(grpc.NewTransport())The pluggable architecture means you're not locked in.