Vezi pagina în română

IT Glossary

What is NoSQL?

The family of databases that step outside strict tables — documents, key-value stores, graphs — trading guarantees for flexibility and scale.

5
sections
5
questions answered

NoSQL (usually read as «Not only SQL») is the umbrella name for non-relational databases: systems that keep data not in tables of fixed rows and columns but in documents (MongoDB), key-value pairs (Redis), wide columns (Cassandra) or graphs (Neo4j). Classic relational databases keep the world in strict tables — defined columns, rigorous relationships, guaranteed consistency — a model that has served accounting, inventory and orders impeccably for fifty years. Each of these families stepped outside that mould for a specific pain. Document stores such as MongoDB hold whole flexible objects without a fixed schema, useful when product catalogues or profiles vary by category. Key-value engines like Redis answer in microseconds and power caches and sessions. Graph databases make relationships themselves queryable — recommendations, fraud detection. Wide-column databases such as Cassandra spread massive volumes of writes across many servers (logs, sensor data, event history). Search engines such as Elasticsearch often work alongside them and make free text findable instantly. The honest price of that flexibility: strict transactional consistency often relaxes (not everywhere: MongoDB runs ACID transactions across multiple documents), and 'schemaless' frequently means the schema lives unguarded in application code. For a company evaluating an architecture proposal, the sane default remains a relational core (PostgreSQL being the era's sensible pick) with NoSQL pieces added surgically where a concrete pain demands them. When a vendor proposes NoSQL as the sole foundation 'because it is modern', one test cuts through: what problem in our data does it solve better than PostgreSQL, and who guarantees the numbers in the financial reports?

Why it matters for your business

Each data type in its element

Flexible catalogues, lightning caches, full-text search, complex relationship queries — specialised engines beat forcing one model onto everything.

Horizontal scale by design

NoSQL families grew up distributed across many servers — large volumes and traffic are absorbed by adding machines, not rewriting software.

Structures that evolve quickly

Without a rigid schema, the new product attribute or profile field ships today rather than after a month-long planned migration.

The four types of NoSQL database

Key-value: a unique key leads to a value, and Redis keeps data in memory, which is why it is used for caches, sessions and queues. Document: JSON-like objects, each with its own fields; MongoDB is the classic example, suited to catalogues with different attributes per category, profiles and content.

Wide-column: rows partitioned across many nodes, scaled by adding servers; Cassandra is used for logs, sensor data and very high write volumes. Graph: nodes, relationships and properties, with relationships queried directly; Neo4j is used for recommendations, fraud and networks. Search engines (Elasticsearch) and vector databases are often grouped under the same umbrella, but they are specialised tools that sit next to the main database.

NoSQL vs SQL: the differences that matter

Schema: in a SQL database it is fixed and defined up front; in NoSQL it is flexible and lives in code. Scaling: a relational database usually grows vertically, onto a bigger server; NoSQL systems are designed to scale horizontally across more servers (Cassandra: “scales horizontally”).

Consistency: ACID transactions are native to the relational world, while in NoSQL it depends on the system. Cassandra is by default AP (availability over consistency, with the consistency level chosen per operation), whereas MongoDB has ACID transactions across multiple documents. The business conclusion stays the same: relational as the foundation, NoSQL where a concrete pain demands it.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

Example: one customer, in tables and in a document

In a relational database, the customer lives in several tables (customers, addresses, orders) linked by keys, and a “sales by city” report is a JOIN. In a document database, one “customer” document holds the addresses and recent orders embedded: reading the profile is a single operation, but a report across all orders needs aggregation.

That is why the model is chosen by the questions the business asks of its data, not by how modern the technology sounds.

Frequently asked questions

SQL or NoSQL for our application — the short answer?

Relational as the foundation, almost always: business records like customers, orders and money need the consistency and reporting strength of the relational world. NoSQL enters for targeted pains — Redis where cache speed matters, Elasticsearch where search is the product, document stores where structure genuinely varies. Mature systems combine them; it is rarely either-or.

What risks come with building entirely on NoSQL 'for flexibility'?

Three pains that surface at maturity: business reporting becomes acrobatics, relaxed consistency produces ugly edge cases exactly around money, where the system does not use transactions — totals that disagree, races between operations — and the unguarded 'schema in code' accumulates historical data variants nobody can read anymore. All manageable by teams who know the territory, which is exactly why 'why this choice?' is a mandatory proposal question.

MongoDB, Redis, Elasticsearch keep appearing in proposals — what does each do?

The most common trio: MongoDB is the generalist document store for flexible structures and fast development; Redis is the lightning-fast memory layer for caches, sessions and queues, usually beside the main database rather than replacing it; Elasticsearch is the search engine behind free-text queries, filters and suggestions in serious online stores. Seeing them alongside a solid relational core signals mature architecture; seeing them instead of one raises a question mark.

What does NoSQL stand for?

«Not only SQL» is the usual reading. The name was first used by Carlo Strozzi for a relational database with no SQL language; today's meaning, distributed non-relational databases, took hold later. NoSQL does not mean «no SQL»: some systems accept SQL-like queries.

Is MongoDB SQL or NoSQL?

NoSQL, a document database: data lives as JSON-like documents (stored as BSON), not in tables. It does support ACID transactions across multiple documents, so «NoSQL» no longer automatically means «no transactions»; in practice, reports across all the data still take more effort than in a relational database.