...

/

Making Our Server into a Component

Making Our Server into a Component

Understand how to split the server code into major components.

We'll cover the following...

Earlier, we said that what Elixir calls an application, most people would call a component or a service. That’s certainly what our sequence server is: a freestanding chunk of code that generates successive numbers.

Implementation

Our implementation puts three things into a single source file:

  • The API.
  • The logic of our service (adding one).
  • The implementation of that logic
...