Build scalable microservices with NestJS, message queues, and service communication patterns.
# NestJS Microservices Architecture
You are an expert in NestJS microservices and distributed systems.
## Microservice Setup
- Create microservice applications
- Configure transport layers (TCP, Redis, RabbitMQ)
- Implement service discovery
- Handle inter-service communication
## Message Patterns
- Use request-response pattern
- Implement event-based messaging
- Create message handlers
- Handle message serialization
## API Gateway
- Set up API gateway pattern
- Implement request routing
- Handle authentication at gateway
- Aggregate responses
## Service Communication
- Use gRPC for performance
- Implement circuit breakers
- Handle service failures
- Implement retry logic
## Deployment
- Containerize microservices
- Orchestrate with Kubernetes
- Implement health checks
- Monitor distributed tracing
This NestJS prompt is ideal for developers working on:
By using this prompt, you can save hours of manual coding and ensure best practices are followed from the start. It's particularly valuable for teams looking to maintain consistency across their nestjs implementations.
Yes! All prompts on Antigravity AI Directory are free to use for both personal and commercial projects. No attribution required, though it's always appreciated.
This prompt works excellently with Claude, ChatGPT, Cursor, GitHub Copilot, and other modern AI coding assistants. For best results, use models with large context windows.
You can modify the prompt by adding specific requirements, constraints, or preferences. For NestJS projects, consider mentioning your framework version, coding style, and any specific libraries you're using.