Riak

Riak

Riak

Distributed NoSQL key-value data store


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.[4] 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]

Quick Facts Developer(s), Initial release ...

Riak has a pluggable backend for its core storage, with the default storage backend being Bitcask.[7] LevelDB is also supported, with other options (such as the pure-Erlang Leveled) available depending on the version.

Riak was originally developed by engineers employed by Basho Technologies[8] and maintained by them until 2017 when the rights were sold to bet365[9][10] after Basho went into receivership.[11]

Main features

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.
Queries
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
Multi-Datacenter replication (MDC) provides uni-directional and bi-direction replication of data between Riak clusters, whether locally for resilience or globally for faster regional access. Uni-directional replication is useful for read-only sinks such as backups and Disaster Recovery sites. Bi-directional replication allows for multiple Riak cluster to have eventually consistent data across vast distances. Complex replication scenarios such as chains, hub-and-spoke and mesh networks are possible due to the Cascades feature, which allows replication of data between clusters that are not directly connected. There are two primary modes of operation: fullsync and realtime. Fullsync mode ensures that all data on the source cluster is replicated to the sink cluster. Only the metadata and changes are transferred, making this fast and efficient. Realtime mode sends updates made to a source cluster to the sink cluster in realtime. These modes are designed to work together for best performance 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.

Main products

All versions of Riak are now entirely open-source and free, and include the extra features that Basho charged license fees for.

Basho operated a freemium model, wherein they provided free versions of Riak in the form of Riak Core, Riak KV, Riak CS and Riak TS but made their money from licensing more advanced features and SLA-based support. The extra features from the Enterprise Editions have since been integrated into the open source version of Riak KV, as of Riak KV release 2.2.6.[12] and Riak CS 2.1.2 [13]

Riak Core and Riak Core Lite

Riak Core

riak_core[14] is the distributed systems framework that underpins Riak, forming the foundation for all Riak versions. It is being maintained as part of Riak.

Riak Core Lite

riak_core_lite[15] is intended for general use as a base for creating distributed systems.

Riak KV (Key-Value)

Riak KV is a distributed NoSQL database designed to deliver maximum data availability by distributing data across multiple servers, meaning that if one client can reach one server, it should be able to read and write data.[16] KV went through a few names in its lifetime, starting as Riak then Riak DS (for Data Store) and finally Riak KV (for Key-Value).

When Basho Technologies went into receivership in 2017[11] KV development was picked up by the open source community and has continued into 2021, with 2.2.6 released in 2018 being the first community release of KV. This release integrated some features that were originally restricted to Basho's Enterprise versions of Riak.[12]

Version 2.9.0 was the first major community release by the open source community, releasing in November 2019,[12] with version 3.0.1 following on August 20, 2020.[12] Development has continued since then with the latest release being version 3.0.7.[17]

Removed features

The current version of Riak no longer supports some features in the Enterprise edition of Riak, including:

  • SNMP/JMX support

Separated features in Riak KV 3.0+

The following features of Riak KV 2.x have been removed by default from the Riak build. Specific builds including these features are available.

  • Yokozuna

Riak CS (Cloud Storage)

Originally known as Riak Moss[18](Riak Multi-tenant Object Storage System - MOSS) but named as Riak CS (Cloud Storage) when released, Riak CS was first publicly released in January 2012.

Riak CS (Cloud Storage) is object storage software built on top of Riak KV, Riak's distributed database. Riak CS is designed to provide simple, highly-available, distributed cloud storage at any scale, and can be used to build cloud architectures or as storage infrastructure for heavy-duty applications and services.[19]

Riak CS also includes an application called Stanchion[20] which is used to manage the serialization of requests. This enables Riak CS to manage globally unique entities like users and bucket names. Serialization in this context means that the entire cluster agrees upon a single value for any globally unique entity at any given time; when that value is changed, the new value must be recognized throughout the entire cluster.

Riak CS was briefly rebranded as Riak S2 to make it more obviously compatible with Amazon S3 but the name did not catch on and it reverted to Riak CS.

In 2021 development for Riak CS was resumed with contributions from TI Tokyo.

Riak TS (Time Series)

Riak TS is an extension to Riak KV optimized for time series data, in that:

  • it supports structured data, with table definition (with a CREATE TABLE call) required before data can be written;
  • data slices from contiguous regions in its primary index (“quanta”) are stored on the same partition;
  • CRUD operations are optimized for speed, at the expense of consistency.

