6 Databases in Web Development
6 Databases in Web Development
1. Static
2. Dynamic
Static websites are ones that only display information such as text or pictures
on their web pages that users cannot interact with.
Dynamic websites, on the other hand, allow for user interaction, and that is
where Databases come into the picture. Think of any website you’ve visited
today. How many of them required for you to sign in or allowed you to click
on a button that retrieved some information, perhaps even a new web page,
for you? This information that web applications are able to display to you or
process to allow you to access other information needs to be stored
somewhere. That somewhere is a database associated with the web
application.
Server-side
Application
Logic
Types of DBMS #
Database Management Systems can be categorized into one of two types:
1. SQL
2. NoSQL
SQL #
SQL databases, also known as relational databases, use structured query
language (SQL) for defining and manipulating data. On the one hand, this is
extremely useful since SQL is one of the most versatile and widely-used
options available, thus making it a safe choice and especially great for
complex queries. On the other hand, it can be restrictive, too, since SQL
requires that you use predefined schemas to determine the structure of your
data before you work with it. Moreover, data is always stored as a table in
SQL databases, which leads to inefficient and complicated data retrievals. In
addition, all of your data must follow the same structure. This can require
significant effort and may lead to a highly complicated data processing code
that can affect the quality of the overall application.
1. MySQL
2. PostgreSQL
3. MariaDB
NoSQL #
NoSQL databases, also known as non-relational databases, have a dynamic
schema for unstructured data, and data is stored in many ways, including key-
value pairs, documents and, even graphs. This flexibility means that you don’t
have to define the structure of your data explicitly and each data set can have
its own unique structure without having to worry about writing extraneous
lines of code to process this data to match a specific predefined structure.
These databases can grow dynamically, and the structure of data can vary
from database to database.
1. MongoDB
2. Apache CouchDB
3. Redis
1
Which of the following is NOT true about dynamic websites?
COMPLETED 0%
1 of 2
That covers all we need to know about the role of databases and database
management systems in web development. Now, we will move on to look at
specific examples of both types of databases and list the pros and cons of both.