Database Management Systems
Learn about different database types (SQL, NoSQL, Graph, Time-Series) and their use cases. Explore CAP theorem trade-offs and make informed database choices.
Category: Infrastructure
What You Will Learn
- Compare relational, document, key-value, column-family, graph and time-series databases
- See how each type models and queries data, and its CAP trade-offs
- Use a decision playground and a scenario quiz to pick a database for a workload
Topics covered: database, sql, nosql, educational, interactive
// simulator
Database Management Systems
Learn about different database types (SQL, NoSQL, Graph, Time-Series) and their use cases. Explore CAP theorem trade-offs and make informed database choices.
Database Management Systems
Learn about different types of databases, their use cases, and trade-offs through interactive exploration
DBMS Types
Relational, Document, Key-Value, Column-Family, Graph, Time-Series
Use Cases
When to use each type for real-world applications
CAP Theorem
Understand trade-offs between consistency, availability, and partition tolerance
Query Patterns
See how queries differ across database types
Overview
There is no single best database, only the best fit for a workload, and this simulator is a guided tour of the main families. The explorer covers six types side by side: relational databases with tables, SQL and ACID transactions; document databases that store JSON-like documents; key-value stores built for fast lookups by key; column-family stores designed for very large write-heavy datasets; graph databases that store relationships as first-class data; and time-series databases optimized for timestamped measurements. For each one you see how data is modeled, an example of how it is queried, and the workloads it suits. A decision playground then asks a few questions, such as whether you need ACID transactions or complex relationships, and points you to a matching type. The quiz closes with realistic scenarios: a financial system that needs transactions, session data with fast lookups and expiry, friend recommendations in a social network and millions of sensor readings. The aim is to choose a database from the access pattern, not from habit.
Try this
- Open the explorer and compare how the relational and document databases model the same data.
- Use the decision playground to see which database type it recommends for your own project.
- Take the quiz and check the explanation for the IoT sensor scenario.
Frequently asked questions
- When should I use a NoSQL database instead of SQL?
- When the data model or scale fits it better: documents for flexible, self-contained records, key-value for simple fast lookups, graphs for heavily connected data and time-series stores for timestamped metrics. For most business data with relationships and transactions, a relational database is a safe default.
- What does ACID mean?
- Atomicity, consistency, isolation and durability: a transaction either fully happens or not at all, keeps the data valid, does not see half-finished work from others, and survives a crash once committed.
- What is a time-series database?
- A database optimized for data points with timestamps, such as metrics and sensor readings. It handles high write rates, compresses data well and makes time-window queries and retention policies efficient.
Try next
// simulator
Message Queue Simulator
Visualize how message queues work across Kafka and RabbitMQ patterns. Explore producers, brokers, topics, partitions, exchanges, queues, consumer groups, lag, rebalancing, backpressure, ordering, and dead letter queues.
// simulator
Caching Strategies Simulator
Learn caching fundamentals with an interactive simulator. Visualize cache hits, misses, eviction policies (LRU, LFU, FIFO), and understand write strategies.
// simulator
Horizontal vs Vertical Scaling Simulator
Interactive game to learn scaling strategies for web applications. Experiment with horizontal and vertical scaling, see the effects on performance, cost, and reliability with realistic pricing simulation and budget constraints.