Wrapping Up
In this chapter dedicated to OTP services, we first took our time so you could build a solid understanding of how OTP uses concurrency and message passing to safely encapsulate state without implicit state, or instance or global variables. Then, we built an information system for our annotations. Along the way:
-
We created a new child app under our umbrella.
-
We built a counter that demonstrates how some OTP behaviours work.
-
You looked at several OTP supervision and restart strategies.
-
You saw examples of a full OTP service as GenServer.
-
You learned how tasks wrap behavior and agents encapsulate state.
-
You implemented an ETS backed cache, with GenServer powered cache expiration.
-
We implemented an information system abstract frontend ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access