Coldbrew
- 6 followers
- Singapore
- https://docs.coldbrew.cloud
ColdBrew
A Kubernetes-native Go microservice framework for building production-grade gRPC services
Documentation · Getting Started · Packages · How-To Guides · Config Reference
ColdBrew is a collection of Go libraries for creating cloud-native microservices. Built for Kubernetes, follows 12-factor principles, production-proven at 100+ microservices handling ~70k QPS each.
What You Get Out of the Box
| Feature | Description |
|---|---|
| gRPC + REST Gateway | Define your API once in protobuf — get gRPC, REST, and Swagger docs automatically via grpc-gateway |
| Structured Logging | Pluggable backends (slog default, zap, logrus) with per-request context fields and trace ID propagation |
| Distributed Tracing | OpenTelemetry, Jaeger, and New Relic support with automatic span creation |
| Prometheus Metrics | Built-in request latency, error rate, and circuit breaker metrics at /metrics |
| Error Tracking | Stack traces, gRPC status codes, and async notification to Sentry, Rollbar, or Airbrake |
| Resilience | Client-side circuit breaking and retries via interceptors |
| Fast Serialization | vtprotobuf codec enabled by default — faster gRPC marshalling with automatic fallback |
| Kubernetes-native | Health/ready probes, graceful SIGTERM shutdown, structured JSON logs, env var config via envconfig or compatible env:-tag loaders |
| Swagger / OpenAPI | Interactive API docs auto-served at /swagger/ from your protobuf definitions |
| Profiling | Go pprof endpoints at /debug/pprof/ for CPU, memory, goroutine, and trace profiling |
| gRPC Reflection | Server reflection enabled by default — works with grpcurl, grpcui, and Postman |
| HTTP Compression | Automatic gzip and zstd compression for all HTTP gateway responses (content-negotiated) |
| Request Validation | Protovalidate annotations enforced automatically on both gRPC and HTTP requests |
| Container-aware Runtime | Auto-tunes GOMAXPROCS to match container CPU limits via automaxprocs |
| CI/CD Pipelines | Ready-to-use GitHub Actions and GitLab CI workflows for build, test, lint, and benchmarks |
| Local Dev Stack | Docker Compose with 19 services across 18 profiles + obs group — databases, caches, brokers, AWS/GCP emulators, Grafana, Jaeger |
Packages
| Package | Description |
|---|---|
| core | gRPC server + HTTP gateway, health checks, metrics, signal handling, graceful shutdown |
| interceptors | gRPC server/client interceptors for logging, tracing, metrics, errors, retries |
| errors | Enhanced errors with stack traces, gRPC status codes, error notification (Sentry/Rollbar) |
| log | Structured logging with pluggable backends (slog default, zap, logrus) |
| tracing | Distributed tracing via OpenTelemetry, Jaeger, New Relic |
| options | Request-scoped key-value store using context |
| grpcpool | Round-robin gRPC connection pool |
| data-builder | Dependency injection with automatic resolution and parallel execution |
| workers | Background worker lifecycle with panic recovery, restart, tracing, and metrics |
Package Dependencies
options → errors → log → tracing → grpcpool → interceptors → data-builder → core
workers ↗
Quick Start
# Install cookiecutter brew install cookiecutter # or: pip install cookiecutter # Generate a new service cookiecutter gh:go-coldbrew/cookiecutter-coldbrew # Build and run cd YourService/ make run
Your service starts with gRPC + REST gateway, Prometheus metrics, health checks, and Swagger UI — all out of the box.
License
All ColdBrew packages are licensed under the Apache License 2.0.
Pinned Loading
-
core core Public
Go microservice framework — gRPC server, HTTP gateway, observability, graceful shutdown
-
interceptors interceptors Public
Chained gRPC interceptors for logging, tracing, Prometheus metrics, circuit breaking, and retries
Go 2
-
errors errors Public
Enhanced Go errors with stack traces, gRPC status codes, and async error notification (Sentry/Rollbar/Airbrake)
Go
-
log log Public
Structured logging with pluggable backends — supports zap, logrus, go-kit, and stdlib
Go 3
-
cookiecutter-coldbrew cookiecutter-coldbrew Public
A cookiecutter template to build golang services powered by ColdBrew
-
tracing tracing Public
Distributed tracing abstraction — OpenTelemetry, OpenTracing, Jaeger, Zipkin, and New Relic
Go
Repositories
Showing 10 of 15 repositories-
core
Public
Go microservice framework — gRPC server, HTTP gateway, observability, graceful shutdown
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/core's past year of commit activity Go 7 Apache-2.0 4 1 6 Updated Sep 17, 2026 -
interceptors
Public
Chained gRPC interceptors for logging, tracing, Prometheus metrics, circuit breaking, and retries
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/interceptors's past year of commit activity Go 0 Apache-2.0 2 0 8 Updated Sep 17, 2026 -
docs.coldbrew.cloud
Public
Documentation site for ColdBrew — docs.coldbrew.cloud
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/docs.coldbrew.cloud's past year of commit activity TypeScript 0 0 0 8 Updated Aug 5, 2026 -
tracing
Public
Distributed tracing abstraction — OpenTelemetry, OpenTracing, Jaeger, Zipkin, and New Relic
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/tracing's past year of commit activity Go 0 Apache-2.0 0 0 4 Updated Jul 10, 2026 -
log
Public
Structured logging with pluggable backends — supports zap, logrus, go-kit, and stdlib
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/log's past year of commit activity Go 0 Apache-2.0 3 0 5 Updated Jul 10, 2026 -
data-builder
Public
Dependency injection framework that compiles builder functions into an execution plan with automatic dependency resolution and parallel execution
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/data-builder's past year of commit activity Go 0 Apache-2.0 0 0 5 Updated Jul 10, 2026 -
errors
Public
Enhanced Go errors with stack traces, gRPC status codes, and async error notification (Sentry/Rollbar/Airbrake)
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/errors's past year of commit activity Go 0 Apache-2.0 0 0 4 Updated Jul 10, 2026 -
hystrixprometheus
Public
hystrixprometheus provides a Prometheus metrics collector for Hystrix (https://github.com/afex/hystrix-go). This is a workaround for hystrix-go not supporting the prometheus registry
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/hystrixprometheus's past year of commit activity Go 2 Apache-2.0 3 0 4 Updated Jul 10, 2026 -
options
Public
Request-scoped key-value metadata store using sync.Map in context — used by ColdBrew interceptors to propagate metadata across gRPC boundaries
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/options's past year of commit activity Go 0 Apache-2.0 0 0 4 Updated Jul 10, 2026 -
workers
Public
Standalone worker lifecycle library for Go — built on suture with builder pattern, WorkerContext, and helpers
Uh oh!
There was an error while loading. Please reload this page.
go-coldbrew/workers's past year of commit activity Go 0 Apache-2.0 0 0 4 Updated Jul 10, 2026
People
Top languages
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.