Introducing Elixir the easy way

Introducing Elixir the easy way

Small lightning talk with some practical advice on how we integrated a Phoenix application in our general application landscape with a rails monolith and some frontend clients.

8480daec7137f28565bc2d2e666b915a?s=128

Tobias Pfeiffer

October 28, 2016
Tweet

Transcript

  1. Who wants to play with Elixir now?

  2. None
  3. None
  4. None
  5. Can't go out and rewrite it all (tm)

  6. Introducing elixir the easy way Tobias Pfeiffer @PragTob pragtob.info

  7. • Demand that poses problems for the current stack •

    Reasonably separate and limited problem • Spark to get started
  8. • Problem: Many concurrent connections • Domain: Live Tracking of

    Couriers • Spark: Interest and basic knowledge
  9. Rails Monolith Web Frontend Courier App DB

  10. Rails Monolith Phoenix App Web Frontend Courier App DB DB

  11. Connect them?

  12. Rails Monolith Phoenix App Web Frontend Courier App DB DB

  13. Rails Monolith Phoenix App Web Frontend Courier App DB DB

  14. Rails Monolith Phoenix App Web Frontend Courier App DB DB

    Shared Secret
  15. JSON Web Token

  16. Rails Monolith Phoenix App Web Frontend Courier App DB DB

    JWT JWT Shared Secret
  17. Rails Monolith Phoenix App Web Frontend Courier App DB DB

    JWT Auth: JWT JWT Shared Secret Auth: JWT
  18. Rails Monolith Phoenix App Web Frontend Courier App DB DB

    JWT Auth: JWT JWT Shared Secret Auth: JWT Location Updates Location Updates
  19. None
  20. Enjoy Tobias Pfeiffer @PragTob pragtob.info