How to use Berkeley DB as a NoSQL
This article mainly introduces how to use Berkeley DB as a NoSQL, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
How to use BerkeleyDB as NoSQL
BerkeleyDB Summary
At present, the BerkeleyDB family is mainly composed of the following three parts:
BerkeleyDB- is developed by C language. This is the most classical kind.
BerkeleyDBJavaEdition (JE)-developed by Java.
BerkeleyDBXML- was developed by C++.
Data structure
BerkeleyDB- currently supports four data structures.
B-Tree
Hash
Queue: accessing fixed-length records
Recno: save variable length records
BerkeleyDBJavaEdition (JE)-developed by Java. Currently, only B-Tree format is supported.
BerkeleyDBXML- was developed by C++.
How to use BerkeleyDB as NoSQL
Transaction support
BerkeleyDB can support transactions flexibly. In BerkeleyDB, the data reliability supported by the transaction will have three levels, the strongest one is that the data is persisted directly to the disk when the transaction is committed, the second is that the data is left to the operating system to decide when to flush the disk when the transaction is committed, and finally, it is not persistent disk, but is guaranteed by the background checkpoint.
Horizontal expansion
BerkeleyDB provides an extension mechanism for Master-Slaver. Multiple Replica can be carried by one Master. It can bring you the following benefits:
Enhanced read performance
Improve reliability
Enhanced durability (Durability): transactions can be relaxed on the Master side, while data durability is guaranteed by clusters.
Enhanced availability
BerkeleyDB has been or will be applied to Amazon'sDynamo,ProjectVoldemort,MemcacheDB, as well as GenieDB.
Thank you for reading this article carefully. I hope the article "how to use Berkeley DB as NoSQL" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!