LAB 3 - Week 3 - NoSQL and Big Data
LAB 3 - Week 3 - NoSQL and Big Data
1. Discuss why using a NoSQL database for a website like Amazon is a better idea and
what pushed e-commerce websites like Amazon to switch to NoSQL databases.
NoSQL databases are more suitable than relational databases. These include e-
commerce websites like Amazon because they offer better performance, scalability, and
flexibility. E-commerce websites like Amazon deal with large amounts of data each.
They have to store user profiles, payments, and all products stored on Amazon. As we
all know, NoSQL databases are designed to handle large volumes even as data grows
exponentially, which also does not affect performance.
A reason that gets ignored why e-commerce websites switch to NoSQL is cost
efficiency, which is helpful to newer companies. With e-commerce websites, the user
having fast Wi-Fi isn't the only factor that provides a great user experience - NoSQL
makes this possible.
3. Give a brief summary of AmazonDB. Include what kind of data structure is used, and
how that data structure is an effective concept for creating a NoSQL database.
Amazon Aurora is another Amazon database service but this one is relational. Amazon
Aurora is compatible with MySQL and PostgreSQL. It offers high availability, durability,
and performance, making it suitable for applications requiring ACID compliance and
relational data structures.
4. Explain what CGI (Common gateway interface) does, and what its alternatives are
today.
Prevalent Gateway Connect (CGI) is a traditional form of technology secondhand in netting
happening. This technology allows netting servers to communicate accompanying extrinsic
programs or scripts to create vital netting content.
But what is CGI? Well CGI is a protocol that gi. They are usually inscribed in Python or covering
script. When a consumer communicates accompanying a web page computer network
attendant invokes aCGI script before it gets gived to the customer. The script processes the
dossier, produces HTML or other content, and sends it back to the computer network attendant,
which, in proper sequence, transfers it to the customer's browser.
CGI played an important act in the early growth of the World Wide Web. Before vital netting
applications and attendant-side sciences enhanced prevalent, CGI handwriting were the basic
means to build shared netting content.
While CGI was a useful tool it had several disadvantages. CGI scripts frequently provoked a
significant conduct overhead, as each request complicated offset a new process for the script.
This managed to lazier response opportunities and wasteful resource habits. Also CGI
handwriting could be naive to freedom vulnerabilities except that it is correctly configured.
Poorly inscribed or insecure handwriting takes care of potentially revealing an attendant to
differing risks, including unwarranted approach and data breaches.
As netting development progressed, various alternatives to CGI arose, trying its deficiencies
and permissive more adept and secure dynamic content era.
While the Common Entry Connect (CGI) played an inventing part in the growth of dynamic
netting content, allure use has declined considerably on account of performance, protection,
and scalability challenges. In new netting development, planners have an off-course array of
alternatives, containing attendant-side or music languages, netting foundations, application
servers, content administration schemes, and customer-side technologies. These alternatives
offer improved efficiency, security, and scalability, making them the preferred choices for
building dynamic web applications in today's digital landscape.
5. Explain the concept of database sharding. How does data sharding contribute to
database scalability and performance? And what are the drawbacks of database
sharding?
Vertical scalability, as known or named at another time or place climbing up, involves growing
the ability of a alone server or system by accumulating more CPU, Stab, depository, or
additional hardware elements to handle raised workloads.
Level Scalability or measuring out, involves adjoining more machines or servers to a network or
cluster to allocate the assigned work and improve overall scheme accomplishment.
Upright Scalability: This approach focuses on improving the existing fittings of a distinct server
or support. It usually demands more powerful and high-priced fittings components, in the way
that faster processors or best amounts of Smash.
Horizontal Scalability: This approach focuses on accumulating more servers or machines to the
network. It depends on distributing the duties and responsibilities across diversified, frequently
less powerful, merchandise fittings money.3. Limitations: Upright Scalability: Skilled is a finite
limit to by virtue of how much a distinct attendant can be scaled across. Earlier the hardware
reaches allure maximum ability, further climbing may not be doable or economical.
Level scalability may be more surely extended by accumulating supplementary servers, making
it a more flexible approach for management growing workloads.4. Complicatedness: Vertical
Scalability: Increasing more money to a single attendant may be more natural from a
management outlook as it doesn't demand handling distributed arrangements. Still, it may
demand free time all the while upgrades. Horizontal Scalability: Measuring out across can be
more intricate on account of the need to survive multiple servers, allocate dossiers, and handle
communication middle from two points bureaucracy. Still, it often admits better arrangement,
resilience and chance.
Cram is accumulating more memory to a table attendant to help its capability to handle agreeing
queries and dossier caching. Increasing Computer Capacity: Installing faster processors in a
netting attendant to handle a bigger number of incoming requests. Extending Depository:
Adding more hard drives to a file attendant to adapt best.
7. What are the trade-offs between strong consistency and eventual consistency, and how
do different databases handle these trade-offs? Show some examples.
Attaining strong constancy frequently requires arrangement and simultaneity among delivered
growth, leading to raised abeyance for state and write movements. Chance Strong thickness
can bring about reduced chance all the while network partitions or when nodes forsake because
it may demand a majority of nodes expected usable for a write movement to assume. Regularity
prioritizes chance, allowing arrangements in the second place functioning even when network
partitions or node deficiencies happen. This makes bureaucracy more weakness tolerant.
Expectations for this assignment: 1. Three to four full pages, write an essay answering the
questions above. 2. At one or two sources from journals, news, and websites (reputable
websites such as .edu, .gov or Microsoft, Google etc.)