Difference between Derby and MongoDB

1. Derby :
Derby is a full-featured, open-source relational database management system (RDBMS) implemented in Java and as the name suggests it is developed by Apache Software Foundations. It is based on Java, JDBC and SQL standards. Derby is easy to install, deploy, and use. It is either embedded into a Java application or used as a database server.

2. MongoDB :
MongoDB is a cross-platform document-oriented and a non relational (i.e., NoSQL) database program. It is an open-source document database, that stores the data in the form of key-value pairs. MongoDB is developed by MongoDB Inc. and initially released on 11 February 2009. It is written in C++, Go, JavaScript, Python languages. MongoDB offers high speed, high availability, and high scalability.

Difference between Derby and MongoDB :

SR.NO Derby MongoDB
1 It is developed by Apache Software Foundation in 1997. It is developed by MongoDB Inc. on 2009.
2 It is written in Java language. It is written in C++ language.
3 The primary database model for Derby is Relational DBMS. The primary database model for MongoDB is Document store.
4 Server operating systems for Derby are Windows, macOs, Linux, Unix, BSD and z/OS. Server operating systems for MongoDB are Linux, OS X, Solaris and Windows.
5 It has Java Stored Procedures for Server-side scripts. It has Javascript for Server-side scripts.
6 It support Master-Slave Replication methods. It also support Master-Slave Replication methods.
7 APIs and other access methods used by Derby is JDBC. APIs and other access methods used by MongoDB is proprietary protocol using JSON.
8 It support only Java programming language. It support C, C#, C++, D, Delphi, Java, JavaScript, Lua, MatLab, Objective-C, Perl, PHP, PL/SQL, Python, R, Ruby, Scala, etc.
9 It provide XML support. It do not provide XML support.
10 It support fine grained access rights according to SQL-standard. It do not support access rights for user.
11 It does not support any Partitioning methods. In MongoDB, partitioning can be done by Sharding.
12 It does not supports Map Reduce method. It supports Map Reduce method.
13 It provides Immediate Consistency method to ensure consistency in a distributed system. It provides both Eventual Consistency and Immediate Consistency methods to ensure consistency in a distributed system.
14 It provides multi-document ACID transactions with snapshot isolation It provides ACID transactions.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.