What You May Not Know About `with`

Presented by: Brian Underwood and Adilet Abylov


About this talk

In this webinar, Brian Underwood and Adilet Abylov discuss Elixir’s with clause, a feature that can help simplify control flow. Although many developers have encountered with, it’s often not fully understood or used to its full potential.

Please, accept marketing-cookies to watch this video.

Brian and Adilet discuss:

  • How with is often perceived as expressing the “happy path”, but how it’s a bit more complex than that
  • How else can be used for specific error handling
  • Some of the common mistakes that can occur when patterns don’t match as expected.
  • Practical techniques for managing errors, such as using helper functions
  • The approach of adding context with tagged tuples
  • Deciding when to handle or propagate errors in different layers of an application
  • Single-clause with statements for handling errors or performing side effects like logging

What you’ll learn:

  • How the with clause sometimes simplifies and sometimes complicates control flow in Elixir
  • How the  else clause changes the behaviour of with
  • Approaches for clean and maintainable error handling
  • When single-clause with statements are useful

Keeping Real-Time Communication Platforms Online During Peak Demand

Keeping Real-Time Communication Platforms Online During Peak Demand

Bartłomiej Górny explores why real-time systems fail under peak demand, and how architecture, scaling, and testing keep them running.

How to Build Systems That Stay Online When Everything Spikes

How to Build Systems That Stay Online When Everything Spikes

Camjar Djoweini breaks down how systems respond to sudden demand and what it takes to keep them running when it matters most.

How to Build Platforms That Don’t Let Audiences Down

In this webinar, Lee Sigauke explores how to design platforms that remain reliable during sudden traffic spikes and unpredictable demand.