A limited subset of SQL commands was implemented in Riak TS. There is no provision for consistency guarantees between tables (no foreign indexes). In SELECT statements, WHERE clause is supported but HAVING is not. ORDER BY was to appear in a version that was never released.

Riak TS existed as a collection of branches (in separate components of Riak KV such as riak_kv, riak_pb, etc.) and not as product with a repository of its own. It was developed by a dedicated team consisting of Gordon Guthrie (leader), Andy Till and Andrei Zavada, with occasional contributions from other developers.

Riak TS was conceived, along with Riak Data Platform project, as an attempt to diversify Basho's product line, an undertaking many insiders regard as misguided and eventually contributing to Basho's demise.

Licensing and support

Riak was originally licensed using a freemium model: open source versions of Riak KV, Riak CS and Riak TS are available, but end users can pay for additional features and support. However, since Basho entered receivership[11] and bet365[10] (purchasers of all IP) made all Riak products fully open source, all the premium features are now available in the open source versions. Since Basho's demise, community[21] ad-hoc and paid support options have arisen.

Language support

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

Community development

After bet365[10] purchased the Riak IP,[9] the Riak products were made full open source and work to integrate premium features into the open source versions was completed with the 2.2.6 release.

History

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

Riak KV

Riak 1.0 was released September 10, 2011

More information Version!, Date Released ...

Riak CS

Riak CS was made open source on March 20, 2013[39]

More information Version!, Date Released ...

Riak TS

Riak TS was originally released in October 2015 [59]

More information Version!, Date Released ...

Users

Notable users include AT&T, Comcast,[67] GitHub,[67] Best Buy,[67] UK National Health Services (NHS),[68] The Weather Channel,[69] and Riot Games.[70]

See also


