Scala actors: two different approaches to a scheduled multi-thread application -


i'm new scala actors. plan build application has several cartridges each specific http call , retrieve+persist info periodically. robustness matters most. far these ways i've thought of:

  1. build app around timertask, extend cartridges actor , call .act s periodically (or should send them messages instead? what's difference?)
  2. extend actor , use timeouts periodically run them.

can shed light on differences?

scala actors merged akka take @ http://akka.io,

you can use akka's "scheduler" schedule messages sent actors @ intervals, it's in docs:

http://akka.io/docs/akka/1.1.3/

hope helps,

cheers, √


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -