Slide 1

Slide 1 text

© 2024 All Rights Reserved Using API specs as executable contracts to mock and test microservices @harikrishnan83 Hari Krishnan Co-Founder and CTO at Specmatic

Slide 2

Slide 2 text

© 2024 All Rights Reserved Production Mode Client Order Service place_order process_order notification 4 Send 1 Receive 2 Send 3 Send Receive 5

Slide 3

Slide 3 text

© 2024 All Rights Reserved Test Google Pub Sub Dependencies place_order process_order notification PubSub Emulator Test Mode – Contract Test Setup System Under Test Order Service 1 Send 2 Receive 3 Send 4 Send Verify message count and schema 5 The messages adhere to the schema defined in the spec Message is received on process_order and notification topics Contract Test

Slide 4

Slide 4 text

© 2023 All Rights Reserved Live Demo Google PubSub - Contract Testing with AsyncAPI specifications

Slide 5

Slide 5 text

© 2024 All Rights Reserved API Design First API Consumers API Providers Architects App Sec

Slide 6

Slide 6 text

© 2024 All Rights Reserved Contract Driven Development – In a nutshell Consumer Provider API Design First • Shift Left all the way to Design • Reduced time-to-market due to Parallel Development • Enhanced DevEx with improved Collaboration • Resilient API Building Blocks

Slide 7

Slide 7 text

© 2024 All Rights Reserved Sample projects Google Pub Sub - https://github.com/znsio/specmatic-google-pubsub-sample Kafka - https://github.com/znsio/specmatic-kafka-sample

Slide 8

Slide 8 text

@harikrishnan83 [email protected] https://specmatic.io/ Thank you!