Friday, December 7, 2007

I love Scala Actors

One of my favorite things about Scala is it's Actor library.

Messaging has become an important part of modern architecture for the web. Many of the large scale web sites that are popular today are using message queues as infrastructure for processing requests. Scala Actors help us use those ideas in lift. Recently we added AMQP support to lift by wrapping RabbitMQ's client libraries with Scala Actors. Scala Actors make it easy to model the consumer/producer paradigm that's so prevalent in modern messaging systems.

Another thing I love about Scala Actors is combining them with my favorite functional combinators to make useful data structures. Recently, for lift, I wrote some example code that I felt could benefit from a cache. 30 lines of Actors and functional combinators later and I had a full-featured cache where listeners could register and be updated when the state of the cache changed.

Actors are a wonderful tool for software design. If you want to learn more about them, I recommend reading the Scala Actors papers.

7 comments:

Jörn Zaefferer said...

Could you write a bit more about AMQP and RabbitMQ? Maybe an example where you'd leverage those.

J. Suereth said...

Hey, your cache is pretty slick. I really like how expressive you've made Lift.

André Rüdiger said...

The new location seems to be here.

Alex Edward said...

You have great blogging skills, i really like the topic of your blog
Bane Jacket

amine lahragui said...

Your work is very good and I appreciate you and hopping for some more informative posts. happy new year 2016 new year 2016
bonne année 2016 imagenes de año nuevo 2016 imagenes de navidad 2016 feliz año nuevo 2016 Journée internationale des droits des femmes 2016

Tugiran Wibowo said...

Excellent blog you have here but I was curious abou t if you knew of any communi ty forums tha t cover the same topics talked about in this article? I’d really like to be a part of online community where I can get advice from other experienced individuaIs that share the same interest. If you have any suggestions, please let me know. Appreciate it!

Greenwood Jonny said...


obat herbal untuk penyakit gonore atau kencing nanah
obat herbal kencing nanah
obat herbal kencing nanah di apotik
obat herbal kencing nanah pada pria
obat tradisional kencing nanah
obat alami kencing nanah
obat alami kencing nanah pada pria
obat herbal untuk kencing nanah