Learning Library

← Back to Library

AI-Powered Logistics with IBM Cloud

Key Points

  • The demo showcases Acme Freight’s new logistics solution built on IBM Cloud, leveraging cognitive APIs and real‑time weather data to improve time‑sensitive medicine shipments.
  • By integrating the Weather Channel API and IoT‑enabled trucks, the system can detect disruptive weather, suggest alternative routes, and dynamically onboard new drivers and vehicles.
  • The architecture consists of multiple microservices deployed as Cloud Foundry apps, secured with an API gateway, and exposed through API Connect for web UI consumption.
  • Core business logic is implemented with OpenWhisk serverless actions, enabling event‑driven processing and cost‑efficient scaling that runs only when needed.
  • A secure gateway links the cloud services to existing on‑premises back‑end systems, allowing seamless data exchange and end‑to‑end logistics management.

Full Transcript

# AI-Powered Logistics with IBM Cloud **Source:** [https://www.youtube.com/watch?v=-vDh5npsBEs](https://www.youtube.com/watch?v=-vDh5npsBEs) **Duration:** 00:04:25 ## Summary - The demo showcases Acme Freight’s new logistics solution built on IBM Cloud, leveraging cognitive APIs and real‑time weather data to improve time‑sensitive medicine shipments. - By integrating the Weather Channel API and IoT‑enabled trucks, the system can detect disruptive weather, suggest alternative routes, and dynamically onboard new drivers and vehicles. - The architecture consists of multiple microservices deployed as Cloud Foundry apps, secured with an API gateway, and exposed through API Connect for web UI consumption. - Core business logic is implemented with OpenWhisk serverless actions, enabling event‑driven processing and cost‑efficient scaling that runs only when needed. - A secure gateway links the cloud services to existing on‑premises back‑end systems, allowing seamless data exchange and end‑to‑end logistics management. ## Sections - [00:00:00](https://www.youtube.com/watch?v=-vDh5npsBEs&t=0s) **Acme Freight Cloud Logistics Demo** - The demo illustrates how Acme Freight uses IBM Cloud services (Cloud Foundry, OpenWhisk, API Connect, and cognitive APIs) to manage time‑critical medicine shipments, incorporate real‑time weather data, and dynamically reroute resources when disruptions occur. ## Full Transcript
0:00in this demo I'll cover traditional 0:02logistics use case using a fictional 0:04scenario and company Acme fraid first 0:07we'll look at how Acme Freid uses 0:08cognitive and cloud to roll out an 0:10innovative solution to their 0:11traditionally complicated problem and 0:13then we'll dig into how Acme afraid uses 0:15technologies on bluemix including cloud 0:17foundry open whisk and api connect to 0:20achieve the solution 0:21Acme freight is a logistics vendor who 0:23is responsible for the shipment of 0:25critical time-sensitive medicines 0:26fortunately Acme freight just rolled out 0:29their new logistics was their 0:30application on IBM cloud using IBM's 0:32cognitive and cloud capabilities the app 0:35can manage their distribution centers 0:37and retail locations trucks and partners 0:39as well as share real time information 0:41about shipments to their customers it in 0:44just weather data from The Weather 0:45Channel API on IBM cloud to detect 0:47disruptive weather events along planned 0:49delivery routes the app tunisians uses 0:52cognitive api's to suggest optimizations 0:55to acnes resource planning and routing 0:57will usefully districts wizard to 0:59schedule a shipment of medicines to New 1:00England we need to ship the drugs from 1:03an acme distribution center in the 1:05Midwest to Boston within two days now 1:08let's see what happens if there's a 1:09storm with cognitive api's logistics 1:13wizard can suggest alternative routes 1:14and trucks to steer clear of the storm 1:16but the suggested alternatives won't 1:19arrive within the two day window will 1:22need to onboard new partners and trucks 1:24that are using different routes an 1:26independent driver just showed up near 1:28North Dakota a truck driver used our 1:31mobile application to register their 1:32truck because the struck is instrumented 1:35with IOT data if we decide to use this 1:37truck for the shipment will see 1:38real-time information about the shipment 1:40of during the delivery I'll go ahead and 1:43schedule the new delivery next we'll 1:47spend a few minutes showing how IBM 1:49cloud integration was able to bring 1:51cloud and cognitive together to enable 1:53actually afraid to apply this technology 1:55let's start with the architecture 1:57logistics wizard is composed of several 1:59micro services including three cloud 2:01foundry applications and the handful of 2:03open risk actions api connected secure 2:06gateway is used to allow connection to 2:08the on-premises data and existing 2:10back-end systems we then secure these 2:12micro services with an 2:13ðï gateway to make it available to them 2:15on web UIs for example this is a cloud 2:19foundry application built with the open 2:20source loopback framework for quickly 2:22creating AP is using loopback enabled me 2:25to quickly create this application and 2:27then expose parts of it as a managed api 2:29using api connect in addition to the 2:33Cloud Foundry micro services a lot of 2:35the core logic is built using open with 2:37serverless actions open which lets you 2:39build event-driven applications using a 2:41server let's architecture this allows 2:43you to keep operating costs low and 2:45quickly spin up and pay for these 2:47applications only when needed 2:49remember when Acme needed to onboard 2:51they independent truck driver let's see 2:54how easily we can use open lists to 2:55create a new endpoint for the truck 2:57driver to add report status 3:00so I'll click develop in your browser 3:02and then create a new action I'll name 3:05it add chip and truck choose nodejs as 3:09my language and click OK 3:11now I'm ready to start coding my action 3:14directly in the browser for the sake of 3:16time I'm going to copy and paste from my 3:17local editor and this action is just 3:20some JavaScript code that logs into my 3:22private API validates the payload and 3:24submits the shipment when I could make 3:27it live this immediately gives me a URL 3:28that I can hit to trigger this action 3:32next let's take it a step further and 3:34turn this endpoint into a fully managed 3:37API I'll use the new native API connect 3:40capability in IBM bluemix I'll create a 3:43new API and for the action I'll choose 3:46the action that I just created 3:48give it a path and then with just a few 3:51clicks I can enable security and rate 3:53limiting I can add a gateway to my Cloud 3:56Foundry application just as easily with 3:59other cloud providers send up this API 4:01gateway and adding security and luige 4:03limiting can take up to 37 steps it 4:06takes under 30 seconds with IBM cloud 4:08the logistics wizard application used in 4:10this demo is available on github you can 4:12fork the repository and modify to meet 4:14your own use case just as acne for it 4:16did you can even use the integrated 4:19DevOps tool chain to build a complete 4:21pipeline to deploy directly to IBM 4:23bluemix