~/talk

The Circle Of Lifecycle Events

Talkat RailsConf 2020 CE · 2020-05-04..05-05· [frontend-architecture, ruby-on-rails]
links:none on file
slides:none on file

Argues that the crucial claim is: callbacks should only modify their own model, not create or update associated records; uses ActiveRecord::Transaction for atomic multi-record creates and extracts signup logic into service objects or procedures so controllers stay skinny; for distributed systems it publishes lifecycle events via RabbitMQ and Kafka; reports these patterns hold at scale (MX-style platforms serving 20+ million users) and prevent orphaned records, race conditions, and brittle callbacks.

AI-written summary · about

  1. 0:00Introduction
  2. 2:00What are Lifecycle Events
  3. 4:29My favorite tech talk
  4. 13:43Pro Tip
  5. 15:42Why No MultiModel Modification
  6. 16:41Instagram Picture
  7. 18:22Credit Score Example
  8. 26:44Service Object
  9. 29:02Versioning
  10. 29:33Service Objects
  11. 30:17Pros
  12. 31:50Cons
  13. 33:09Handling Errors
  14. 33:59Where Does Our ModelsControllers Live
  15. 35:21Distributed Lifecycle Events
  16. 36:07Where Before
  17. 36:32Trust
  18. 37:06Technical Tools
  19. 37:36Subscribe Model
  20. 39:13Publish Model
  21. 39:40Pseudocode
  22. 40:57The Pros
  23. 42:07The Cons
  24. 44:35Review callbacks
  25. 45:20Service Objects Procedures
  26. 46:03Distributed Messaging
  27. 46:33Conclusion
~/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.