Archived | Make apps smarter with serverless
Enhance your enterprise applications using serverless and APIs
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.
- The web user monitors shipments and weather conditions.
- A front-end application serves the web user interface.
- A back-end application manages API calls between the front-end and system services.
- API Connect provides secure APIs to simplify access to various back-end microservices.
- OpenWhisk monitors the weather conditions around retail stores and makes recommendations on additional shipments.
- The Enterprise Resource Planning (ERP) application exposes and manages access to enterprise resources, such as Products, Distribution Centers, Retailers, and Shipments.
- The Secure Gateway service allows access to on-premises or external cloud data.
- On-premises application stores secure enterprise resources.
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.