"The Core Backbone for YA Holdings Microservices."
📋 Basic Information
📊 Architecture Overview
- Full-stack Integration: tRPC + Express + Prisma + Redis.
- Enterprise-Ready: Read Replicas, Transaction Management, and Structured Logging.
- Type Safety: End-to-End safety via Zod + Prisma + tRPC.
- Microservices Ready: Built-in Proxy support and Health Checks.
- Context Management: Advanced request tracking using
AsyncLocalStorage.
🎯 Core Modules & Functionality
1.1 HTTP Server Layer (app/server)
Key Features:
- Express-based HTTP server.
- Integrated CORS (Pre-configured for all origins).
- Request ID Middleware (ULID generation).
- Proxy Middleware (
http-proxy-middleware).
- Health check endpoints and custom route support.
- Request context management via
AsyncLocalStorage.
- Automatic Header Propagation: Custom patched
fetch function to pass headers across services.