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:
- build app around timertask, extend cartridges actor , call
.act
s periodically (or should send them messages instead? what's difference?) - 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
Post a Comment