Description: this article is talking about the different layers when we code
Controller Layer/AP Layer
this layer job is simply to receive and handle HTTP(GET,POST,PUT,DELETE) requests sent clients. When an HTTP request is received this layer must forward the request to the service layer.
Service Layer
this layer handles any business logic for your application. Business logic might vary depending on your application. But here's and example. Adding a user to the database.
1. you might wanna check first if the user exists
2. id the email is taken and if not carry on processing the reuqest and forward to the DAO layer
Data Access Object Layer
the main purpose of this layer is to contain that performs CRUD operartions against the database of choice. For example receive and student from the service layer and insert into database.