This tutorial shows you how to process blockchain events using serverless functions on IBM Cloud. Events generated by the IBM Blockchain Platform (Hyperledger Fabric) are retrieved from a Node.js function running on IBM Cloud Functions (Apache OpenWhisk). The function is then connected to a cron event timer, which automatically invokes the function periodically to process all-new chain events.
Processing events from the blockchain is a perfect use case for serverless cloud platforms. Rather than having a stateful application sit idle waiting for events to occur, serverless functions are only executed when events are available for processing. This leads to better utilisation, reduced operational burden, and (ultimately) lower application costs compared to traditional infrastructure.
In this tutorial, you will learn how to:
Set up a serverless function to process blockchain events
Provision service credentials for IBM Cloud Blockchain Platform and Databases for Redis
Connect a serverless function to the alarm event source
Before you begin, you’ll
Original URL: https://developer.ibm.com/tutorials/process-blockchain-events-using-serverless-cloud-functions/