Organize Code for OTP Abstractions
A growing number of Elixir projects are allowing library integration by making OTP callbacks, or something like them, directly available to developers. In the next few pages, we’ll suggest how you might integrate our layers into those frameworks. We’ll cover Phoenix Channels, Phoenix LiveView, and Scenic. Once you know how these work, you’ll have a pretty good idea of how to integrate with other callback-style frameworks.
Even if you don’t have experience with any of these frameworks, allow us a moment to offer a few clues that will help you recognize where the main integration points might be for each section. Once you can recognize those integration points, you’ll know how to tie in to the rest of the layers ...
Get Designing Elixir Systems With OTP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.