
32: Circuit Breaker and Elixir Patterns with Allan MacGregor
About this episode
We talk with Allan MacGregor about implementing the Circuit Breaker pattern in Elixir and compare that to just using a job library. We get into a fun discussion about design patterns in Elixir and designing for failure. Allan is creating a project called Site Guardian using the PETAL stack and shares his experiences with it and much more!
Show Notes online - http://podcast.thinkingelixir.com/32
Elixir Community News
- https://elixir-lang.org/blog/2021/01/13/orchestrating-computer-vision-with-elixir/ – New Elixir case study features the company V7 where they use Elixir for orchestrating computer vision.
- https://www.phoenixframework.org/blog/improving-testing-and-continuous-integration-in-phoenix – Phoenix is using Earthly for running tests on CI and locally
- https://github.com/sasa1977/ci – Sasa Juric releases a hex package to run CI
- https://hexdocs.pm/oban/web-changelog.html#v2-5-0-2021-01-15 – Oban Web v2.5.0 is out with new features
- https://hex.pm/blog/hex-v0.21-released – Hex 0.21 released. Adds registry self-hosting and more!
- https://hex.pm/docs/self_hosting – Documentation on self-hosting Hex
- https://twitter.com/josevalim/status/1350004900973981699 – Jose Valim is requesting written guides or blog posts from people who have used "mix phx.gen.auth" and customized it
- https://github.com/erlang-ls/erlang_ls/releases/tag/0.8.0 – Erlang-LS - Language server 0.8 was released along with a VS Code extension
- https://thinkingelixir.com/petal-stack-in-elixir/ – ThinkingElixir post on PETAL stack
- https://changelog.com/posts/petal-the-end-to-end-web-stack – Lars Wikman post on PETAL stack
- https://redrapids.medium.com/petal-liveview-and-lamp-eb5e9f81a804 – Bruce Tate post on PETAL stack
- https://www.lambdadays.org/lambdadays2021/thinking-elixir – ThinkingElixir podcast will record live at LambdaDays 2021 - Feb 16th
Do you have some Elixir news to share? Tell us at @ThinkingElixir or email at [email protected]
Discussion Resources
- https://allanmacgregor.com/posts/circuit-breaker-pattern-in-elixir
- https://siteguardian.dev
- https://www.humi.ca/
- https://en.wikipedia.org/wiki/Flow-based_programming
- https://hex.pm/packages/flowex
- https://www.youtube.com/watch?v=BJVzwaTiOdk
- https://hex.pm/packages/ok
- https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612/
- https://bernheisel.com/blog/nostalgia-programming
- https://dashbit.co/ebooks/the-little-ecto-cookbook – The Little Ecto Cookbook
- https://microservices.io/
- https://www.youtube.com/watch?v=z4p4e9Uwn6I
Guest Information
- https://twitter.com/allanmacgregor – on Twitter
- https://github.com/amacgregor – on Github
- https://allanmacgregor.com – Blog
Find us online
- Message the show - @ThinkingElixir
- Email the show - [email protected]
- Mark Ericksen - @brainlid
- David Bernheisel - @bernheisel
- Cade Ward - @cadebward
More from Thinking Elixir Podcast
The final episode of Thinking Elixir after six incredible years of weekly episodes! We send things off in style with a packed news segment covering Phoenix LiveView 1.2's new colocated CSS powered by…
Elixir v1.20 has officially landed, marking a huge milestone as the language is now officially a gradually typed language, type checking every single line of code without requiring developer annotatio…
Mark shares a bittersweet housekeeping update — the Thinking Elixir Podcast is winding down, with the final episode airing June 23rd, 2026, closing the book on over six years of weekly shows. On the n…
Security takes center stage this week as the EEF's Jonatan Männchen highlights that atom exhaustion accounts for roughly one tenth of all CVEs in the BEAM ecosystem and Sobelow can help catch it befor…
News includes Elixir 1.20.0-rc.6 arriving as likely the final release candidate before v1.20.0 ships, completing a ~15-week roadmap and delivering full type inference across applications and dependenc…