In this section, we will learn how to develop event-driven and asynchronous versions of the create and delete services. The composite service will publish create and delete events on each core service topic and then return a OK response back to the caller without waiting for processing to take place in the core services. This is illustrated in the following diagram:
We will cover the following topics:
- Configuring Spring Cloud Stream to handle challenges with messaging
- Defining topics and events
- Changes in Gradle build files
- Publishing events in the composite service
- Consuming events in the core services