[SERVER-8652] Embedded version of MongoDB Created: 21/Feb/13  Updated: 06/Dec/22  Resolved: 31/May/22

Status: Closed
Project: Core Server
Component/s: Build, Storage
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Richard Kreuter (Inactive) Assignee: Backlog - Build Team (Inactive)
Resolution: Done Votes: 8
Labels: query_triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-11893 Allow mongodb to be run as a embedded... Closed
is duplicated by SERVER-20999 MongoDB embedded distribution Closed
Related
Assigned Teams:
Build
Participants:

 Description   

(Intended as one or more intern projects.)

Occasionally people say they want to use MongoDB as an embedded database (analogous to SQLite); various mongo* tools already do this, but little to no effort has been undertaken to make an embeddable mongod library for such a purpose.

Anyway, the general idea of this issue is "improve embeddability of mongod". The scope here is intentionally, but could be carved into pieces:

(1) rejigger the build process to cough up a "libmongod.so" or similar,
(2) (maybe) try to give that library a C API,
(3) write bindings to such a libmongod for some higher-level languages, (point 2 ought to make point 3 easier, but 2 isn't strictly necessary for 3)
(4) ideally, enhance an existing driver or two to make use of an embedded mongod as similar as possible to talking to a MongoDB server deployment,
(5) (maybe) figure out what behaviors in mongod's storage layer ought to be parameterized for improved embedded use (thinking about file sizing, say).



 Comments   
Comment by Zakhar Kleyman [ 31/May/22 ]

MongoDB mobile was added in version 4.0 in project PM-331

Comment by SherryUmmen [ 09/Sep/15 ]

Just do it!

Comment by Hyun Kim [ 04/Mar/15 ]

We would want this but not just for Java.
https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo

Comment by Doug Hudson [ 01/Oct/13 ]

I'd love to have this available. Being able to embed a single-file mongo DB ala sqlite would be very popular.

Similar solutions include https://github.com/Softmotions/ejdb and http://unqlite.org/

Generated at Thu Feb 08 03:17:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.