Effective Microservice Communication and Conversation Patterns
2
Scaling reality
3
Sound familiar?
4
Business model
5
Further complications - People don't like to wait
6
Solution: Hire more workers !
7
Problem: How do we fulfill an order?
8
First interaction: placing order
9
Patterns Used?
10
Synchronous Request/Response?
11
Idempotency and exactly-once processing
12
Fire-and-forget?
13
Order Flow IRL
14
Routing Slip
15
Managing backlogs of work
16
Larger Chains?
17
Taking Order
18
Processing Order?
19
Step 1: Publish
20
Tracking Completion
21
Step Completion
22
Larger Restaurants
23
Benevolent. Dictator - Chef
24
Starting Order with Waitstaff
25
Starting Order Fulfillment
26
Coordinating Work
27
Orchestration vs Choreography
28
Catalogs and menus
29
Creating the menu
30
Typical solution
31
Equivalent design
32
Better solution
33
Publishing changes
34
Characteristics
35
Parting thoughts
Description:
Explore effective microservice communication and conversation patterns in this comprehensive conference talk. Delve into the challenges of orchestration, choreography, sagas, and process management in microservice architectures. Learn how to design service communication that maintains autonomy and achieves intended purposes. Examine basic communication patterns, their limitations, and how advanced conversational patterns can enhance loose coupling. Discover real-world scenarios for complex coordination and practical applications of conversation patterns. Gain insights into scaling microservices, managing order fulfillment, coordinating work across services, and implementing effective catalog and menu systems. Understand the pros and cons of orchestration versus choreography approaches, and leave with valuable parting thoughts on building robust microservice ecosystems.
Effective Microservice Communication and Conversation Patterns