DAGDA SEARCH | Back to results | Support

Coldbrew · GitHub

Source: https://github.com/go-coldbrew

@go-coldbrew

Coldbrew

README.md

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 (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

  1. core core Public

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

    Go 7 4

  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

    Go 5 1

  6. tracing tracing Public

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

    Go

Repositories

Showing 10 of 15 repositories View all repositories

People

@ankurs

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.