Some time ago we implemented the Reactive Maps sample.
It uses an Akka cluster with sharding, see description here:
https://github.com/typesafehub/ReactiveMaps/blob/master/tutorial/index.html

Get it using activator:
http://www.lightbend.com/activator/template/reactive-maps or just clone the
above repo.

-- 
Konrad `ktoso` Malawski
Akka <http://akka.io> @ Lightbend <http://lightbend.com>

On 5 January 2017 at 16:35:58, Justin du coeur (jduco...@gmail.com) wrote:

Hmm -- Querki <https://www.querki.net/> is large and complex, but it's
heavily based on Cluster Sharding, and it's all open source
<https://github.com/jducoeur/Querki>, so might be useful to look at as a
complex real-world example.  Feel free to poke around there and ask me
questions.  SpaceRouter
<https://github.com/jducoeur/Querki/blob/master/querki/scalajvm/app/querki/spaces/SpaceRouter.scala>
is the heart of the most complex sharded entity (that then delegates to a
rather large troupe of Actors underneath it); that's created in the
SpaceEcot
<https://github.com/jducoeur/Querki/blob/master/querki/scalajvm/app/querki/spaces/SpaceEcot.scala#L43-L57>.
A somewhat more straightforward example is the UserNotificationsActor
<https://github.com/jducoeur/Querki/blob/master/querki/scalajvm/app/querki/notifications/UserNotificationActor.scala>,
which is defined in the NotificationEcot
<https://github.com/jducoeur/Querki/blob/master/querki/scalajvm/app/querki/notifications/NotificationEcot.scala#L41-L59>
.

On Wed, Jan 4, 2017 at 10:14 PM, Martin Peng <wei...@gmail.com> wrote:

> Hi,
>
> I am new to Akka and using Akka to write an application which contains
> many stateful actors.
> I would like to make all the actors can be either deployed on single node
> or multiple nodes without changing the actors codes.
>
> After reading the manual, I believe the cluster sharding is way to go. Can
> someone share me an meaningful example? (looks like lightbend doesn't have
> this.)
>
> Thanks
> Martin
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> 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 unsubscribe from this group and stop receiving emails from it, send an
email to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      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 unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to