Web Database
Web Database
Working
1. Client (Browser):
o The process starts with the client (browser) sending an HTTP/HTTPS request to the
web server.
o This request is typically for a webpage or specific data stored in the database.
2. Web Server:
o Web server receives the request , interprets it and determine what data is needed
and based on which formulates an SQL query and sends it to the database server to
retrieve the required data
3. Database Server:
o The database server processes the SQL query and retrieves the requested data.
o The retrieved data (often called the SQL result) is sent back to the web server.
o The web server uses the data received from the database to create an HTML page.
This page contains the content formatted for the client.
5. Client (Response):
o The web server sends the generated HTML page back to the client (browser), which
renders it for the user to view.
1. Relational Databases:
o Use tables to store data and are accessed using SQL (Structured Query
Language). Examples include MySQL, PostgreSQL, and Microsoft SQL Server.
These databases are highly structured and ensure data consistency.
2. NoSQL Databases:
o Often used for unstructured or semi-structured data, NoSQL databases are
more flexible than relational databases. Unlike traditional relational
databases that use tables with pre-defined schemas to store data, NoSQL
databases use flexible data models that can adapt to changes in data
structures and are capable of scaling horizontally to handle growing amounts
of data.
o They include types like document stores (e.g., MongoDB), key-value stores
(e.g., Redis), and column stores (e.g., Cassandra).
3. Cloud Databases:
o These are databases hosted on cloud services (like Amazon RDS, Google
Cloud SQL, or Azure SQL) that provide high availability, backup, and scaling
options for web-based applications.
o Users can log in and view data from any internet-connected device, offering
convenience and flexibility.
2. Real-Time Updates:
o Changes are instantly reflected across the application, ensuring that all users
view the most recent data.
o Web databases are essential for applications that require multi-user access
and large-scale data storage, such as e-commerce sites and social networks.
1. Security:
o Since web databases are accessible over the internet, they are vulnerable to
cyberattacks. Proper authentication, data encryption, and regular security
updates are essential.
2. Data Privacy:
o Handling sensitive user data, like personal information, requires compliance
with privacy regulations, such as GDPR or CCPA.
3. Scalability Management:
o As applications grow, the database must handle more data and users. This
can involve complex scaling solutions to maintain performance.
4. Downtime and Reliability:
Amazon RDS