~/talk

Applying microservices patterns to a modular monolith

Talkat RailsConf 2023 · 2023-04-24..04-26· [microservices]
links:none on file
slides:none on file

Claims that microservices patterns can enforce data consistency inside a modular monolith by using Saga choreography, a transactional outbox and one-database-per-domain. Implements a Rails multi-database demo with packwerk modular structure, Kafka plus Kafka Connect and the ruby kafka gem, feature flags and local transactions. Builds a user registration + meetings example, shows a happy path and a deliberate failure that emits a member_created_failed event and rolls back to a waiting‑for‑confirmation state, proving the approach works in the demo.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47Monoliths to microservices journey
  3. 3:12Monolith growing pains
  4. 4:57Bad microservices challenges
  5. 6:26Modular monoliths approach
  6. 8:10Microservices patterns in monoliths
  7. 8:51Example domains
  8. 10:19Distributed transactions
  9. 12:05Data consistency patterns
  10. 13:27Microservices patterns explained
  11. 16:22Indirect domain communication
  12. 17:06Registration flow and Saga
  13. 20:38Tech stack details
  14. 24:54Live demo success
  15. 25:16Live demo failure and rollback
  16. 28:50Error handling in monoliths
  17. 29:54Code structure and events
  18. 33:09Key takeaways and repo
  19. 34:11Q&A
~/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.