the request goes like client browser internet server database server browser you.
Frontend vs backend
-
When I click on any picture on instagram, before clicking it, all the buttons, images, collections basically everything that is made for displaying of information and collection of user input is frontend
-
When you click two times on that picture, it will get liked. the server or backend will update the like count on database and save it . all that is done by backend.
roles of backend
- validate the user imnputs
- request validation fixing
- response and business logic generation
- authentication
- serialization
- authorization
- database access
- security
- transaction