~/talk

Build resilient systems with Spring Cloud Contract and Testcontainers

Talkat Spring I/O 2023 · 2023-05-18..05-19· [testing, microservices]
links:none on file
slides:none on file

Example GitHub repo demonstrates a coffee app with waiter and barista exchanging JSON via Kafka while Spring Cloud Contract generates producer tests and a stubs jar that the consumer uses for integration. Tests run against a real Kafka container provided by Testcontainers (Spring Boot 3.1 service-connection wiring), the generated verifier initially fails on a broken producer then passes after fixes, and artifacts (app + stubs) install to local Maven for pipeline and local development use.

AI-written summary · about

  1. 0:00Resilient system testing intro
  2. 8:27Contract tests vs manual stubs
  3. 13:27Spring Cloud Contract with Maven
  4. 22:47Generating and running contract tests
  5. 28:29Consumer integration with stubs
  6. 33:33Testcontainers Kafka setup
  7. 37:50Full round-trip test scenarios
  8. 41:24Local development with Testcontainers
  9. 42:28Team workflows for contracts
  10. 47:05Evolving APIs safely
  11. 49:55Summary and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.