News for hackers. Stuff that matters.
Re:Circuit Breaker by zimbatm on Thursday March 06, 2014 @11:46AM (#7354795)
It doesn't. Most of these design patterns apply to Java where these patterns are not necessarily natural.

If you're using an actor-model language then you probably implemented that pattern without thinking about it because it's just part of handling each state of an actor. Especially in erlang where you have a timeout keyworkd and where the OTP framework exposes more complex error recovery patterns.

Re:Circuit Breaker by yummyfajitas on Thursday March 06, 2014 @12:11PM (#7355015)
I've definitely implemented patterns like this with akka futures. Fundamentally concurrency and figuring out when to send test-requests at the resource was the hard part, not java or scala.

In fact, unnatural as they are, I often had to use Java-style patterns to break through Akka patterns. Like it or not, the "Java-style patterns" are a lot closer to the metal than futures or actors are.