~/talk

Not Just Events: Developing Asynchronous Microservices

Talkat GOTO Chicago 2019 · 2019-04-29..04-30· [microservices]
slides:none on file

Explains how to implement distributed transactions with sagas (local steps, compensating rollbacks) and when to use choreography vs orchestration; shows an order/customer example that uses a pending order state and a credit reservation step, sagas target tens of milliseconds. Describes atomic publish/update via transactional outbox (DB outbox table or tailing MySQL binlog / Postgres write-ahead log) and using CQRS with MongoDB/Elasticsearch for complex queries, noting typical replication lag ~20 ms and at-least-once delivery tradeoffs.

AI-written summary · about

  1. 0:00Start
  2. 3:57Service = independently deployable component
  3. 10:09Querying across services is not straightforward
  4. 11:15Use Sagas instead of 2PC
  5. 12:51Saga design challenges
  6. 14:56How do the saga participants
  7. 18:49How to sequence the saga transactions?
  8. 19:49Choreography-based Create Order Saga
  9. 21:49Benefits and drawbacks of choreography
  10. 24:51Saga orchestrator behavior
  11. 26:18CreateOrder Saga orchestrator
  12. 28:16Benefits and drawbacks of orchestration Benefits
  13. 30:38API Composition pattern
  14. 34:52Command Query Responsibility Segregation (CQRS)
  15. 36:38Handling replication lag
  16. 38:39Messaging must be transactional
  17. 39:10Publish to message broker first?
  18. 42:10Event sourcing guarantees: state change = event is published
  19. 44:27Spring Data for JPA example
  20. 44:44Transactional Outbox pattern
  21. 45:51Transaction log tailing
  22. 46:33Polling the message table
  23. 48:28Summary
~/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.