59
@petabridge Petabridge.com Actor Model : The Future of Distributed Programming

Akka.NET: The Future of Distributed Programming inqconrio.com/.../the_future_of_distributed_programming_in...2015.pdfActor Model : The Future of Distributed Programming. ... STREAM

Embed Size (px)

Citation preview

@petabridge Petabridge.com

Allow our customers to start

conversations with the specific

types of users.

@petabridge Petabridge.com

The New Reality

• Data is trivially

cheap to collect

and store

• Users accept

nothing less than

excellence

• Developers are

expected to deliver

more

@petabridge Petabridge.com

3 Core Actor Abilities

1. Send messages2. Create other actors3. Change behavior

@petabridge Petabridge.com

Benefit 1: actors make it easy

to write asynchronous

applications

@petabridge Petabridge.com

Benefit 2: actor state is always

thread-safe and never needs

locks!

@petabridge Petabridge.com

Actor Thread Safety

• Actor state is never shared directly with

any other object

• Actors share data via message-passing

• All messages are immutable

• Actors process one message at a time

@petabridge Petabridge.com

When actors fail, parents can

restart them into their original

state

@petabridge Petabridge.com

Benefit 4: Actors can be easily

distributed across the network

@petabridge Petabridge.com

But you don’t need to know an

actor’s address.

(We use “Actor References” to

communicate with actors)

@petabridge Petabridge.com

With actor model: write actor

that manages 1 entity, run

1000 of them in parallel