~/talk

The Best of Both Worlds: OTP Applications with Elixir

TalkinSpanishat Mexico City Erlang Factory Lite 2015 · 2015-10-22..10-23· [distributed-systems]
slides:none on file

Presents an Elixir OTP implementation of an APNs push notification module: a GenServer-based pns module that opens SSL sockets to Apple Push, sends notifications per device, and is organized under a Supervisor tree using init/handle_call/terminate hooks and restart policies. Shows a proof-of-concept and explains that a single process is too slow for thousands of devices, so the pragmatic solution is a pool of worker processes (using poolboy or a hand-rolled pool) with dynamic supervision and tuned restart strategies.

AI-written summary · about

  1. 0:00OTP and Elixir relevance
  2. 3:00What is OTP and why use it?
  3. 5:31OTP apps: structure and lifecycle
  4. 7:20Demo: basic OTP app
  5. 9:09Elixir processes: Tasks vs GenServers
  6. 10:32GenServer: generic server
  7. 14:04GenServer for push notifications
  8. 16:54Error handling and process restart
  9. 19:11Supervisors: OTP backbone
  10. 21:38Supervisor.Spec configuration
  11. 22:50Demo: supervision tree in Observer
  12. 24:17Dynamic supervision and restart
  13. 26:40Dynamic supervision use cases
  14. 28:47Handling multiple processes
  15. 30:57OTP apps with Phoenix
  16. 32:02Other OTP behaviors and resources
  17. 33:26Summary and FAQ
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.