MindaxisSearch for a command to run...
Review system architecture for scalability, maintainability, and correctness.
Structure:
- Clear separation of concerns (presentation, business logic, data access).
- Dependency rule: inner layers don't depend on outer layers.
- Interfaces at boundaries (repositories, services, gateways).
- No circular dependencies between modules/packages.
Data flow:
- Single source of truth for each piece of data.
- Clear data ownership (which service owns which entity).
- Event-driven communication between services if applicable.
- Idempotent operations for retry safety.
API design:
- Consistent naming (REST resources, GraphQL types).
- Versioning strategy (URL path, header, or query param).
- Pagination for list endpoints.
- Rate limiting and authentication on all endpoints.
Scalability:
- Stateless services (session in external store).
- Connection pooling for databases.
- Caching strategy (CDN, Redis, in-memory) with invalidation plan.
- Async processing for long-running operations (queues).
Resilience:
- Graceful degradation when dependencies fail.
- Circuit breakers, timeouts, retries with backoff.
- No single points of failure.
- Disaster recovery and backup strategy.
Нет переменных
npx mindaxis apply architecture-review --target cursor --scope project