Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

EVIL MARTIANS

Slide 4

Slide 4 text

EVIL MARTIANS

Slide 5

Slide 5 text

Nikolay Sverchkov @ssnickolay

Slide 6

Slide 6 text

Battle of facts

Slide 7

Slide 7 text

Dependencies

Slide 8

Slide 8 text

??? “Welcome email” ???

Slide 9

Slide 9 text

Sidekiq (Redis) “Welcome email” ???

Slide 10

Slide 10 text

GenServer defmodule EmailSender do use GenServer def handle_cast({:send, email}, state) do # send email {:noreply, state} end end # Start the server {:ok, pid} = GenServer.start_link(EmailSender, []) # This is the client GenServer.cast(pid, {:send, “[email protected]"}) #=> :ok

Slide 11

Slide 11 text

Sidekiq (Redis) “Welcome email” [OTP] GenServer

Slide 12

Slide 12 text

Sidekiq (Redis) ??? “We love cashcache” [OTP] GenServer ???

Slide 13

Slide 13 text

Sidekiq (Redis) Memcached “We love cashcache” [OTP] GenServer ???

Slide 14

Slide 14 text

Memcached vs ETS

Slide 15

Slide 15 text

Sidekiq (Redis) Memcached “We love cashcache” [OTP] GenServer [OTP] ETS

Slide 16

Slide 16 text

Sidekiq (Redis) Memcached ??? “Where is my long polling?” [OTP] GenServer [OTP] ETS ???

Slide 17

Slide 17 text

Sidekiq (Redis) Memcached AnyCable “Where is my long polling?” [OTP] GenServer [OTP] ETS ???

Slide 18

Slide 18 text

Sidekiq (Redis) Memcached AnyCable “Where is my long polling?” [OTP] GenServer [OTP] ETS Phoenix Channels

Slide 19

Slide 19 text

Sidekiq (Redis) Memcached AnyCable ??? Message broker [OTP] GenServer [OTP] ETS Phoenix Channels ???

Slide 20

Slide 20 text

Sidekiq (Redis) Memcached AnyCable RabbitMQ Message broker [OTP] GenServer [OTP] ETS Phoenix Channels RabbitMQ

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Wait, it's like…

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Erlang -> Java BEAM -> JVM Elixir -> ???

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

Development

Slide 27

Slide 27 text

??? Speed ???

Slide 28

Slide 28 text

Spring + Bootsnap Speed By Design

Slide 29

Slide 29 text

Spring + Bootsnap ??? Architecture [DDD] By Design ???

Slide 30

Slide 30 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Architecture [DDD] By Design By Design

Slide 31

Slide 31 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) ??? Umbrella By Design By Design ???

Slide 32

Slide 32 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? Umbrella By Design By Design By Design

Slide 33

Slide 33 text

Flawless Victory?

Slide 34

Slide 34 text

I have to rewrite everything with Elixir

Slide 35

Slide 35 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? ??? Debugging By Design By Design Umbrella ???

Slide 36

Slide 36 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? Pry Debugging By Design By Design Umbrella IEx.pry

Slide 37

Slide 37 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? Pry ??? Deploy By Design By Design Umbrella IEx.pry ???

Slide 38

Slide 38 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? Pry Docker\Capistrano Deploy By Design By Design Umbrella IEx.pry Mix\Distillery

Slide 39

Slide 39 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? Pry Docker\Capistrano ??? Tests tooling By Design By Design Umbrella IEx.pry Mix\Distillery ???

Slide 40

Slide 40 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? Pry Docker\Capistrano Rspec\Capybara Tests tooling By Design By Design Umbrella IEx.pry Mix\Distillery Espec\Hound

Slide 41

Slide 41 text

Overtime

Slide 42

Slide 42 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? ActiveRecord (Rom?) Docker\Capistrano Rspec\Capybara Upload Image By Design By Design Umbrella Ecto Mix\Distillery Espec\Hound

Slide 43

Slide 43 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? ActiveRecord (Rom?) Docker\Capistrano Rspec\Capybara Send Email with attachment By Design By Design Umbrella Ecto Mix\Distillery Espec\Hound

Slide 44

Slide 44 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? ActiveRecord (Rom?) Docker\Capistrano Rspec\Capybara Authorization By Design By Design Umbrella Ecto Mix\Distillery Espec\Hound

Slide 45

Slide 45 text

Spring + Bootsnap Trailblazer\Dry(Hanami?) Hanami? ActiveRecord (Rom?) Docker\Capistrano Rspec\Capybara Update deps By Design By Design Umbrella Ecto Mix\Distillery Espec\Hound

Slide 46

Slide 46 text

Summary

Slide 47

Slide 47 text

Good for: Monolith Microservice Terrible for: Concurrency Key points Good for: Microservice Concurrency Terrible for: CMS Admin panel

Slide 48

Slide 48 text

Why exactly Elixir?

Slide 49

Slide 49 text

Why exactly Elixir? • Fast learning • A lot of job offers • http://erlangjobs.ru/ • High salary (Ruby < Elixir < Go) https://t.me/proelixir https://wunsh.ru/