fbpx

CASE STUDY

IOTA Uses Scylla to Scale a
Distributed Ledger for IoT

About IOTA

IOTA is an open-source distributed ledger technology (DLT) and cryptocurrency designed for the machine and sharing economy. As a permissionless trust layer for the Internet of Things, the IOTA protocol enables a frictionless exchange of value between machines and humans. Using the IOTA protocol, anyone can secure data on the network and make it verifiable to third parties for free. A non-profit foundation, IOTA’s team is distributed over 25 countries, with more than 250,000 community members and partnerships with 100+ organizations.

The Challenge

The DLT behind IOTA, known as the Tangle, is different from other decentralized ledgers; it requires neither transaction fees nor miners. The Tangle is a particular kind of directed graph, one which holds transactions. Each transaction is represented as a vertex in the graph. When a new transaction joins the Tangle, it chooses two previous transactions to approve, a process that adds two new edges to the graph. The Tangle grows quickly as new transactions are added and verified.

Many node owners have limited storage, and IoT transactions can quickly run out of space. With a focus on IoT, many nodes run on low-level, resource-constrained devices. To address this challenge initially, IOTA introduced local snapshots, allowing node owners to delete old transactions and prevent the database from growing too large.

Real-world business use cases, however, often require persistent storage to support auditability and compliance. Financial data, for example, must be stored for up to 10 years, while identity data needs to be kept for the lifetime of the identity.

To support this requirement for persistent storage, the IOTA Foundation implemented Chronicle, a persistent node referred to as a “permanode.” Chronicle enables node owners to store all IOTA transactions in a scalable and distributed database. Additionally, the permanode will, in theory, offer indefinite storage and easy access to the transaction history recorded in Tangle.

“Lucky us, Scylla met all our hard requirements.”

Louay Kamel, Distributed Systems Engineer, IOTA Foundation

The Solution

“Why choose Scylla over other NoSQL databases? Lucky us, Scylla met all our hard requirements,” said Louay Kamel, distributed systems engineer, IOTA Foundation.

IOTA adopted Scylla as the default storage solution for Chronicle based on the following key features:

  • Fault tolerance: Users can set a replication strategy to determine how to replicate data to avoid a single-point of failure
  • Data consistency: Users can set a consistency level to determine whether a read or write operation is successful
  • Fast and efficient data queries: Scylla uses LSM-based storage with high write throughput
  • Time to live: Users can define the lifetime of their data
  • Low operating costs: Licenses (including free and enterprise licenses) and operating costs are very favorable compared to other solutions

According to Kamel, IOTA also appreciates Scylla’s underlying shared-nothing architecture. Built on the Seastar C++ framework it “offers unlimited scalability.” A few other key features driving IOTA’s choice of Scylla are support for the CQL binary protocol and asynchronous streams.

The new IOTA Scylla driver makes use of shard awareness to further enhance scale and low-latency. “All of this enabled our Tangle Explorer. It’s ready, stable, and rock solid, thanks to Scylla.”