Touch Up the API Layer

We’ve built our boundary layer with an outer API. We know we’ll need to make a few changes, but not too many. Here’s the bill we have to pay for earlier changes:

  • We no longer need to start our QuizManager, so we can remove that API.

  • We refer to all QuizSession APIs by pid, and we’ll need to change those to use {quiz.title, email} tuples.

  • The take_quiz function will shift to our new take_quiz API.

There’s not too much work to do. Let’s get to it.

The first order of business is to remove the start_quiz_manager API. We no longer need to do that work. Open up mastery.ex and remove the entire function start_quiz_manager. It won’t hurt anything, but we may as well be good citizens and keep down our future maintenance requirements. ...

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.