Node.js AdvancedLesson 89Free preview
Microservices
This lesson is part of Node.js · All levels
Summary
This lesson explains the application of microservice patterns with Node.js: breaking down large applications into small services that communicate via an API or message. You'll learn the principles of bounded context, sync communications, and messaging queues, as well as challenges such as tracing and failure management.
Key points
- Microservice: a small independent service, owned and deployed separately.
- Sync communication: REST/HTTP or gRPC; async: RabbitMQ, Kafka, Redis Streams.
- Polyglot persistence: each service can have its own database.
- Problems to anticipate: partial failure, dual write, and eventual consistency.
- Apply circuit breaker, timeout, and retry with a backoff for resistance.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.