Writing Generic Servers in Elixir

preview_player
Показать описание
In this video we dive into Generic Servers (aka GenServers), explore the differences between an Agent and a GS, implement a simple gen server that does some background work, and plant the seed to work with Supervisors and Supervision Trees in the Elixir language.

Sections:
00:00 Intro
00:17 Disclaimer
01:19 Recap & episode intro
01:47 Agent vs GenServer
05:11 Server API
11:32 Client API
15:03 Background work
19:55 What about crashes?
20:23 Virtual Machine :observer
22:11 A process managing another
24:48 Death of a monitored process
25:42 Catch-all handle_info function
26:30 Links are bi-directional
27:21 Intro on supervision trees
29:28 Outro

Video Links:
Рекомендации по теме
Комментарии
Автор

Thank you so much for helping Elixir Community. 💗

abessesmahi
Автор

Thank you so much for the explanations, they make everything make sense now

mitchellphiri
Автор

Glad I found this channel. Thanks for your Elixir content

sumanth
Автор

When you said that call is sync and cast is async, does that mean that call blocks execution thread and make whole core wait? So if call performs some long running task/waits for IO enough calls can halt the whole system?

marknefedov