Testing message driven applications with Spring
summary
Concrete workflow for message driven apps using RabbitMQ and Spring Boot with Spring Cloud Stream for channels and TestingBinder MessageCollector to capture outgoing messages during integration tests. Shows generated tests from Spring Cloud Contract DSL for messaging, demo apps that run end to end and tests that go green. Explains transaction pitfalls and offers fixes: register a post commit callback or use an outbox publisher that persists events and retries, accepting at-least-once delivery and consumer idempotency.
AI-written summary · about
chapters (9)
- 0:00Start
- 4:17Self-Describing Test Scenarios
- 11:36Temporal Coupling
- 12:34Special Coupling
- 15:23Write a Test
- 23:16Integration Test
- 31:43Messaging Consumer
- 39:02Recap All those Testing Best Practices
- 40:12Recap
related talks
48mTesting Your Message-Driven Application
51mSpring Cloud Stream: Developer Recipes, Tips and Tricks
51mEvent Driven with Spring
01h 17mMessage Driven Microservices in the Cloud
01h 12mCloud Event Driven Architectures with Spring Cloud Stream 2.0
44mBuild Resilient Systems with Spring Cloud Contract and Testcontainers
53mSpring and Messaging: The next development generation
01h 15mApplied Spring Integration, Spring AMQP and RabbitMQ in Spring XD