References

  1. Riak 3.2.0 release notes, 2023-01-01
  2. Sheehy, Justin. "Riak 1.0 Release Party". Vimeo.
  3. Harvey, Cynthia (23 May 2014). "60 Open Source Apps You Can Use in the Cloud". Datamation. Retrieved 5 June 2014.
  4. "Riak KV 2.2.6 Release Notes". github.com. April 26, 2018. Retrieved September 10, 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. Morgan, Timothy Prickett (7 May 2014). "Eucalyptus Scales Out AWS Cloud Clone". Enterprise Tech. Retrieved 5 June 2014.
  7. "Basho: Bitcask". docs.riak.com. Retrieved 2021-09-14.
  8. "Basho Technologies", Wikipedia, 2020-11-19, retrieved 2021-07-15
  9. "Riak NoSQL snapped up by Bet365". ComputerWeekly.com. Retrieved 2021-07-15.
  10. "Bet365", Wikipedia, 2021-07-14, retrieved 2021-07-30
  11. Hill, Rebecca. "End of the road for Basho: Court puts biz into receivership". www.theregister.com. Retrieved 2021-07-15.
  12. "basho/riak". GitHub. Retrieved 2021-07-15.
  13. "basho/riak_cs". GitHub. Retrieved 2021-07-24.
  14. "Riak KV". docs.Riak.com. 15 July 2021.
  15. "Riak KV 3.0.7 Release notes". Riak Github. 2021-07-21. Retrieved 2021-09-02.
  16. "Riak Moss". Github. 2012-01-26. Retrieved 2021-08-24.
  17. "Riak Cloud Storage". docs.Riak.com. 15 July 2021.
  18. "Stanchion Application". Tiot.jp. Retrieved 2021-08-24.
  19. "Riak Community site". Riak info. 2021-09-14. Retrieved 2021-09-14.
  20. "Riak 1.0 release". Riak.com. 2011-09-11. Retrieved 2021-08-26.
  21. "Riak KV 2.2.0 Release Notes". Basho. 2016-11-17. Retrieved 2016-12-21.
  22. "Riak KV 2.2.5 Release Notes". GitHub. Retrieved 23 June 2018.
  23. "basho/riak_kv". GitHub. Retrieved 2021-07-15.
  24. "Riak KV 2.9.8 release notes". Github. 2020-12-07. Retrieved 2021-08-19.
  25. "Release notes 2.9.9". GitHub. 2021-08-06. Retrieved 2021-08-24.
  26. "basho/riak_core". GitHub. Retrieved 2021-07-15.
  27. "Riak KV 3.0.8 Release notes". Riak Github. 2021-10-12. Retrieved 2023-05-12.
  28. "Riak KV 3.0.9 Release notes". Riak Github. 2021-11-12. Retrieved 2023-05-12.
  29. "Riak KV 3.0.10 Release notes". Riak Github. 2022-03-30. Retrieved 2023-05-12.
  30. "Riak KV 3.0.11 Release notes". Riak Github. 2022-10-11. Retrieved 2023-05-12.
  31. "Riak KV 3.0.12 Release notes". Riak Github. 2022-12-20. Retrieved 2023-05-12.
  32. "Riak KV 3.2.0 Release notes". Riak Github. 2023-01-01. Retrieved 2023-05-12.
  33. "Riak KV 3.0.13 Release notes". Riak Github. 2023-02-04. Retrieved 2023-05-12.
  34. "Riak KV 3.0.14 Release notes". Riak Github. 2023-02-13. Retrieved 2023-05-12.
  35. "Riak KV 3.0.15 Release notes". Riak Github. 2023-02-15. Retrieved 2023-05-12.
  36. "Riak CS is now open source". Riak.com. 2013-03-20. Retrieved 2021-08-26.
  37. "Riak MOSS 0.0.3". Github. 2012-02-26. Retrieved 2021-09-02.
  38. "Riak CS 0.1.0 Release notes". Github. 2012-02-25. Retrieved 2021-09-02.
  39. "Moss 1.0 Release notes". Github. 2012-04-02. Retrieved 2021-09-02.
  40. "Moss 1.0.1 Release notes". Github. 2012-04-18. Retrieved 2021-09-02.
  41. "Riak CS 1.1.0 release notes". Riak CS Github. 2012-08-20. Retrieved 2021-09-02.
  42. "Riak CS 1.2 Release Notes". Riak CS Github. 2012-10-23. Retrieved 2021-09-02.
  43. "Riak CS 1.2.1 Release notes". Riak CS Github. 2012-10-23. Retrieved 2021-09-02.
  44. "Riak CS Release notes". Riak CS Github. 2012-11-08. Retrieved 2021-09-02.
  45. "Riak CS Release". Riak CS Github. 2013-03-20. Retrieved 2021-09-02.
  46. "Riak CS 1.3.1 Release notes". Riak CS Github. 2013-04-04. Retrieved 2021-09-02.
  47. "Riak CS 1.4.0 Release". Riak CS Github. 2013-08-12. Retrieved 2021-09-02.
  48. "Riak CS Release". Riak CS Github. 2014-07-31. Retrieved 2021-09-02.
  49. "Riak CS Release". Riak CS Github. 2014-09-10. Retrieved 2021-09-02.
  50. "Riak CS Releases". Riak CS github. 2014-10-09. Retrieved 2021-09-02.
  51. "Riak CS Release". Riak CS Github. 2014-12-12. Retrieved 2021-09-02.
  52. "Riak CS Releases". Riak CS Github. 2015-03-13. Retrieved 2021-09-02.
  53. "Docs.riak.com". Riak CS Release notes. 2015-03-27. Retrieved 2021-09-02.
  54. "Riak CS Release notes". Docs.riak.com. 2015-10-14. Retrieved 2021-09-02.
  55. "Riak CS github". Riak CS Github. 2019-04-09. Retrieved 2021-09-02.
  56. "Basho releases Riak TS (time-series)". InfoQ. 2015-10-27. Retrieved 2021-08-19.
  57. "Riak TS release notes". docs.riak.com. 2016-02-23. Retrieved 2021-09-14.
  58. "Riak TS 1.3.0 Release notes". docs.riak.com. 2016-05-04. Retrieved 2021-09-14.
  59. "Riak TS Release notes". docs.riak.com. 2016-07-05. Retrieved 2021-09-14.
  60. "Riak TS 1.4.0 Release notes". docs.riak.com. 2016-08-24. Retrieved 2021-09-14.
  61. "Riak TS 1.5.0 Release notes". docs.riak.com. 2016-12-20. Retrieved 2021-09-14.
  62. "Riak TS 1.5.1 Release notes". docs.riak.com. 2017-01-24. Retrieved 2021-09-02.
  63. "Riak TS 1.5.2 Release notes". docs.riak.com. 2017-02-21. Retrieved 2021-09-14.
  64. Clark, Jack (10 October 2013). "NHS tears out its Oracle Spine in favour of open source". The Register. Retrieved 5 June 2014.
  65. Henschen, Doug (2 June 2014). "Why Big Data Tools Are Here To Stay: InformationWeek Video". InformationWeek. Retrieved 5 June 2014.
  66. Ptaszek, Michal (16 January 2016). "Chat Service Architecture: Persistence". RiotGames. Retrieved 2 February 2016.

Share this article:

This article uses material from the Wikipedia article Riak, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.