week11
week11
Development
BY
Aatiqa Bint e Ghazali
FALL 2024
Backend Fundamentals
What is a backend?
• the part of a computer system or application that is not directly
accessed by the user
• typically responsible for storing and manipulating data.
• "the back end has three parts to it: server, application, and database“
• Server: The machine (physical or virtual) that handles requests from
the frontend and coordinates between the application and database.
• Application: The business logic or codebase that processes incoming
requests, applies logic, and interacts with the database.
• Database: Where the application stores and retrieves data.
Why we need backends
• The backend communicates with the frontend, sending and receiving
information to be displayed as a screen in your application
Understanding APIs
• the "communication bridge" between frontend and backend.
• can be thought of as a contract of service between two applications.
• This contract defines how the two communicate with each other
using requests and responses.
• Their API documentation contains information on how developers are
to structure those requests and responses.
• API architecture is usually explained in terms of client and server.
• The application sending the request is called the client, and the
application sending the response is called the server
Kinds of APIs architectures
• There are four different ways that APIs can work depending on when
and why they were created.
• 1. SOAP APIs
• 2. RPC APIs
• 3. Websocket APIs
• 4. REST APIs
What are REST APIs?