introducing elixir the easy way

20

Click here to load reader

Upload: tobias-pfeiffer

Post on 07-Jan-2017

529 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Introducing Elixir the easy way

Who wants to play with Elixir now?

Page 2: Introducing Elixir the easy way
Page 3: Introducing Elixir the easy way
Page 4: Introducing Elixir the easy way
Page 5: Introducing Elixir the easy way

Can't go out and rewrite it all (tm)

Page 6: Introducing Elixir the easy way

Introducing elixir the easy way

Tobias [email protected]

Page 7: Introducing Elixir the easy way

● Demand that poses problems for the current stack

● Reasonably separate and limited problem● Spark to get started

Page 8: Introducing Elixir the easy way

● Problem: Many concurrent connections● Domain: Live Tracking of Couriers● Spark: Interest and basic knowledge

Page 9: Introducing Elixir the easy way

Rails Monolith

Web Frontend

CourierApp

DB

Page 10: Introducing Elixir the easy way

Rails MonolithPhoenix App

Web Frontend

CourierApp

DB DB

Page 11: Introducing Elixir the easy way

Connect them?

Page 12: Introducing Elixir the easy way

Rails MonolithPhoenix App

Web Frontend

CourierApp

DB DB

Page 13: Introducing Elixir the easy way

Rails MonolithPhoenix App

Web Frontend

CourierApp

DB DB

Page 14: Introducing Elixir the easy way

Rails MonolithPhoenix App

Web Frontend

CourierApp

DB DBShared Secret

Page 15: Introducing Elixir the easy way

JSON Web Token

Page 16: Introducing Elixir the easy way

Rails MonolithPhoenix App

Web Frontend

CourierApp

DB DB

JWT

JWT

Shared Secret

Page 17: Introducing Elixir the easy way

Rails MonolithPhoenix App

Web Frontend

CourierApp

DB DB

JWTAuth: JWT

JWT

Shared Secret

Auth: JWT

Page 18: Introducing Elixir the easy way

Rails MonolithPhoenix App

Web Frontend

CourierApp

DB DB

JWTAuth: JWT

JWT

Shared Secret

Auth: JWT

Location UpdatesLocation Updates

Page 19: Introducing Elixir the easy way