~/talk

Synchronous Reads, Asynchronous Writes

Talkat RubyConf 2009 · 2009-11-19..11-21· [ruby, databases]
slides:none on file

Claim: keep reads synchronous and cacheable while sending writes through a message bus so services stay small and deployable. Implementation uses Synchronous reads via Sinatra and Jason over HTTP and Asynchronous writes through Rabbit mq fan‑out and topic exchanges, plus client gems, tyus/libcurl parallel fetches, and bunny or amqp for consumption. The deployed system processes about ten million messages a day on one server, tolerates queue failures by persisting state elsewhere, and accepts eventual consistency tradeoffs.

AI-written summary · about

  1. 0:00Start
  2. 0:42Data Reads Through Services
  3. 1:44Monolithic Applications Don't Scale
  4. 2:41Services based Approach
  5. 3:53serialization format
  6. 4:53Data Store
  7. 5:38Joel Spolsky calls people that exhibit this behavior "Architecture Astronauts"
  8. 6:20Standard Rails Application
  9. 7:28Monolithic Applications Do Not Scale
  10. 7:47real world example
  11. 9:44engagement and post traffic is bursty
  12. 12:00multi-threaded and asynchronous parallelism
  13. 17:02package as gems
  14. 17:24versioning
  15. 17:54what about Beanstalk, Resque, Kestrel, or whatever?
  16. 18:14Event Based System
  17. 18:45Exchange Types
  18. 21:42error logging
  19. 22:45Bunny by Chris Duncan
  20. 23:53async write considerations
  21. 24:57Eric Brewer's CAP theorem
  22. 28:31single purpose services
~/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.