Skip to content

ColdBrew

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 (go-kit, 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
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 compression for all HTTP gateway responses
Container-aware Runtime Auto-tunes GOMAXPROCS to match container CPU limits via automaxprocs

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 (go-kit, zap, logrus)
tracing Distributed tracing via OpenTelemetry, OpenTracing, 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

Package Dependencies

options → errors → log → tracing → grpcpool → interceptors → data-builder → core

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

  1. core core Public

    Go microservice framework — gRPC server, HTTP gateway, observability, graceful shutdown

    Go 5 3

  2. interceptors interceptors Public

    Chained gRPC interceptors for logging, tracing, Prometheus metrics, circuit breaking, and retries

    Go 2

  3. errors errors Public

    Enhanced Go errors with stack traces, gRPC status codes, and async error notification (Sentry/Rollbar/Airbrake)

    Go

  4. log log Public

    Structured logging with pluggable backends — supports zap, logrus, go-kit, and stdlib

    Go 3

  5. cookiecutter-coldbrew cookiecutter-coldbrew Public

    A cookiecutter template to build golang services powered by ColdBrew

    Python 5 1

  6. tracing tracing Public

    Distributed tracing abstraction — OpenTelemetry, OpenTracing, Jaeger, Zipkin, and New Relic

    Go

Repositories

Showing 10 of 14 repositories
  • errors Public

    Enhanced Go errors with stack traces, gRPC status codes, and async error notification (Sentry/Rollbar/Airbrake)

    go-coldbrew/errors’s past year of commit activity
    Go 0 Apache-2.0 0 0 1 Updated Mar 24, 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

    go-coldbrew/hystrixprometheus’s past year of commit activity
    Go 2 Apache-2.0 3 0 0 Updated Mar 24, 2026
  • docs.coldbrew.cloud Public

    Documentation site for ColdBrew — docs.coldbrew.cloud

    go-coldbrew/docs.coldbrew.cloud’s past year of commit activity
    TypeScript 0 0 0 0 Updated Mar 24, 2026
  • .github Public

    Organization-wide community health files and profile for ColdBrew

    go-coldbrew/.github’s past year of commit activity
    0 0 0 0 Updated Mar 24, 2026
  • core Public

    Go microservice framework — gRPC server, HTTP gateway, observability, graceful shutdown

    go-coldbrew/core’s past year of commit activity
    Go 5 Apache-2.0 3 0 1 Updated Mar 24, 2026
  • grpcpool Public

    Round-robin gRPC connection pool implementing grpc.ClientConnInterface

    go-coldbrew/grpcpool’s past year of commit activity
    Go 0 BSD-3-Clause 1 0 0 Updated Mar 24, 2026
  • tracing Public

    Distributed tracing abstraction — OpenTelemetry, OpenTracing, Jaeger, Zipkin, and New Relic

    go-coldbrew/tracing’s past year of commit activity
    Go 0 Apache-2.0 0 0 1 Updated Mar 24, 2026
  • options Public

    Request-scoped key-value metadata store using sync.Map in context — used by ColdBrew interceptors to propagate metadata across gRPC boundaries

    go-coldbrew/options’s past year of commit activity
    Go 0 Apache-2.0 0 0 0 Updated Mar 24, 2026
  • log Public

    Structured logging with pluggable backends — supports zap, logrus, go-kit, and stdlib

    go-coldbrew/log’s past year of commit activity
    Go 0 Apache-2.0 3 0 1 Updated Mar 24, 2026
  • cookiecutter-coldbrew Public

    A cookiecutter template to build golang services powered by ColdBrew

    go-coldbrew/cookiecutter-coldbrew’s past year of commit activity
    Python 5 MIT 1 0 0 Updated Mar 23, 2026

Top languages

Loading…

Most used topics

Loading…