| What it is | Opinionated Go framework for microservices with built-in observability and Kubernetes focus | A cloud-native Go microservices framework with a code generation CLI | Go microservices framework for the cloud-native era | Web framework for Go whose builder makes out-of-order setup a compile error |
| Features | - REST by default with simple API
- logs, traces and metrics built in
- gRPC and pub/sub
- circuit breakers and health checks
- migrations and cron jobs
- Swagger rendering
| - adaptive circuit breaker, load shedding, rate limiting and timeout control built in
- goctl code generation for API and RPC services from .api files
- client code generation for iOS, Android, Kotlin, Dart, TypeScript and JavaScript
- automatic request parameter validation
- built-in middleware usable in other frameworks
| - API-first development with Protobuf and generated HTTP/gRPC code
- Unified HTTP and gRPC transport layer
- Middleware for recovery, logging, validation, tracing, metrics and auth
- Pluggable registry, configuration and encoding components
- log/slog based logging with OpenTelemetry extensions
- OpenAPI and error code generation
- kratos CLI to create, generate and run services
- Contrib packages for registries, config stores and observability
| - Compile-time-checked application builder
- Typed path parameters and custom macros
- Central error-to-response mapping
- Dependency injection with lifecycle hooks
- Self-validating JSON binding
- Server-Sent Events and AI streaming
- 31 bundled middleware packages
- In-process test helpers
|