Bagri
discontinuedby Denis Sukhoroslov · since 2014 · also known as BagriDB
Distributed XML and JSON document database layered on Hazelcast, queried with XQuery via the XQJ API.
discontinued. Last release 1.2.0 (Dec 2017), last commit Feb 2019; project website gone. BaseX, eXist-db or MarkLogic are maintained XML databases.
Overview
Bagri is an open-source document database by Denis Sukhoroslov that stores XML (and, later, JSON) documents in a distributed in-memory data grid, primarily Hazelcast, with experimental Coherence and JCache client modules. Documents are shredded into the grid and queried with XQuery through the Saxon engine, exposed via the standard XQJ (JSR 225) Java API and a REST server; release 1.2.0 (December 2017) added transaction-level triggers, batch and asynchronous document processing and a non-transactional fast path. It scales by adding grid members and was benchmarked with the TPoX XML suite. Development stopped in February 2019 and the bagridb.com domain now belongs to an unrelated site.
Strengths & trade-offs
Strengths
- +Standard XQuery and XQJ access instead of a proprietary API
- +Scales out by adding in-memory data grid members
- +Handles both XML and JSON documents
- +Apache 2.0 licensed, modular Maven build
Trade-offs
- −Abandoned since 2019 and pinned to old Hazelcast and Saxon versions
- −Data lives in grid memory, so capacity is RAM-bound
- −Tiny community and no remaining website or documentation hub
Great for
- +Studying XQuery over in-memory data grids
- +Legacy systems already built on Bagri's XQJ interface
Think twice for
- −New XML or document-store projects
- −Datasets larger than cluster memory
Capabilities
Native or official first-party support · 6 of 25 tracked
Scale & consistency
- Comfortable data size
- Small · ≤ 100 GB
- Horizontal scaling
- Native
- Multi-region
- No
- Transactions
- Limited ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Distributed, In memory
- Query languages
- XQuery
Partitions documents across Hazelcast cluster members; capacity follows cluster RAM.
Deployment
Ecosystem
Alternatives to Bagri
Lightweight, fast native XML database and XQuery 3.1/4.0 processor with a GUI.
bagri vs basex →Open-source native XML database and XQuery application platform for documents and digital editions.
bagri vs exist-db →Enterprise multi-model database for XML, JSON and RDF with built-in search and semantic RAG.
bagri vs marklogic →A Java in-memory data grid and stream processor that embeds in your app or runs as a cluster.
bagri vs hazelcast →The default document database: flexible BSON documents, rich queries and built-in sharding.
bagri vs mongodb →LinkedIn's internal, MySQL-backed distributed document store that serves as source of truth for its core data.
bagri vs espresso →Bagri FAQ
What is Bagri?
Bagri is a XML database by Denis Sukhoroslov, first released in 2014. Bagri is an open-source document database by Denis Sukhoroslov that stores XML (and, later, JSON) documents in a distributed in-memory data grid, primarily Hazelcast, with experimental Coherence and JCache client modules. Documents are shredded into the grid and queried with XQuery through the Saxon engine, exposed via the standard XQJ (JSR 225) Java API and a REST server; release 1.2.0 (December 2017) added transaction-level triggers, batch and asynchronous document processing and a non-transactional fast path. It scales by adding grid members and was benchmarked with the TPoX XML suite. Development stopped in February 2019 and the bagridb.com domain now belongs to an unrelated site.
Is Bagri open source?
Yes. Bagri is open source. License: Apache License 2.0.
Does Bagri support ACID transactions?
Partly. Bagri offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.
Does Bagri scale horizontally?
Bagri scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at small scale (≤ 100 GB).
How can I run Bagri?
You can self-host it.
What is Bagri best for?
Bagri is a strong fit for studying XQuery over in-memory data grids and legacy systems already built on Bagri's XQJ interface. Think twice for new XML or document-store projects.
What are the best alternatives to Bagri?
Common alternatives to Bagri include BaseX, eXist-db, MarkLogic, Hazelcast and MongoDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is Bagri still maintained?
Bagri is discontinued. Last release 1.2.0 (Dec 2017), last commit Feb 2019; project website gone. BaseX, eXist-db or MarkLogic are maintained XML databases.
How popular is Bagri?
Bagri ranks #658 of 844 databases on the WhichDB Score (0.3/100), and #4 among XML databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.


