From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Developer(s)Basho Technologies
Initial releaseAugust 17, 2009; 13 years ago (2009-08-17)
Stable release
3.0.7 / July 16, 2021; 14 months ago (2021-07-16)[1]
Written inErlang
Operating systemLinux, BSD, macOS, Solaris
PlatformIA-32, x86-64
TypeNoSQL database, cloud storage
LicenseApache License 2.0

Riak (pronounced "ree-ack" [2]) is a distributed NoSQL key-value data store that offers high availability, fault tolerance, operational simplicity, and scalability.[3] Riak moved to an entirely open-source project in August 2017, with many of the licensed Enterprise Edition features being incorporated after its acquisition by Bet365.[4][3] Riak implements the principles from Amazon's Dynamo paper[5] with heavy influence from the CAP Theorem. Written in Erlang, Riak has fault tolerant data replication and automatic data distribution across the cluster for performance and resilience.[6]

Riak was originally developed by engineers employed by Basho Technologies and maintained by them until 2017 when the rights were sold to bet365 after Basho went into receivership.[7] Riak was originally licensed using a freemium model.[6] It is now completely open-source including all the enterprise features. Riak has a pluggable backend for its core storage, with the default storage backend being Bitcask.[8]

Main features[edit]

Fault-tolerant availability
Riak replicates key/value stores across a cluster of nodes with a default n_val of three. In the case of node outages due to network partition or hardware failures, data can still be written to a neighboring node beyond the initial three, and read-back due to its "masterless" peer-to-peer architecture.
Riak provides a REST-ful API through HTTP and Protocol Buffers for basic PUT, GET, POST, and DELETE functions. More complex queries are also possible, including secondary indexes, search (via Apache Solr), and MapReduce. MapReduce has native support for both JavaScript (using the SpiderMonkey runtime) and Erlang.
Predictable latency
Riak distributes data across nodes with hashing and can provide latency profile, even in the case of multiple node failures.
Storage options
Keys/values can be stored in memory, disk, or both.
Multi-datacenter replication
In multi-datacenter replication, one cluster acts as a "primary cluster." The primary cluster handles replication requests from one or more "secondary clusters" (generally located in other regions or countries). If the datacenter with the primary cluster goes down, a second cluster can take over as the primary cluster.
There are two primary modes of operation: fullsync and realtime. In fullsync mode, a complete synchronization occurs between primary and secondary cluster(s), by default every six hours. In real-time mode, replication to the secondary data center(s) is triggered by updates to the primary data center. All multi-datacenter replication occurs over multiple concurrent TCP connections to maximize performance and network utilization.
Tunable consistency
Option to choose between eventual and strong consistency for each bucket.

Licensing and support[edit]

Riak is available for free under the Apache 2 License. In addition, Basho Technologies offered two options for its commercial software, Riak Enterprise and Riak Enterprise Plus. Riak Enterprise Plus adds baseline and annual system health checks to ensure long-term platform stability and performance.

Language support[edit]

Riak has official drivers for Ruby, Java, Erlang and Python. There are also numerous community-supported drivers for other programming languages.[9]


