Production Comes First - An Outside-In Approach to Building Microservices
summary
Argues for building microservices outside-in tests that assert API/message contracts rather than brittle method-level unit tests, using the .NET WebApplicationFactory to run APIs in-memory and injecting tracing spans so tests assert on observability outputs. Shows that services can be refactored (team with ~8,000 outside tests that run in ~10s) without breaking behavior, achieves requirement-driven coverage (approaches 100%), and proposes observability-driven development to design telemetry that proves production behavior.
AI-written summary · about
chapters (10)
- 0:00Introduction and setup
- 3:32Why production matters
- 10:20Feedback loops in development
- 14:16Distributed systems and contracts
- 17:49Outside-in testing approach
- 21:01Test-driven development basics
- 25:36Testing system behavior
- 31:16Observability-driven development
- 36:17Production debugging importance
- 39:10Key takeaways and summary
