Load test your blockchain network  

Use Java programs to load test the network and check results in MongoDB

Last updated | By Ishan Gulhane

Description

You’re probably here because you have completed your blockchain application. Congrats! You also may be concerned that your application won’t perform efficiently and aren’t sure how to test it. Welcome to the fifth in a series of developer patterns that teach you how to get started creating a blockchain application using Hyperledger Fabric SDK. Now that you know how to create and scale the network, you’re ready to learn how to load test your blockchain application by submitting a large number of enroll, invoke, and query requests then viewing the results in MongoDB.

Overview

Developers are increasingly building blockchain applications. And businesses are innovating the way they operationalize their processes and are incorporating blockchain. Consider how car sales and leases will be managed in the future, or how you may call your next Uber with blockchain. These applications are requiring networks with more participants and assets to manage. I’m sure you’re wondering how we can ensure that the network scales and supports the growing volume without bringing the entire network down.

Performance and scalability for production applications should be top of mind for any developer. This pattern is the continuation of the “Integrate RabbitMQ and Redis Cluster with a blockchain network” pattern. Here, we will run Java™ programs to load test our blockchain network. In other words: We will send a request to the blockchain network and check for the results. MongoDB is used to track statistics for the load testing.

Flow

  1. Create and start the blockchain application.
  2. Start the ExecutionApp.
  3. View the load testing results in MongoDB.

Related Blogs

Jax 2018 – Just An Awesome Experience

What a week! From 23rd to 27th April our Berlin team attended the Jax conference in Mainz, Germany. We had such a great time sharing our fresh perspectives, in the form of a rousing keynote and two informative sessions. The concept of this annual event with over 2,000 participants, revolves around innovating with Java, architecture,...

Continue reading Jax 2018 – Just An Awesome Experience

CloudNativeCon and KubeCon are coming to Copenhagen!

With May just around the corner, mark your calendars for an exciting event, CloudNativeCon/KubeCon, in Denmark’s capital city of Copenhagen. Many of us in the Cloud Native community already visited this beautiful city for DockerCon EU last year and we’re excited to be able to take in all of the wonderful sites again this year....

Continue reading CloudNativeCon and KubeCon are coming to Copenhagen!

Related Links

IBM Code pattern

Learn how to create your first blockchain network using Hyperledger Composer.

Medium.com

Integrate your blockchain with anything using Hyperledger Composer and NodeRed.

IBM Code pattern

Create a blockchain app to display and interact with a network through a web interface.