Running manual tests of the reactive microservice landscape
Now, we have fully reactive microservices, both in terms of non-blocking synchronous REST APIs and event-driven asynchronous services. Let's try them out!We will learn how to run tests using both RabbitMQ and Kafka as the message broker. Since RabbitMQ can be used both with and without partitions, we will test both cases. Three different configurations will be used, each defined in a separate Docker Compose file:
- Using RabbitMQ without the use of partitions
- Using RabbitMQ with two partitions per topic
- Using Kafka with two partitions per topic
However, before testing these three configurations, we need to add two features to be able to test the asynchronous processing:
- Saving events for later inspection when using RabbitMQ
- A health API that can be used to monitor the state of the microservice landscape
Saving events
After running some tests on event-driven asynchronous services, it might be of interest to see what events...