Question
What is server-side persistence and why is it needed?
Answer
Server-side persistence means storing data on non-volatile server storage so it survives across separate HTTP requests and server restarts.
Web applications need persistence for:
- User data (addresses, profiles)
- Application data (orders, inventory)
- Tracking data (analytics, logs)
Without persistence, all data would be lost when the server restarts or between requests. The server receives requests, stores/retrieves data from storage, and returns responses.
Note saved — thanks!
Question
What are the main storage options for server-side persistence?
Answer
The three main server-side storage options are the filesystem, relational databases, and document (NoSQL) databases.
| Option | Description |
|---|---|
| Filesystem | Store data in files (XML, JSON, proprietary formats) |
| Relational DB | Tables with rows, linked via relationships, SQL queries |
| Document DB | Store documents (JSON-like), flexible schema, NoSQL |
Choice depends on data structure, query needs, and scalability requirements.
Go deeper:
NoSQL (Wikipedia) — the "not only SQL" family that document and key-value stores belong to, and why they emerged.
Document-oriented database (Wikipedia) — how a document store differs from rows-and-tables, with the JSON/BSON document model.
Note saved — thanks!