Effective Microservice Communication and Conversation Patterns
summary
Argues that autonomy drives every communication choice and that no single protocol fits all use cases, comparing HTTP/REST and RPC for the initial synchronous order, durable messaging and queues for back-end work, and publish/subscribe for broadcasts. Uses food-truck and McDonald’s analogies to show a naive single-process reaches ~24 orders/hour while a specialized pipeline can hit ~120/hour. Introduces routing slip and correlation identifier, stresses idempotency, orchestration vs choreography tradeoffs, and shows durable messages and separate read models make distributed systems practical.
AI-written summary · about
chapters (35)
- 0:00Effective Microservice Communication and Conversation Patterns
- 5:21Scaling reality
- 7:24Sound familiar?
- 8:55Business model
- 10:04Further complications - People don't like to wait
- 12:24Solution: Hire more workers !
- 13:39Problem: How do we fulfill an order?
- 15:35First interaction: placing order
- 18:42Patterns Used?
- 19:37Synchronous Request/Response?
- 21:52Idempotency and exactly-once processing
- 22:51Fire-and-forget?
- 23:23Order Flow IRL
- 24:02Routing Slip
- 25:09Managing backlogs of work
- 28:22Larger Chains?
- 30:51Taking Order
- 31:43Processing Order?
- 33:04Step 1: Publish
- 34:10Tracking Completion
- 34:56Step Completion
- 40:24Larger Restaurants
- 41:38Benevolent. Dictator - Chef
- 42:18Starting Order with Waitstaff
- 43:07Starting Order Fulfillment
- 43:55Coordinating Work
- 46:32Orchestration vs Choreography
- 49:24Catalogs and menus
- 50:24Creating the menu
- 51:23Typical solution
- 51:48Equivalent design
- 52:33Better solution
- 54:53Publishing changes
- 56:00Characteristics
- 57:36Parting thoughts
related talks
51mEffective Microservice Communication and Conversation Patterns
54mEfficient Microservice Communication
49mCommunication in a microservice architecture
27mApplication Integration Patterns for Microservices
48mIntegration- and conversation-patterns for microservices
38mMicroservices, a bittersweet symphony
53mEffective Microservice Communication and Conversation Patterns
57mSOA lessons learnt (OR Microservices done better)
