How rakesh-k-ops/ultimate-devops-project-demo works
Project type and purpose
• This is a microservices-based distributed system (the “Astronomy Shop Demo”) illustrating OpenTelemetry instrumentation across many languages.
• It includes a web frontend, mobile (React Native) client, ~12 backend services (Go, Java, .NET, Ruby, NodeJS, Python, Rust, C++), plus supporting infra (Kafka, Envoy, OTEL Collector, Prometheus, Grafana).
File structure
• Top-level services under src/:
· frontend (React/Next.js)
· react-native-app (mobile)
· frontend-proxy (Envoy template)
· ad, cart, checkout, currency, email, fraud-detection, image-provider, load-generator, payment, product-catalog, quote, recommendation, shipping, accounting
• Observability & messaging:
· kubernetes/ manifests deploy each service plus OTEL Collector, Kafka, Prometheus, Grafana
· Protobuf definitions in pb/ and per-service genproto
· test/tracetesting/ – integration tests driven by trace-based scenarios
• Config & infra:
· Docker/Docker-Compose, Makefile, Helm values, OTEL collector config, Prometheus, Grafana provisioning
README for additional insights
• Confirms goal: realistic distributed system, demonstration of OTel across languages
• Mentions both Docker and Kubernetes deployment
• No monolithic DB; each service manages its own state (JSON files or in-memory), with Kafka as an asynchronous event bus
Main components & interactions
a. User clients
• Web UI (Next.js)
• Mobile App (React Native)
b. Edge/proxy layer
• Envoy-based frontend-proxy for ingress, routing HTTP/gRPC
c. API gateway / BFF (optional)
• Next.js API routes under frontend/pages/api
d. Microservices (each in its own container/pod)
• ad (Java/gRPC)
• cart (.NET)
• checkout (Go, Kafka producer)
• currency (C++ gRPC & health)
• email (Ruby)
• fraud-detection (Kotlin)
• image-provider (Nginx static server)
• load-generator (Locust)
• payment (Node.js)
• product-catalog (Go)
• quote (PHP Slim)
• recommendation (Python gRPC)
• shipping (Rust REST/gRPC)
• accounting (.NET Kafka consumer)
e. Messaging & event bus
• Kafka
f. Observability stack
• OpenTelemetry Collector (central)
• Prometheus (metrics)
• Grafana (dashboards)
• Jaeger or OTEL trace backend (via Grafana data sources)
g. Tests (outside production path)
• Tracetesting scenarios hitting services end-to-end
Relationships & data flow
• User → Envoy Ingress → Frontend (Next.js) / API routes
• Frontend & Mobile → backend services (REST/gRPC) via Envoy
• Services communicate synchronously (RPC/HTTP) and asynchronously via Kafka (checkout → accounting, inventory events, etc.)
• All services emit traces/metrics to the OTEL Collector
• Collector exports metrics to Prometheus and traces to Jaeger/Grafana
Architectural patterns & design principles
• Microservices: independently deployed, language-agnostic
• Sidecar or collector pattern: central OTEL Collector instead of per-pod sidecars
• API gateway / edge proxy: Envoy routes and secures traffic
• Event-driven communication: Kafka as durable messaging bus
• Polyglot persistence: JSON, in-memory, bespoke stores per service (no centralized DB)
Essential architectural elements
• Central OTEL Collector feeding Prometheus & Grafana
• Envoy ingress (frontend-proxy) as the single entry point
• Kafka as the bridging fabric between producer/consumer services