The Soul of Erlang and Elixir - GOTO Conference · %RabbitMQ Messaging that just works WhatsApp ....

Post on 28-Jun-2020

5 views 0 download

Transcript of The Soul of Erlang and Elixir - GOTO Conference · %RabbitMQ Messaging that just works WhatsApp ....

The Soul of Erlang and ElixirSaša Jurić

Erlang Elixir

LFE GleamAlpaca

BEAM

Erlang Elixir

LFE GleamAlpaca

process

...foo(...)...

...spawn(fn -> ... end)...

process A

...foo(...)...

process B

...bar(...)...

process A process B

send( process_b, some_message)

receive do message -> handle(message)end

BEAM (Erlang VM)

BEAM (Erlang VM)

schedulerscheduler schedulerscheduler schedulerscheduler schedulerscheduler

BEAM (Erlang VM)

CPUCPU CPUCPU CPUCPU CPUCPU

BEAM (Erlang VM)

CPUCPU CPUCPU CPUCPU CPUCPU

schedulerscheduler schedulerscheduler schedulerscheduler schedulerschedulerp1

p2

p3

p4

client

system

client

system

sum(1..3)

6

client

connection

client

connection

client

connection

connection

calculation

spawn

result

node 1 node 2

node 3

fault tolerancelatency

diagnosticsscalability

40% off using codectwgotocph19at manning.com

@sasajuric