Join us for Code @ Think 2019 | San Francisco | February 12 – 15 Register now Limited availability
Get the code
By Daniel Krook | Published February 10, 2017 - Updated August 15, 2017
Serverless platforms, like IBM Cloud Functions powered by Apache OpenWhisk, provide a runtime that scales up or down automatically in response to demand. This results in overall lower cloud resource consumption and a better match between business value gained and the cost of the resources that are used. One of the key use cases for Cloud Functions is to execute logic efficiently in response to events, such as messages or streams of data.
This project shows how serverless, event-driven architectures execute code in response to messages or to handle streams of data records.
The application demonstrates two IBM Cloud Functions (based on Apache OpenWhisk) that read and write messages with IBM Message Hub (based on Apache Kafka). The use case demonstrates how actions work with data services and execute logic in response to message events.
One function, or action, is triggered by message streams of one or more data records. These records are piped to another action in a sequence (a way to link actions declaratively in a chain). The second action aggregates the message and posts a transformed summary message to another topic.
Find the detailed steps for this pattern in the README.
March 6, 2019
April 28, 2018
December 3, 2018
Back to top