Types of Databases
Anjana Silva
Web Team Leader ?? | Sharing daily insights on software engineering for your growth ?? Be sure to follow my profile ?? | Cricket enthusiast ??
1) Relational Databases
Relational databases use tables to store data in a structured manner, with rows representing records and columns representing attributes. They are compliant with ACID (Atomicity: ensures that all parts of a transaction succeed or fail together, like flipping a light switch: it's either on or off, not halfway. Consistency: ensures that your data remains valid and obeys all the rules you've set, like ensuring that the total balance of a bank account is always correct, Isolation: ensures that multiple transactions happening at the same time won't mess with each other, like people in different rooms of a library not interfering with each other's reading and Durability: means that once you write something to the database, you can trust that it will stay there, even if the power goes out or the computer crashes, which is a standard set of properties for reliable database transactions.
2) NoSQL Databases
NoSQL databases are designed for flexible data models. They can be document-based, key-value, column-family, or graph databases.
3) Columnar Databases
Columnar databases store data in columns rather than rows, making them efficient for analytical workloads.
When to Use: Use for data warehouses or analytics where querying large datasets is common.
When Not to Use: Avoid for transactional systems with frequent write operations.
Examples: Amazon Redshift, Google BigQuery.
4) Wide-Column Databases
Wide column databases are designed for handling large volumes of data with dynamic schemas. It can handle petabytes of data, making it ideal for supporting real-time big data applications.
5) Key-Value Databases
Key-value databases store data as simple key-value pairs.
6) Graph Databases
Graph databases are designed for managing and querying data with complex relationships, making them suitable for social networks and recommendation systems.
7) Document Databases
Document databases store data in semi-structured documents, such as JSON or XML.
8) Cloud Databases
Cloud databases are hosted on cloud platforms, providing scalability, reliability, and managed services.
9) Time Series Databases
Time series databases are optimized for storing and querying time-stamped data.
10) Hierarchical Databases
Hierarchical databases organize data in a tree-like structure, suitable for managing hierarchical relationships.
Choosing the right database type depends on your project's specific requirements, so carefully assess your needs before making a decision.
I believe you have learned something new. Let me know what you think of this article. I am curious to hear your feedback ??
------------
? Share this article with your colleagues/friends if you found this useful. It means the world to me ??
Let's learn and grow together ??
Some of the icons I used in the article banner are from Icons8 ?? - Thank you.
Have a great day!