Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Why Backends Need Databases | Section
Working with MongoDB in Express Applications

bookWhy Backends Need Databases

Pyyhkäise näyttääksesi valikon

In earlier examples, data was stored directly in code, such as arrays or simple variables. This works for learning, but it has serious limitations.

When the server restarts, all data is lost. There is no way to persist information between sessions.

File-based storage can solve this partially, but it becomes hard to manage as the application grows. Reading and writing files manually is slower, less flexible, and not designed for handling large amounts of data.

Real applications need a reliable way to store, update, and retrieve data efficiently. They also need to handle multiple users and frequent changes.

This is where databases come in.

A database is designed to store data in a structured way, making it easy to query, update, and manage. It allows your backend to keep data safe and accessible at any time.

question mark

Why are databases needed in backend development?

Valitse oikea vastaus

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 1

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Osio 1. Luku 1
some-alt