Taming the Web with Cowboy & Coyote
summary
Builds a small OTP router that uses Cowboy & Coyote to route web requests to tiny distributed apps, shipping module code to a lead server with load_binary code shipping and registering routes per node. Demo runs three lead servers (API, Phoenix, Cowboy) with one client servicing multiple apps, and the client auto re-registers routes when a node recovers. Uses gen_stage backpressure (default queue ~10) to avoid overload. Core claim: simple, fault-tolerant request routing across nodes, and it works in the demo.
AI-written summary · about
chapters (8)
- 0:00Start
- 13:48COYOTE ROUTER
- 15:37COYOTE CLIENT REGISTER
- 17:06COYOTE SERVER WATCH
- 19:00PRODUCER RELAY
- 21:04CONSUMER SUPERVISOR
- 21:53CLIENT CONFIG
- 22:09CLIENT APPLICATION
related talks
40mTaming the Web with Cowboy & Coyote
47mCowboy 2.0
52mA Tale of 2.0 Cowboys
34mAnatomy of a Real Time Elixir App
32mBuild your very own web framework in Elixir
30mThe Power of Middleware - Building Your Own Mini Web Framework on Rack
45mKeeping it Real(time)
57mBeyond the buzzword: A reactive web application in practice
