feat: G4-G6 infrastructure (observability, Kafka, Temporal, Kamal)#11
Open
maurcarvalho wants to merge 1 commit into
Open
feat: G4-G6 infrastructure (observability, Kafka, Temporal, Kamal)#11maurcarvalho wants to merge 1 commit into
maurcarvalho wants to merge 1 commit into
Conversation
… Kamal, docker-compose) - G6: Add observability library (module-scoped logger, metrics, tracer, trace propagation) - G6: Add Prometheus alert rules and Grafana dashboard configs - G4: Add InventoryGateway (Anti-Corruption Layer pattern) - G4: Add order fulfillment workflow with Temporal SDK + compensating actions - G4: Add KafkaEventPublisher (optional event transport) - G5: Expand docker-compose.yml to 11 services (postgres, redis, kafka, temporal, jaeger, prometheus, grafana) - G5: Add GitHub Actions CI workflow with nx affected - G5: Add Kamal deployment config (config/deploy.yml) - G5: Update docker-compose.l3.yml with full infrastructure - G5: Add api Dockerfile Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the gap between thesis G4-G6 code listings and the actual Tiny Store codebase. Every file path and code listing referenced in the thesis now exists in the repo.
G6 — Observability
libs/shared/infrastructure/src/observability/— module-scoped logger, metrics factory, tracer, trace propagationinfra/prometheus/alerts.yml— module-scoped Prometheus alert rulesinfra/prometheus/prometheus.yml— scrape configinfra/grafana/dashboards/module-overview.json— 4-row per-module dashboard (request rate, error rate, p95 latency)infra/grafana/provisioning/dashboards.ymlG4 — Migration Readiness
libs/modules/orders/src/gateways/inventory-gateway.ts— Anti-Corruption Layer pattern (InventoryGateway interface + InProcessInventoryGateway)libs/modules/orders/src/workflows/— Temporal SDK saga (order-fulfillment workflow with compensating actions)libs/shared/infrastructure/src/messaging/kafka-event-publisher.ts— KafkaJS publisher with W3C trace context header injectionG5 — Deployment Strategy
docker-compose.yml— 11 services (api, postgres, redis, zookeeper, kafka, temporal, temporal-ui, jaeger, prometheus, grafana)docker-compose.l3.yml— extended with full infra + orders-service extraction.github/workflows/ci.yml— GitHub Actions withnx affectedapps/api/Dockerfile— production multi-stage buildconfig/deploy.yml— Kamal deployment (Traefik + Let's Encrypt SSL).kamal/secretsDependencies Added
@opentelemetry/apikafkajs@temporalio/client,@temporalio/worker,@temporalio/workflow,@temporalio/activityVerification