DZone

In an event-driven architecture, the microservices are often integrated using the pubsub (publisher-subscriber) model and connected to each other by messaging platforms such as Kafka, RabbitMQ, etc. Typically a microservice in event-driven architecture acts either as producer/consumer or both.

In this post, we will see what to have in component tests for an event-driven microservice. But before that, we will understand what component testing is and how it’s different from unit testing.

Source: DZone