Learn more >
Get the code
View the demo
by Daniel Krook | Published July 25, 2017
Platform as a ServiceServerless
Archived date: 2019-06-30
Serverless technology enhances enterprise applications, enabling you to transform and improve traditional legacy systems. This code pattern shows you how a company can use OpenWhisk to deliver a smart supply chain application to its users.
Acme Freight is a fictional freight logistics company. (For more on Acme Freight, see the developer code pattern Unlock enterprise data using APIs.) The company wants to improve their shipment process to account for weather conditions on their routes. They implement a microservices architecture application that uses OpenWhisk and the Weather Company APIs to gain insight and improve shipment logistics. The API endpoints revealed and consumed by the microservices are secured and managed in a unified interface through API Connect.
The Acme Freight application is composed of several microservices, including three Cloud Foundry applications and multiple OpenWhisk actions. Acme Freight uses OpenWhisk, an open source serverless platform, to rapidly respond to inclement weather events and identify alternative shipment routes by running an algorithm that matches weather channel storm data against currently running shipments and their destinations.
The front-end application utilizes the OpenWhisk APIs to display these recommendations to the logistics coordinator to approve or reject the recommendations. OpenWhisk enables you to quickly generate APIs to execute business logic without requiring a permanently running server. With an integrated API management layer provided with OpenWhisk, the serverless APIs that get created can be easily secured behind an API gateway with a few clicks, enabling powerful features like rate limiting, API keys, analytics and more.
Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README file.
September 2, 2019
August 29, 2019
June 24, 2019
Back to top