A comprehensive guide to building event-driven microservices using Kafka and NestJS. Covers setting up Kafka with Docker, creating producer and consumer services, implementing message patterns, handling retries and offset management. Demonstrates building an order processing system with two microservices that communicate asynchronously through Kafka events, including practical configuration examples and error handling strategies.

9m read timeFrom telerik.com
Post cover image
Table of contents
What Is Event-Driven Architecture?What Is Kafka?How Does NestJS Help Build Event-Driven Microservices?Spin Up Kafka LocallySet Up NestJS ProjectsProducer Service (order-service)Consumer Service (notification-service)TestingConclusion

Sort: