Skip to main content
QUICK REVIEW

[Paper Review] Trinity: A Distributed Publish/Subscribe Broker with Blockchain-based Immutability

Gowri Ramachandran, Kwame-Lante Wright|arXiv (Cornell University)|Jun 12, 2018
Blockchain Technology Applications and SecurityComputer Science8 references11 citations
TL;DR

Trinity proposes a distributed, blockchain-integrated publish-subscribe broker that ensures data immutability, consistency, and trust across multi-stakeholder IoT and supply chain applications. By combining MQTT with the Tendermint blockchain and smart contracts, Trinity enables decentralized, tamper-proof data logging with minimal performance overhead, achieving end-to-end delays of ~3 seconds on a 20-node Raspberry Pi 3 network.

ABSTRACT

Internet-of-Things (IoT) and Supply Chain monitoring applications rely on messaging protocols for exchanging data. Contemporary IoT deployments widely use the publish-subscribe messaging model because of its resource-efficiency. However, the systems with publish-subscribe messaging model employ a centralized architecture, wherein the data from all the devices in the application network flows via a central broker to the subscribers. Such a centralized architecture make publish-subscribe messaging model susceptible to a central point of failure. Besides, it provides an opportunity for the organization that owns the broker to tamper with the data. In this work, we contribute Trinity, a novel distributed publish-subscribe broker with blockchain-based immutability. Trinity distributes the data published to one of the brokers in the network to all the brokers in the network. The distributed data is stored in an immutable ledger through the use of the blockchain technology. Furthermore, Trinity executes smart contracts to validate the data before saving the data on the blockchain. Through the use of a blockchain network, Trinity can guarantee persistence, ordering, and immutability across trust boundaries. Our evaluation results show that Trinity consumes minimal resources, and the use of smart contracts enable the stakeholders to automate the data management processes. To the best of our knowledge, Trinity is the first framework that combines the components of the blockchain technology with the publish-subscribe messaging model.

Motivation & Objective

  • To address the central point of failure and data tampering risks in centralized IoT publish-subscribe systems.
  • To enable trust across multiple stakeholders in supply chain and IoT monitoring by ensuring data immutability and consistency.
  • To integrate blockchain technology with existing publish-subscribe messaging protocols without sacrificing efficiency.
  • To support automated data validation through smart contracts in decentralized, multi-organization environments.
  • To evaluate the performance overhead of blockchain integration in a real-world, resource-constrained testbed.

Proposed method

  • Trinity uses a distributed broker architecture where messages are published to one broker and propagated to all others via a consensus mechanism.
  • It integrates the Tendermint blockchain framework to maintain a cryptographically secure, replicated ledger across all brokers.
  • Each message is validated by a smart contract before being committed to the blockchain, ensuring policy compliance.
  • The system uses a permissioned blockchain to enforce trust among known stakeholders while maintaining data ordering and persistence.
  • The framework decouples blockchain logic from broker logic, enabling integration with any blockchain or messaging protocol.
  • Evaluation is conducted on a 20-node Raspberry Pi 3 testbed using MQTT and Tendermint, measuring CPU, memory, and latency overhead.

Experimental results

Research questions

  • RQ1Can a publish-subscribe broker be made resilient to single points of failure and data tampering in multi-stakeholder IoT environments?
  • RQ2How can blockchain technology be efficiently integrated with existing lightweight messaging protocols like MQTT to ensure immutability and ordering?
  • RQ3What is the performance overhead of adding blockchain-based immutability to a distributed broker in a resource-constrained environment?
  • RQ4Can smart contracts be effectively used to automate data validation across decentralized, multi-organization systems?
  • RQ5How does the system maintain consistency and ordering of messages across distributed brokers without a central authority?

Key findings

  • Trinity introduces an end-to-end delay increase of approximately 3 seconds on a 20-node Raspberry Pi 3 testbed, demonstrating practical feasibility.
  • The framework achieves data immutability, ordering, and persistence across trust boundaries using blockchain consensus and replication.
  • Smart contracts successfully validate data against predefined policies, enabling automated enforcement of agreements between stakeholders.
  • The system consumes minimal additional CPU and memory overhead, with CPU usage and RAM usage remaining low during consensus and block creation.
  • Trinity is the first framework to combine publish-subscribe messaging with blockchain-based immutability, offering a novel solution for multi-stakeholder IoT and supply chain applications.
  • The evaluation confirms that the trust benefits of blockchain integration outweigh the modest performance costs in real-world deployments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.