< Previous Challenge - Home - Next Challenge >
Until this point we have always been pulling data from the SAP backend or writing back to it from our application. But nowadays immediate feedback on important changes on the backend is desired.
In this challenge you will enable your application to act on SAP Business Events by connecting your SAP backend to your Azure PaaS service of choice (CosmosDB, Service Bus, Event Hub, Event Grid etc.) using the ABAP SDK for Azure. Feel free to leverage a partner solution for the event processing if you happen to have any instead.
Be aware that SAP’s materials for this integration pattern will always point towards SAP Event Mesh. An integration between SAP Event Mesh and Azure Event Grid is possible. We suggest the ABAP SDK to avoid further dependencies and put you in charge of the event handling.
You could use the Business Events type model to update an external store (e.g CosmosDB) by exposing an additional write-back endpoint that consumes events inside SAP as the source of the truth, but that keeps another more dynamically scalable store in sync.
In a distributed environment, you could combine this with the Cache Aside pattern to simplify your cache updates by simply reacting to the event and removing the cached version of the updated object from the APIM cache. Then the next request should reload it into the cache or if you already know what the new cache data looks like as part of the event, you could simply update it in place.