chapter ten
10 Event-driven architecture with Spring Cloud Stream
This chapter covers
- Understanding event-driven architecture processing and its relevance to microservices
- Using Spring Cloud Stream to simplify event processing in your microservices
- Configuring Spring Cloud Stream
- Publishing messages with Spring Cloud Stream and Kafka
- Consuming messages with Spring Cloud Stream and Kafka
- Implementing distributed caching with Spring Cloud Stream, Kafka, and Redis
Human beings are always in a state of motion, interacting with their environment while sending out and receiving information from the things around them. Typically, these conversations aren’t synchronous, linear, or narrowly defined to a request-response model. It’s something more like a message-driven, where we’re constantly sending and receiving messages. As we receive messages, we react to those messages, while often interrupting the primary task that we’re working on.