OpenWhisk is an open-source serverless compute platform. It executes your code in response to events from triggers. You only pay for the time your code actually runs (rounded up to the nearest 100ms), which means no excess capacity or idle time. OpenWhisk scales to fit your exact demand, from once a day to thousands of parallel requests per second. Action instances scale to meet demand exactly, then disappear. It’s perfect to handle volatile workloads that can be split into smaller pieces and executed in parallel. Because OpenWhisk is open-source and is built around an open ecosystem of event providers, there is never a need to worry about vendor lock-in. The IBM Openwhisk block allows OpenWhisk to work with today’s stream-based applications; stream data to and from OpenWhisk and leverage PubNub BLOCKS for lightweight compute in the network.
The OpenWhisk block can be used for a number of serverless to serverless use-cases. Here are a couple examples:
Vehicle Dispatch (PubNub Blocks → OpenWhisk)
PubNub Blocks filters geo data and routes to OpenWhisk for computation. OpenWhisk runs business logic and machine learning, and broadcasts back to PubNub listeners on end-devices.
Disaster Alerts (OpenWhisk → PubNub)
Openwhisk detects weather anomalies and broadcasts to PubNub listeners on end-devices for real-time disaster alerts.
Social Chat App (PubNub → Watson + OpenWhisk)
PubNub filters chat messages through a PubNub Watson Translator block, and offloads audience analysis to OpenWhisk for async post-processing.
JSON input payload to your block
{ "Openwhisk": { "triggerName": "hello_world", "payload": { "message": "Hello From PubNub BLOCKS!", "publishTime": 1492747834095 } } }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Add a natural language interface or chatbot to automate interactions with...
Learn moreTranslate and publish text in real time for 11 different languages
Learn moreAnalyze text to understand and act on sentiment, context, emotion, entity,...
Learn more