GenStage in the Kitchen
summary
GenStage models a restaurant as a demand driven pipeline in Elixir where tables are external event sources, a waiter acts as a producer with a broadcast dispatcher, the chef is a producer_consumer using a partition dispatcher, and line cooks are consumers. The claim is concrete: backpressure pushes load upstream so slow chef behavior builds a waiter queue while line cooks stay unaffected. A visual simulation with four tables runs live, demonstrates queue growth when the chef slows, and recovers when line cook capacity increases.
AI-written summary · about
chapters (5)
- 0:00Start
- 1:47NEXT BEST THING GEN STAGE TO MODEL A RESTAURANT
- 6:52PROCESS WHILE REQUESTING
- 20:30INFORMING A WAITER REQUIRES A REPLY
- 26:19DEMAND IS DRIVEN BY LINE COOKS
related talks
53mBuilding Performant Backends with Elixir
26mLearn Elixir by Building a Real Time CLI Chat App (Part 4)
05mLightning Talk – Michael King
25mCooking with Chef - Your servers will thank you
34mRubyists, have a sip of Elixir!
31mActor, Thread and me
41mLearn Elixir by Building a Real Time CLI Chat App (Part 5)
41mEverything Ruby
