Thanks, I think i want it to only run on one node, so the others can take
care of normal requests. Or start another job.

I will take a look at persistent actors when you have a solution for read
views by categroy. For now i will use my own solution.

On Sun, Apr 26, 2015 at 7:13 PM Patrik Nordwall <[email protected]>
wrote:

> Sounds good. Perhaps use cluster sharding and represent each job as a
> persistent actor, with an identifier.
> Typesafe provides Project Success Subscription
> <http://www.typesafe.com/subscription> if you need more in depth design
> guidance.
>
> Regards,
> Patrik
>
> On Wed, Apr 22, 2015 at 3:07 PM, Idar Borlaug <[email protected]>
> wrote:
>
>> Hi
>>
>> I have a list in Mongodb with 100.000 work units. Which i want to start a
>> job to process. Our job takes around 10 work units per second.
>>
>> I want to be able to start and pause this job from a webpage and show
>> progress.
>>
>> Each node in our akka cluster is a web server which the client can reach.
>>
>> Is this a good solution for the problem:
>> Make a control actor and store its ref in MongoDb.
>> The control actor spawn worker actors and sends them work units.
>> Worker actors send back finished messages.
>> If the webclient wants to abort, read ref from MongoDb and send abort
>> message to control actor, its then destroys its children and itself.
>>
>  --
>> >>>>>>>>>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Patrik Nordwall
> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
> Twitter: @patriknw
>
>  --
> >>>>>>>>>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to