Creating a start_link
Understand how to create a start_link function for your GenServer in Elixir. This lesson guides you through setting up supervised processes, registering process names, and managing process lifecycles using OTP conventions.
We'll cover the following...
We'll cover the following...
Role of our application
The primary role of the application will be to provide the following for the boundary layer:
-
Packaging structure
-
Lifecycle support
Here’s how it will work.
When our application starts via Application.start, that function doesn’t call our boundary’s start links directly. Instead, it will call our supervisor’s start_link, and that process will start and monitor our application’s main processes.
Starting up the quiz manager
Let’s set up our ...