The Wayback Machine - https://web.archive.org/web/20240723090534/https://www.geeksforgeeks.org/nosql-data-architecture-patterns/
Open In App

NoSQL Data Architecture Patterns

Last Updated : 21 Sep, 2021
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Architecture Pattern is a logical way of categorizing data that will be stored on the Database. NoSQL is a type of database which helps to perform operations on big data and store it in a valid format. It is widely used because of its flexibility and a wide variety of services. 

Architecture Patterns of NoSQL: 
The data is stored in NoSQL in any of the following four data architecture patterns. 

1. Key-Value Store Database
2. Column Store Database
3. Document Database
4. Graph Database 

These are explained as following below. 

1. Key-Value Store Database: 
This model is one of the most basic models of NoSQL databases. As the name suggests, the data is stored in form of Key-Value Pairs. The key is usually a sequence of strings, integers or characters but can also be a more advanced data type. The value is typically linked or co-related to the key. The key-value pair storage databases generally store data as a hash table where each key is unique. The value can be of any type (JSON, BLOB(Binary Large Object), strings, etc). This type of pattern is usually used in shopping websites or e-commerce applications. 

Advantages: 

  • Can handle large amounts of data and heavy load, 
  • Easy retrieval of data by keys. 

Limitations: 

  • Complex queries may attempt to involve multiple key-value pairs which may delay performance. 
  • Data can be involving many-to-many relationships which may collide. 

Examples: 

  • DynamoDB
  • Berkeley DB

2. Column Store Database: 
Rather than storing data in relational tuples, the data is stored in individual cells which are further grouped into columns. Column-oriented databases work only on columns. They store large amounts of data into columns together. Format and titles of the columns can diverge from one row to other. Every column is treated separately. But still, each individual column may contain multiple other columns like traditional databases. 
Basically, columns are mode of storage in this type. 

Advantages: 

  • Data is readily available 
  • Queries like SUM, AVERAGE, COUNT can be easily performed on columns. 

Examples: 

  • HBase
  • Bigtable by Google
  • Cassandra

3. Document Database: 
The document database fetches and accumulates data in form of key-value pairs but here, the values are called as Documents. Document can be stated as a complex data structure. Document here can be a form of text, arrays, strings, JSON, XML or any such format. The use of nested documents is also very common. It is very effective as most of the data created is usually in form of JSONs and is unstructured. 

Advantages: 

  • This type of format is very useful and apt for semi-structured data. 
  • Storage retrieval and managing of documents is easy. 

Limitations:  

  • Handling multiple documents is challenging 
  • Aggregation operations may not work accurately. 

Examples: 

  • MongoDB
  • CouchDB

 

Figure – Document Store Model in form of JSON documents

4. Graph Databases: 
Clearly, this architecture pattern deals with the storage and management of data in graphs. Graphs are basically structures that depict connections between two or more objects in some data. The objects or entities are called as nodes and are joined together by relationships called Edges. Each edge has a unique identifier. Each node serves as a point of contact for the graph. This pattern is very commonly used in social networks where there are a large number of entities and each entity has one or many characteristics which are connected by edges. The relational database pattern has tables that are loosely connected, whereas graphs are often very strong and rigid in nature. 

Advantages: 

  • Fastest traversal because of connections. 
  • Spatial data can be easily handled. 

Limitations: 
Wrong connections may lead to infinite loops. 

Examples:  

  • Neo4J
  • FlockDB( Used by Twitter)

Figure – Graph model format of NoSQL Databases

 


Similar Reads

Difference Between Architectural Style, Architectural Patterns and Design Patterns
Many software professionals think that architectural styles and patterns are the same. Sadly, some of the software developers don’t understand the difference between architectural patterns and design patterns. In this article, we're going to summarize the differences between them. According to MSDN, architectural styles and patterns are the same th
7 min read
Key-Value Data Model in NoSQL
A key-value data model or database is also referred to as a key-value store. It is a non-relational type of database. In this, an associative array is used as a basic database in which an individual key is linked with just one value in a collection. For the values, keys are special identifiers. Any kind of entity can be valued. The collection of ke
3 min read
How NoSQL System Handle Big Data Problem?
Datasets that are difficult to store and analyze by any software database tool are referred to as big data. Due to the growth of data, an issue arises that based on recent fads in the IT region, how the data will be effectively processed. A requirement for ideas, techniques, tools, and technologies is been set for handling and transforming a lot of
2 min read
Columnar Data Model of NoSQL
The Columnar Data Model of NoSQL is important. NoSQL databases are different from SQL databases. This is because it uses a data model that has a different structure than the previously followed row-and-column table model used with relational database management systems (RDBMS). NoSQL databases are a flexible schema model which is designed to scale
3 min read
Aggregate Data Model in NoSQL
We know, NoSQL are databases that store data in another format other than relational databases. NoSQL deals in nearly every industry nowadays. For the people who interact with data in databases, the Aggregate Data model will help in that interaction. Features of NoSQL Databases: Schema Agnostic: NoSQL Databases do not require any specific schema or
2 min read
Graph Based Data Model in NoSQL
Graph Based Data Model in NoSQL is a type of Data Model which tries to focus on building the relationship between data elements. As the name suggests Graph-Based Data Model, each element here is stored as a node, and the association between these elements is often known as Links. Association is stored directly as these are the first-class elements
3 min read
What is Integration Databases in NoSQL?
In NoSQL databases, integration databases refer to databases that combine different types of NoSQL databases and/or traditional relational databases to provide a comprehensive and flexible data storage solution. This can help organizations to overcome some of the limitations of using a single type of database and to take advantage of the strengths
5 min read
Apache Cassandra (NOSQL database)
In this article, we will learn the basics of Apache Cassandra and the basics of CQL (Cassandra Query Language) operations like Create, insert, delete, select, etc. Apache Cassandra: Apache Cassandra is an open-source no SQL database that is used for handling big data. Apache Cassandra has the capability to handle structure, semi-structured, and uns
3 min read
Strategies For Migrating From SQL to NoSQL Database
Migrating from a SQL database to a NoSQL database can be a complex process, but there are several strategies that can be used to make the transition smoother. Here are some common strategies for migrating from SQL to NoSQL: Analyze the current SQL schema and data model: Before starting the migration, it's important to analyze the current SQL schema
7 min read
Cassandra (NoSQL) Database
Recent Topics on Cassandra: Introduction Cassandra Architecture Cassandra Query Language Data Types Collection Data Types Functions in Cassandra Data Modelling and Designing Security Performance Monitoring Backup and Restore Data Misc Introduction Apache Cassandra (NoSQL) database Introduction to Apache Cassandra Role of keys in Cassandra schema de
2 min read
three90RightbarBannerImg