Episode 178: Akka With Jonas Boner

Topics covered
Popular Clips
Episode Highlights
Let It Crash
The "Let It Crash" philosophy, inspired by Erlang, is central to Akka's approach to managing system failures. explains that this philosophy allows systems to self-heal by configuring responses to failures rather than relying on defensive programming with try-catch blocks 1. This approach treats failure as a natural part of the application lifecycle, enabling systems to recover and continue functioning without manual intervention. describes it as organizing programs like an onion, with critical states protected by layers of defense 2.
It is as natural to crash as it is to boot up and to start and to dispatch messages successfully.
---
This method not only simplifies error handling but also enhances system resilience by allowing components to reset to a stable state and continue operations.
Supervision
Akka's supervision strategies are designed to manage failures and ensure automatic recovery. discusses how exceptions are handled by transferring them from the receiver's thread to the caller's thread, allowing for asynchronous error management 3. This method provides flexibility, enabling clients to decide whether to block and wait for a result or handle exceptions through callbacks.
We have three different ways of doing it... you can decide to do the blocking await or you can register an on complete callback.
---
By using futures, Akka allows for scalable server operations while maintaining client-side control over exception handling, thus enhancing the robustness and scalability of applications.
Related Episodes


Episode 171: Scala Update with Martin Odersky
Answers 383 questions
SE-Radio-Episode-249:-Vaughn-Vernon-on-Reactive-Programming-with-the-Actor-Model
Answers 383 questions

Episode 179: Cassandra with Jonathan Ellis
Answers 383 questions

Episode 129: F# with Luke Hoban
Answers 383 questions

Episode 381: Josh Long on Spring Boot
Answers 383 questions

Episode 145: Spring in 2009 with Eberhard Wolff
Answers 383 questions

Episode 85: Web Services with Olaf Zimmermann
Answers 383 questions

Episode 119: DSLs in Practice with JP Tolvanen
Answers 383 questions

Episode 22: Feedback
Answers 383 questions

Episode 44: Interview Brian Goetz and David Holmes
Answers 383 questionsEpisode 29: Concurrency Pt.3
Answers 383 questions

Episode 140: Newspeak and Pluggable Types with Gilad Bracha
Answers 383 questions

Episode 80: OSGi with Peter Kriens and BJ Hargrave
Answers 383 questions

SE-Radio-Episode-267-Jürgen-Höller-on-Reactive-Spring-and-Spring-5.0
Answers 383 questions













