Putting the Proctor to Work
Explore how to schedule timed quizzes and manage worker processes in Elixir using OTP. Understand handling active sessions, timeout events, and strategies for recovering from server crashes to build resilient distributed applications.
We'll cover the following...
We'll cover the following...
Scheduling a quiz
First, let’s schedule a quiz:
Executable
Note: Since the quiz is timed, it might end before you can enter the rest of the commands below. In that case, you’ll have to restart the
iexterminal and re-enter all of the “Executable” commands shown above.
Output
iex(1)> alias Mastery.Examples.Math
Mastery.Examples.Math
iex(2)> alias Mastery.Boundary.QuizSession
Mastery.Boundary.QuizSession
iex(3)> alias Mastery.Examples.Math
Mastery.Examples.Math
iex(4 ...