Facebook open sources low-latency scalable database

By

Takes advantage of fast storage.

Facebook is pushing forward with open sourcing the applications it uses, and today released the code for its RocksDB low-latency embedded persistent key-value database.

Facebook open sources low-latency scalable database

RocksDB attaches directly to application servers, which reduces latency compared to accessing data stored on networked database, according to Facebook Hadoop engineer Dhruba Borthakur.

While RocksDB is based on Google's open source LevelDB, Facebook found that the latter did not perform well when the entire database couldn't fit into main memory. 

Facebook modified LevelDB and improved the write rate ten-fold through multi-threaded data compaction that uses all available processor cores.

Thread-aware compaction reduced applications stalls that saw latencies spike to the tens of seconds, and Facebook also substantially reduced read and write amplification in RocksDB.

Source: Facebook

Coders at the social network also broke up RocksDB into a pluggable architecture, allowing for instance different modules for data compression to be used without any changes to the code itself, Borthakur wrote.

Thanks to the code changes, RocksDB scales linearly with the number of processors and can utilise 64 or more cores. It also scales linearly with increased storage IOPS (input/outputs per second) and can take advantage of fast Flash memory as well as dynamic and non-volatile RAM.

Some of the uses for RocksDB include cacheing data from Hadoop, for real-time queries, and applications that need fast access to big data sets. 

Being a machine attached database, Facebook warned that RocksDB is not distributed and doesn't have a failover mechanism, or high-availability features. If the system it is attached goes down, RocksDB will lose the data stored in it.

The code for RocksDB is available on the Github repository as a C++ library.

 

Got a news tip for our journalists? Share it with us anonymously here.
Copyright © iTnews.com.au . All rights reserved.
Tags:

Most Read Articles

ANZ consolidates operational risk into ServiceNow

ANZ consolidates operational risk into ServiceNow

Rio Tinto AI tool aids defect elimination in rail operations

Rio Tinto AI tool aids defect elimination in rail operations

Curtin University makes headway on 'radical' tech shakeup

Curtin University makes headway on 'radical' tech shakeup

Salesforce blocks AI rivals from using Slack data

Salesforce blocks AI rivals from using Slack data

Log In

  |  Forgot your password?