Non trivial actor example

106 views
Skip to first unread message

John Lonergan

unread,
Sep 30, 2011, 2:23:19 PM9/30/11
to Akka User List
Hi I see a lot of stuff on the internet around actors but most of the
examples are trivial (calculating PI or whatever).

I'm trying to understand tried and tested patterns around usage of
Actors in real world systems.

Is anyone aware of more complex examples of how to use actors in an
environment where we have more complex units of work,

Say I have a financial transaction coming in that kicks off a set of
transformation/calculations (business processes) some some running
sequentially, others splitting off and running in parallel and some
waiting as a join point before proceeding etc.

Say in addition that although the actual calcs / transformations are
pretty simple most of them need access to reference data (customer
details / instrument details / exchange rates) in order to perform
their work. This data might live in an external database or a massive
in memory cache or whatever.


What are the patterns that work best here?
How does one organise the work into units an actor can chew on?
Must (is it recommended) all the data the actor needs to chew on be
supplied to it as "args" or is it acceptable for the actor to go off
and hit a database to do the various lookups during its processing.

Hopefully you get the idea.
Cheers John

Jonas Bonér

unread,
Sep 30, 2011, 6:23:44 PM9/30/11
to akka...@googlegroups.com

We are lacking here, but we are about to publish a more comprehensive tutorial very soon.

--
Jonas Bonér
CTO
Typesafe - Enterprise-Grade Scala from the Experts
Phone: +46 733 777 123
Twitter: @jboner

> --
> You received this message because you are subscribed to the Google Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
>

John Lonergan

unread,
Sep 30, 2011, 7:47:07 PM9/30/11
to Akka User List
Any chance of a preview ;)

On Sep 30, 11:23 pm, Jonas Bonér <jo...@jonasboner.com> wrote:
> We are lacking here, but we are about to publish a more comprehensive
> tutorial very soon.
>
> --
> Jonas Bonér
> CTO
> Typesafe - Enterprise-Grade Scala from the Experts
> Phone: +46 733 777 123
> Twitter: @jboner

Samira Tasharofi

unread,
Oct 1, 2011, 2:57:17 PM10/1/11
to Akka User List
That's an interesting application. I think you would have some
questions during testing such programs. I am creating a testing
framework for testing akka actors called "Setack". At any time I would
be happy to discuss with you about designing and testing such programs
and having your feedback about the features that you think a testing
framework should have.

Patrik Nordwall

unread,
Oct 2, 2011, 3:50:18 AM10/2/11
to akka...@googlegroups.com
Actors can do database lookups. In the best of worlds it would be async db access to avoid blocking, but in practice there is still lack of such db drivers. I think (hope) we will see progress in that area.

A small example that illustrates how to use temporary actors to continue message flows without blocking:
https://github.com/patriknw/akka-playground

/Patrik

Jonas Bonér

unread,
Dec 28, 2012, 6:11:24 PM12/28/12
to Akka User List

Not yet. Give us a couple of months.

--
Jonas Bonér
CTO Typesafe - The software stack for applications that scale

Phone: +46 733 777 123
Twitter: @jboner

On Dec 28, 2012 11:35 PM, <api...@gmail.com> wrote:
Is this tutorial available now? If so, where I can find it?

Regards,
Andre

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages