O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 built a counter that demonstrates how some OTP behaviors 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.

  • We implemented an information system abstract front end with concrete backends.

  • You learned to fetch WolframAlpha results from an HTTP service and share them with our channels.

Next, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required