Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5...

27

Transcript of Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5...

Page 1: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,
Page 2: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Introduction of

Veille Technologique et Strategique 2015

RICM 5 Polytech Grenoble

ZHANG Zhengmeng

Page 3: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Akka toolkit is

to

a build

*concurrent, *distributed, *fault torerant apps.

Page 4: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

concurrent * Actors

distributed fault

* Remoting torerant * Supervision

Page 5: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Actors

Page 6: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Merchant

Warrior

Page 7: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Page 8: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,
Page 9: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,
Page 10: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Actors States

Messages

Page 11: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Each actor runs concurrently

Page 12: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Actors communicate through messages

Page 13: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Each actor has state

Page 14: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Actors are scalable

Page 15: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Too much load!

Page 16: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Remoting

Page 17: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Server1

It’s O.K.

Page 18: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

erver1 S

Out of cap

Page 19: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Server1 Server2

Remoting

Ditribute across servers

Page 20: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Supervision

Page 21: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

• •

Page 22: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Supervisor

Children

Page 23: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

exception exception

Page 24: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

restart! restart!

Page 25: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Akka is composed tools: of many

actor, testkit, remote, cluster, transactor, agent, zeromq, camel, ...

Just use what you need

Page 26: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

See:

http://akka.io/docs/

Page 27: Introduction of - air.imag.fr · Introduction of Veille Technologique et Strategique 2015 RICM 5 Polytech Grenoble ZHANG Zhengmeng . Akka is toolkit to a build *concurrent, *distributed,

Thank you!