
Microservices
Monolith vs modular monolith vs microservices, message patterns, transporters (TCP, Redis, NATS, RabbitMQ, Kafka), communication (sync/async, event-driven), CQRS, event sourcing, client/server
1What is a modular monolith?
What is a modular monolith?
Antwoord
A modular monolith is an application deployed as a single unit but structured into strongly decoupled modules with clear boundaries. Unlike a classic monolith where everything is mixed, the modular monolith organizes code into independent modules that communicate via well-defined interfaces. This approach combines monolith simplicity (single deployment, simple ACID transactions) with microservices maintainability (separation of concerns, clear boundaries).
2What is the main difference between a monolith and microservices?
What is the main difference between a monolith and microservices?
Antwoord
The main difference lies in deployment and independence: a monolith is deployed as a single unit where all components share the same process and database, while microservices are independent services deployed separately with their own databases. Monoliths offer simplicity and easy ACID transactions but face scalability and maintenance issues at scale. Microservices enable independent scaling and autonomous deployments but introduce distributed complexity.
3What is a message pattern in NestJS Microservices?
What is a message pattern in NestJS Microservices?
Antwoord
A message pattern in NestJS defines the communication mode between microservices. There are two main types: request-response (synchronous with expected response) and event-based (asynchronous without response waiting). The @MessagePattern() decorator defines a handler for request-response, while @EventPattern() handles asynchronous events. Pattern choice depends on use case: request-response for operations requiring immediate response, event-based for notifications and eventual consistency.
What is the role of a transporter in NestJS Microservices?
What is the difference between @MessagePattern() and @EventPattern()?
+27 gespreksvragen
Andere Node.js / NestJS-sollicitatieonderwerpen
Node.js Fundamentals
Node.js Core APIs
Asynchronous Programming
Express.js Basics
NestJS Fundamentals
REST API Design
Validation & DTO
API Documentation & Contracts
Error Handling
Unit Testing
Task Scheduling
NestJS Modules & DI
Configuration & Environment Management
JWT Authentication
Authorization & RBAC
Database with TypeORM
Prisma ORM
Middleware & Interceptors
File Upload
WebSockets
GraphQL with NestJS
End-to-End Testing
Caching with Redis
Queues with Bull
DevOps, Logging & CI/CD
Docker & Containerization
Security Best Practices
Performance & Cloud Deployment
Beheers Node.js / NestJS voor je volgende gesprek
Krijg toegang tot alle vragen, flashcards, technische tests, code review-oefeningen en gespreksimulatoren.
Begin gratis