Enterprise backend architecture guidelines for NestJS modular design, PostgreSQL connection pooling, Redis BullMQ background jobs, and DTO validation.
Production conventions for scalable, enterprise-grade backend microservices and APIs with NestJS, PostgreSQL, Redis, and BullMQ.
This architecture is deployed in high-concurrency production platforms including Twenty CRM, ToolJet, Novu, AFFiNE, and Logto.
noeviction policy to protect BullMQ queue integrity.Yes — AGENTS.md is the open, cross-tool standard read by Cursor, Claude Code, Windsurf, and 30+ other agents. A dedicated .mdc file is also included for Cursor's native .cursor/rules format.
BullMQ stores job state, delayed-job timers, and queue metadata as Redis keys, and treats that data as durable. If Redis is allowed to evict keys under memory pressure using an LRU or LFU policy, it can silently delete in-flight or delayed jobs along with your cache entries, causing jobs to vanish with no error.
A long-running or CPU-heavy job executing inside the same Node.js process as your HTTP API blocks the single-threaded event loop, causing unrelated API requests to stall. Running workers as dedicated processes isolates job execution from request latency and lets you scale API replicas and worker replicas independently.
Production guidelines for Django 5 enterprise applications, PostgreSQL connection pooling, Redis caching, and Celery async workers.
Production guidelines for FastAPI, Pydantic v2 validation, Async SQLAlchemy 2.0 (asyncpg), Alembic migrations, and PostgreSQL/Redis.
Architecture guidelines for single-binary Go services using the Echo framework, embedded SQLite, and minimal-JS server-rendered UI.
High-throughput systems architecture rules for Go (Golang), pgxpool connection management, sqlc type-safe query generation, and React web dashboards.