HN2new | past | comments | ask | show | jobs | submitlogin

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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: