A relational database stores information in tables of rows and columns and represents links between tables with keys. You can keep related facts, such as customers and orders, in separate tables and combine them with an SQL join. This works well when records have a clear structure and the database must enforce shared rules, but not every workload fits naturally into tables.
A database management system (DBMS) is software that stores and retrieves data. It also runs queries, coordinates concurrent requests, checks constraints, handles transactions, and helps recover after failures. A database is the managed data and its structure; the DBMS is the engine that works with it.
Neo4j stores data as nodes, directed relationships between nodes, and properties on either. When an answer depends on following several connections, Cypher’s `MATCH` clause lets you describe a path pattern and retrieve matching data. For writes that may run repeatedly, distinguish `CREATE`, which always adds new data, from `MERGE`, which matches or creates a pattern; use stable identifiers and uniqueness constraints to control duplicates.
Apache Cassandra spreads data across nodes and replicates it so requests can continue when some nodes are unavailable. In return, it does not provide arbitrary joins or cross-partition transactions as a relational database would, and operators must choose replica response requirements and run repair. Having replicas does not mean every read always returns the newest value.
Redis is more than a cache that stores strings by key: it is a data structure server with commands for strings, hashes, lists, sets, sorted sets, and streams. These structures support fast key-based work such as caches, counters, queues, leaderboards, and event processing. To use Redis safely, plan memory limits, key expiration and eviction, disk persistence, and the data-loss window of asynchronous replication.
MongoDB stores data as BSON documents, groups documents into collections, and groups collections into databases. Documents in one collection do not have to share identical fields, but that does not mean MongoDB has no schema. In practice, you must decide how to validate data, which indexes match your queries, and whether one atomic document update is enough or several documents must change in one transaction.
Oracle Database stores and processes shared application data. Its database is the set of data files on disk; its instance is the memory structures and processes that manage those files. In the multitenant architecture, one container database (CDB) can contain several pluggable databases (PDBs), and a transaction defines which changes become permanent together or are undone. This guide focuses on the CDB model used in Oracle Database 21c and later and draws on Oracle documentation checked on November 23, 2026.
Microsoft SQL Server is a database management system that receives application requests to store, query, and change relational data. A client connects to an instance of the SQL Server Database Engine and submits work in Transact-SQL (T-SQL). Each database uses data files and a transaction log; explicit transactions group multiple changes into one unit of work. Understanding these layers helps distinguish the server, instance, database, and files—and clarifies what must be rolled back or recovered after an error. This guide follows Microsoft Learn documentation reviewed on 23 November 2026.
SQLite is an embedded relational database that runs inside an application's process instead of as a separate database server. It usually stores data in one local file, which keeps setup simple, and it supports transactions. However, only one write transaction can run against a database file at a time. If many computers need to write directly to the same network-hosted file, or the service needs high write concurrency, consider a client/server DBMS. This guide uses official SQLite documentation reviewed on 23 November 2026 to explain the trade-offs and basic concurrency model.
MariaDB is an open-source relational database server with shared ancestry and substantial compatibility with MySQL, but the projects evolve independently, so their features and operational behavior are not identical. When evaluating MariaDB or moving from MySQL, do not rely on “drop-in replacement” alone: check the target versions, client connections, SQL and data types, storage engines, backup/recovery, and replication needs. This guide follows official MariaDB documentation reviewed on 23 November 2026.
MySQL is an open-source database management system for relational data queried with SQL. MySQL Server handles connections and SQL execution, while a table's storage engine implements how its data is stored and how transactions work. In MySQL 9.7, InnoDB is the default engine for new tables, so beginners should learn to distinguish the server from InnoDB. This guide follows the official MySQL 9.7 manual reviewed on 23 November 2026.
PostgreSQL is an open-source object-relational database management system (ORDBMS): it builds on relational SQL and can also be extended with user-defined types, functions, and operators. One common source of confusion is “cluster.” In PostgreSQL, a cluster generally means the set of databases managed by one server instance; it does not necessarily mean several computers working together. This guide follows PostgreSQL 19 documentation reviewed on 23 November 2026 and traces a client request through query execution and transactions.
A PostgreSQL read replica is a separate server that follows WAL changes from the primary while serving read queries. It can move reports and other read-heavy work off the primary, but default replication is asynchronous, so recent changes may not yet be visible. Treat it as a query target with freshness and read-only constraints, not as an instantly identical extra server.
PostgreSQL failover promotes a standby to become the new writable primary when the current primary cannot serve the database. The promotion command is short; the safety work comes first: prevent the old primary from accepting writes, and assess how much WAL the candidate has replayed. Skipping either step can create two writable primaries or lose commits that had not reached the standby.
PostgreSQL point-in-time recovery (PITR) restores a physical base backup, then replays the continuous sequence of write-ahead log (WAL) files created after it until the chosen point. A base backup alone cannot restore changes made afterward, and WAL alone lacks the full data files needed to start recovery, so both pieces and an unbroken archive are required. PITR recovers a whole database cluster; validate the target and result on an isolated copy before redirecting production traffic.
Choose a PostgreSQL backup method based on what you need to recover. For moving one database to another server or a newer version, or restoring selected objects, `pg_dump` is flexible. For quickly copying an entire database cluster, a physical backup such as `pg_basebackup` is a better fit. A backup file’s existence does not prove that it can be restored; perform a test restore and check that required data and permissions are present.
Change data capture (CDC) detects inserts, updates, and deletes that a database has committed, then delivers them to other systems. In PostgreSQL, one approach is to decode the write-ahead log (WAL) logically and track the reader’s position with a replication slot; Debezium is one implementation that combines this with an initial snapshot and a Kafka Connect event stream. CDC can update a search index or analytics store by sending changes instead of repeatedly querying only current rows. But without a plan for duplicate processing, schema changes, and log retention, downstream data can diverge or the source disk can fill.
A write-ahead log (WAL) records a database change before the database writes that change to its data files. PostgreSQL can keep the log for a committed change durable without flushing every affected table and index page on every commit, then replay the log to restore a consistent state after a failure. This article explains WAL in PostgreSQL 18, including checkpoints, archiving, and operational limits. Other databases use similar structures, such as redo logs, but their file formats and guarantees differ.