Sunday, September 27, 2015

AppNexus meetup

AppNexus meetup
2009

akka model

other concurency models
thread
process
futures (no state)
CSP(channels)

actor is persistent (exist even dont do anything )
has internal state
create actors
receive messages and do something
send message
process 1 message at a time (has inbox queue)

w: mutex (lock)
w: race conditions

'Best effort' delivery
at-most-once delivery
message can take arbitrary long time to deliver
no message order garantee

Has address
indentifies an actor or balancer
may represent  proxy forwarder or actor
location transperency
address can be remote
actor can have many addresses

supervision - monitors state of actor (usually other actor)

Supervision tree
address dont change on restart
mailbox is persistent outside of actor
you can kill actor and inbox will be persistent

use cases:
processing pipeline
streaming data
multi-user concurrency
system hight uptime requirements (ericson)
apps with shared state

breaking up the work for many actors

anti-use cases:
performance critical applications
non concurrent
synchronous and stateless










No comments:

Post a Comment