Technical Articles
Consuming Business Events using SAP Integration Suite, Advanced Event Mesh
SAP Integration Suite, advanced event mesh is a fully-managed event streaming and management service that enables enterprise-grade event-driven architecture. It is part of SAP’s event-driven ecosystem and powers end-to-end event-driven architectures
Some of the key capabilities of SAP Integration Suite, advanced event mesh includes,
- Distributed mesh of event brokers that can be deployed across environments
- Brokers fully scale from small to very large use cases and can be deployed in existing public or private cloud environments
- Includes advanced management toolset and sophisticated features like message routing and filtering
In this blog post, we will discuss how to leverage the SAP Integration Suite, advanced event mesh service to create a facility manager application that consumes business events from SAP SuccessFactors in real-time.
Business Scenario:
John, Facility Manager of the ACME corporation would like to get a notification when an employee location is transferred by the company to his region (for example, Brisbane, AUS). John would then proceed with the employee onboarding process by allocating their workstation and other relevant accessories (lockers, desk keys, and so on).
The code is published as sample in GitHub (https://github.com/SAP-samples/btp-sf-extension-adv-event-mesh).
The extension application is developed using the Express Node.js and runs on SAP BTP. It consumes platform services like SAP Integration Suite, advanced event mesh and SAP HANA services. The events generated in SAP SuccessFactors are inserted into an SAP Integration Suite, advanced event mesh queue created by a Node.js application (Facility Manager). The application consumes these events and inserts relevant employee details into the local database (SAP HANA).
Solution Diagram
The application can be scaled by having multiple instances specific to the region by utilising the distributed mesh of event brokers across environments.
To get started, we need to setup the SAP Integration Suite, advanced event mesh in the SAP Business Technology Platform. The first step is to create a new subscription to the SAP Integration Suite, advanced event mesh service. We can then create the event brokers using the pub-sub console.
pubsub console
Once we have set up the SAP Integration Suite, advanced event mesh in SAP Business Technology Platform, we can start exploring the sample code to see how to consume business events from SAP SuccessFactors using the Advanced Event Mesh service.
The code in the GitHub repository is well-documented and easy to follow, making it an excellent resource for developers who want to learn how to leverage the Advanced Event Mesh service to build real-time event-driven applications.
In summary, the SAP Integration Suite, advanced event mesh service is a powerful event-driven architecture platform that enables businesses to consume events from different sources and trigger real-time actions based on those events.
Hi Navin Krishnan Manohar,
This is a very good example of event-driven architecture. Instead of deploying multiple instances of the same app with multiple local HANA Cloud databases, I think this scenario would be a great candidate for implementing a multi-tenant SaaS application as presented by Martin Frick and Alper Dedeoglu in their excellent blog series on the topic:
Multitenant SaaS applications on SAP BTP using CAP? Tried-and-True!
Perhaps an idea for a follow-on blog post to extend the concept in this one? Just a thought.
Regards,
Mustafa.
Hi Mustafa,
Thanks. While this sample, focuses on the Advanced Event Mesh and its capabilities of distributed mesh of event brokers deployed across environments, I agree this is a good candidate for implementing multi-tenant SaaS application on the BTP side as well.
As Advanced event mesh is available as a subscription rather than BTP service instance, makes it interesting to explore how to fit in the multi-tenant use case.
Thank you for raising that interesting idea, Mustafa Bensan. Multitenancy certainly makes sense, particularly for powerful and somewhat more expensive solutions like Advanced Event Mesh, which allows partners and customers to divide service costs among multiple tenants. As we have some free time, we are also considering integrating an event setup into our sample application. However, we will need to spend some time exploring SAP Integration Suite, advanced event mesh... 🙂
Martin Frick I look forward to your findings about Advanced Event Mesh 🙂
It's an excellent resource for developers and businesses leveraging event-driven architecture. This blog provides a clear and concise overview of the service's capabilities, including the ability to deploy brokers across environments and scale up or down depending on the use case. The solution diagram and code samples provided are well-documented and easy to follow, making it a great resource for developers who want to learn how to build real-time event-driven applications. Overall, a fantastic introduction to the SAP Integration Suite's advanced event mesh service and its potential for powering enterprise-grade event-driven architecture.
Great work Navin Krishnan Manohar
Hi Navin, thanks for sharing this interesting use case, very well explained.
I do have a question or rather suggestion in terms of the presented architecture design.Why not leverage the full capabilities of SAP Integration Suite, i.e. instead of creating custom-built applications in SAP BTP use Cloud integration advanced connectivity capabilities to consume events directly from Advanced Event Mesh and integrate/distribute with SAP HANA or any other non-SAP application? That approach can be particularly fit for purpose, especially when dealing with hybrid and multi-cloud landscapes.
From my point of view, that could be a secondary or alternative integration architecture organisations implementing EDA could consider.
Happy to hear your comments. Cheers, Roberto
Hi Roberto, Thanks.
Of course, this is possible with Cloud Integration. In this sample, rather wanted to showcase the concept of side-by-side extension application on BTP that can extend the business process from SAP system.
Hi Navin,
I'd be interested to know the reason for choosing SAP Integration Suite, advanced event mesh over the standard Event Mesh for the scenario in this blog?
Regards,
Mustafa.