Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very interesting. I've built two sizable Akka projects for a client in the past month and I look forward to seeing what I could've done better. I think there's some refactoring in my future.

As for Akka itself, I'm very pleased with both its performance and the ease with which scalable, complex applications can be developed.

Coupled with the Play Framework the two open up some very interesting possibilities. For instance, one of the Akka systems I built recently handles caching for large datasets—a given cache can take 20-30 seconds to compute. Akka handles the computation while Play sits in front as a REST API. Requests come in for a dataset and the data is either returned from the cache or generated.

But if a request for a dataset comes in while the same dataset is already being computed, Play will return a Promise for the dataset already being cached. This didn't require any sort of lock system, I just put the AsyncResult[1] which will be fulfilled by an Akka future into Play's internal cache and return that. The future of a cached dataset will fulfill whatever incoming HTTP request is mapped to that AsyncResult.

[1] http://www.playframework.com/documentation/api/2.1.1/scala/i...



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

Search: