
Document databases are usually presented as a trade: flexible schemas and easy scaling in exchange for weaker transactions and more operational work. RavenDB was built on the opposite assumption. It is a document database that is transactional by default, creates the indexes your queries need on its own, and ships with full-text search, replication and a management interface in the box, so a .NET team can run it without assembling a stack around it.
This article explains what RavenDB is, how it works, where it fits, where it does not, and how it compares with other document databases.
What is RavenDB?
RavenDB is a NoSQL document database that stores data as JSON documents and supports ACID transactions. It runs on Windows, Linux and macOS, on ARM devices such as the Raspberry Pi, and as a managed service, RavenDB Cloud. The server is written in C# on .NET, and official clients exist for C#, Java, Python, Node.js, Go and other languages.
RavenDB was created by Oren Eini, known in the .NET community as Ayende Rahien, at his company Hibernating Rhinos. He announced the 1.0 release in March 2010 and the product went live, with its website and documentation, on 18 May 2010. The company has since renamed itself RavenDB Ltd. Recent versions added vector search and built-in AI integrations; vector search arrived with RavenDB 7.0 in 2025.
The server is available under the AGPLv3 open-source licence and under commercial licences, while the client libraries are MIT-licensed. A free Community licence covers production use with limits on cluster size and features, a free Developer licence covers development and testing, and Professional and Enterprise licences are paid.
How RavenDB works
Documents in collections. Each record is a JSON document with an ID, grouped into collections such as Orders or Customers. Documents can hold nested objects and arrays, so an order and its lines are stored and loaded together.
Transactions by default. A unit of work, called a session in the client, saves all of its changes in one ACID transaction. Inside a cluster, RavenDB also offers cluster-wide transactions for operations that must be consistent across nodes.
Indexes that build themselves. Queries never scan the whole collection. If no index fits a query, RavenDB creates an automatic index for it and maintains it from then on. For more complex needs you define static indexes, including map-reduce indexes that pre-compute aggregates. Indexes are updated in the background, so queries can return slightly stale results right after a write unless you ask them to wait.
RQL. Queries are written in the Raven Query Language, which reads much like SQL, or through LINQ in .NET.
Clusters and replication. A production setup is usually a cluster of three or more nodes. Databases are replicated between nodes, each node can accept writes, and clients fail over automatically when a node goes down.
Key features
- ACID transactions on single documents and across many, including cluster-wide transactions.
- Automatic and static indexing, with map-reduce aggregations.
- Built-in full-text search, without a separate search engine.
- Management Studio, a web interface for queries, indexes, monitoring and cluster administration.
- ETL to relational databases, Elasticsearch, message queues and analytics targets.
- Data subscriptions that push matching documents to worker processes.
- Revisions, attachments, counters and time series stored alongside documents.
- Vector search for semantic search and AI features.
Where RavenDB is used
- .NET business applications that want document storage with LINQ and strong transactional guarantees.
- SaaS platforms and microservices, where each service owns a database and the team wants little operational overhead.
- Read-heavy screens, where RavenDB serves as a store for pre-shaped view models.
- Edge and on-premise deployments, including small devices and sites with limited connectivity.
When to choose RavenDB, and when not to
Choose RavenDB when:
- Your team works in .NET and wants a document database that feels native to it.
- You want transactions, indexing and search without stitching several products together.
- Operational simplicity matters more than having the largest ecosystem.
Look elsewhere when:
- You need the widest choice of hosting providers, tools and experienced engineers. MongoDB has a much larger ecosystem.
- The data is deeply relational and reporting-heavy. A relational database such as PostgreSQL is the better fit.
- Licence terms are a concern. Using the AGPL edition or the Community licence in production needs a careful read, and larger clusters need a paid licence.
RavenDB and its alternatives
| Database | Transactions | Licence | Best fit |
|---|---|---|---|
| RavenDB | ACID by default, cluster-wide option | AGPLv3 and commercial | .NET teams, low operational overhead |
| MongoDB | Single-document atomic, multi-document ACID | SSPL and commercial | Large ecosystem, any language |
| Azure Cosmos DB | ACID within a partition | Managed, Azure only | Global apps on Azure |
| PostgreSQL with JSONB | Full ACID | Open source | Relational core with some document data |
MongoDB is the comparison most people search for. Both store JSON documents; MongoDB has the larger community, more managed hosting options and a richer aggregation framework, while RavenDB puts transactions, automatic indexing and search in one product. Azure Cosmos DB suits teams that want a fully managed service on Azure.
How we use RavenDB at Internative
We use RavenDB in projects that demand high performance, strong consistency and operational simplicity. Its built-in features reduce how much infrastructure a system needs, while still supporting scalable, production-ready systems.
If you are building a .NET product and weighing your data layer, our custom software development team can help you choose.
Frequently asked questions
Is RavenDB open source?
Yes, the server is available under the AGPLv3 licence and its source code is public, and the client libraries are under the MIT licence. RavenDB is also sold under commercial licences, which most companies use in production.
Is RavenDB free?
There are free options. The Developer licence is free for development and testing, and the Community licence is free for production use with limits on cluster size and features. Professional and Enterprise licences are paid, and RavenDB Cloud is billed as a managed service.
What is the difference between RavenDB and MongoDB?
Both are document databases. RavenDB is transactional by default, creates indexes automatically and includes full-text search and a management studio. MongoDB has a much larger ecosystem, more language and hosting options, and is the more common choice outside .NET.
What language is RavenDB written in?
RavenDB is written in C# on .NET, which is unusual for a database engine and one reason it integrates so naturally with .NET applications. Clients are available for other languages as well.
Keep reading
The articles that follow this one.



