Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.
Ishan Gulhane edited this page Mar 28, 2018 · 7 revisions

Welcome to the controlling-flow-ofRequests-toBlockchain-using-Redis-and-RabbitMQ wiki!

Short Name

Integrate RabbitMQ and Redis Custer in Blockchain Network

Short Description

Control flow of request to blockchain network using RabbitMQ and Redis Custer.

Offering Type

Emerging Tech - Blockchain

Introduction

Congrats! You have made it to the fourth in a series of journeys that teach you how to get up and get going creating a Blockchain application using Fabric-Node-SDK. Now that you know how to create the network, you are ready to learn how to integrate RabbitMQ and Redis Custer to scale our Blockchain application. Let's get started with scaling our blockchain application to handle a large number of requests.

Authors

By Ishan Gulhane

Code

https://github.com/IBM/controlling-flow-ofRequests-toBlockchain-using-Redis-and-RabbitMQ

Demo

N/A

Video

In progress

Overview

In this pattern, we will configure Redis and RabbitMQ cluster in our application architecture. With the direct use of REST API calls, it is not possible to control the number of requests sent to blockchain network, this might cause errors such as read/write conflicts etc. In order to control the flow of request sent to blockchain network and scale our application, we will use RabbitMQ cluster with 3 nodes consisting of mirrored queues to queue the user requests and Redis cluster with 6 nodes (3 master and 3 slaves) where results of execution are store for a short duration. In architecture diagram, we have RabbitMQ producer present in API containers that queue the requests to RabbitMQ cluster and RabbitMQ consumers configured with an instance of Fabric-Node-SDK in Task execution containers to consume the requests from users and send it blockchain network for execution.

Flow

Architecture1

  1. Creating and Starting the Blockchain Application
  2. Performing transactions on Blockchain Network
  3. Viewing results and transaction blocks created in blockchain network

Included Components

Technology

Links

Blog Post

In progress

Clone this wiki locally