Testing reactive Java microservices using MicroShed Testing framework
Learn how to test reactive Java microservices in true-to-production environments using MicroShed Testing. Ensure consistent performance and minimize differences between development and production environments with this comprehensive guide.
At a Glance
Learn how to test reactive Java microservices in true-to-production environments using MicroShed Testing.
You will learn how to write integration tests for reactive Java microservices and to run the tests in true-to-production environments by using containers with MicroShed Testing. MicroShed Testing tests your containerized application from outside the container so that you are testing the exact same image that runs in production. The reactive application in this guide sends and receives messages between services by using an external message broker, Apache Kafka. Using an external message broker enables asynchronous communications between services so that requests are non-blocking and decoupled from responses. You can learn more about reactive Java services that use an external message broker to manage communications in the Creating reactive Java microservices guide.
Tests sometimes pass during the development and testing stages of an application’s lifecycle but then fail in production because of differences between your development and production environments. While you can create mock objects and custom setups to minimize differences between environments, it is difficult to mimic a production system for an application that uses an external messaging system. MicroShed Testing addresses this problem by enabling the testing of applications in the same Docker containers that you’ll use in production. As a result, your environment remains the same throughout the application’s lifecycle – from development, through testing, and into production. You can learn more about MicroShed Testing in the Testing a MicroProfile or Jakarta EE application guide.
User Reviews
Be the first to review “Testing reactive Java microservices using MicroShed Testing framework”
You must be logged in to post a review.

There are no reviews yet.