Riak was originally written by Andy Gross and others at Basho Technologies[2] to power a web Sales Force Automation application by former engineers and executives from Akamai. There was more interest in the datastore technology than the applications built on it, so the company decided to build a business around Riak itself, gaining adoption throughout the Fortune 100 and becoming a foundation to many of the world's fastest-growing Web-based, mobile and social networking applications, as well as cloud service providers. Releases after graduation include

  • 1.1, released Feb 21 2012, added Riaknostic, enhanced error logging and reporting, improved resiliency for large clusters, and a new graphical operations and monitoring interface called Riak Control.
  • 1.4, released July 10, 2013, added counters, secondary indexing improvements, reduced object storage overhead, handoff progress reporting, and enhancements to MDC replication.
  • 2.0, released September 2, 2014, added new data types including sets, maps, registers, and flags simplifying application development. Strong consistency by bucket, full-text integration with Apache Solr, Security, and reduced replicas for Secondary sites.
  • 2.1, released April 16, 2015, added an optimization for many write-heavy workloads – “write once” buckets – buckets whose entries are intended to be written exactly once, and never updated or over-written.
  • 2.2, released November 17, 2016, added Support for Debian 8 and Ubuntu 16.04, Solr integration improvements.[10]
  • Riak may no longer be maintained by Basho [11]
  • At this point parent company Basho Technologies was put into receivership. The assets were purchased by bet365 who open sourced all the code, including the previously closed source portions, allowing the release of:
  • 2.2.5, released April 26, 2018, is the first community release. Added support for Multi-Datacentre Replication which was not part of open-source Riak before, added a grow-only set data type, improved data distribution over nodes and cleaned up production test issues.[12]
  • NHS Digital and Bet365 have continued to fund work to develop this community release, making significant changes, including bringing version 3.0 up to date with more modern Erlang OTP versions.
  • Community development goes on beyond release 3.0.[13]


Notable users include AT&T, Comcast,[14] GitHub,[14] Best Buy,[14] UK National Health Services (NHS),[15] The Weather Channel,[16] and Riot Games.[17]

See also[edit]


  1. ^ Riak 3.0.7 release notes, 2021-09-08
  2. ^ a b Sheehy, Justin. "Riak 1.0 Release Party". Vimeo.
  3. ^ a b Harvey, Cynthia (23 May 2014). "60 Open Source Apps You Can Use in the Cloud". Datamation. Retrieved 5 June 2014.
  4. ^ Saran, Cliff. "Riak NoSQL snapped up by Bet365". ComputerWeekly. Retrieved 24 November 2021.
  5. ^ DeCandia, Giuseppe; Hastorun, Deniz; Jampani, Madan; Kakulapati, Gunavardhan; Lakshman, Avinash; Pilchin, Alex; Sivasubramanian, Swaminathan; Vosshall, Peter; Vogels, Werner (October 14–17, 2007). Dynamo: Amazon's Highly Available Key-value Store (PDF). Proceedings of 21st ACM SIGOPS Symposium on Operating Systems Principles (SOSP '07). Stevenson, Washington, USA: ACM. pp. 205–220. doi:10.1145/1294261.1294281. ISBN 978-1-59593-591-5. Retrieved 5 June 2014.
  6. ^ a b Morgan, Timothy Prickett (7 May 2014). "Eucalyptus Scales Out AWS Cloud Clone". Enterprise Tech. Retrieved 5 June 2014.
  7. ^ "End of the road for Basho". The Register. The Register. Retrieved 2021-10-13.
  8. ^ "Basho: Bitcask". Retrieved 5 June 2014.
  9. ^ "Riak Client Libraries and Community Code". Retrieved 5 June 2014.
  10. ^ "Riak KV 2.2.0 Release Notes". Basho. 2016-11-17. Retrieved 2016-12-21.
  11. ^ "TheRegister investigation". TheRegister.
  12. ^ "Riak KV 2.2.5 Release Notes". Retrieved 23 June 2018.
  13. ^ "Riak KV 3.0 Release Notes". Retrieved 8 May 2021.
  14. ^ a b c "Basho Technologies takes aim at more enterprises with upgrades". 21 February 2013. Retrieved 26 March 2015.
  15. ^ Clark, Jack (10 October 2013). "NHS tears out its Oracle Spine in favour of open source". The Register. Retrieved 5 June 2014.
  16. ^ Henschen, Doug (2 June 2014). "Why Big Data Tools Are Here To Stay: InformationWeek Video". InformationWeek. Retrieved 5 June 2014.
  17. ^ Ptaszek, Michal (16 January 2016). "Chat Service Architecture: Persistence". RiotGames. Retrieved 2 February 2016.

External links[edit]