on 06-11-2021 6:51 AM
Hi,
is it possible to push an event into a specific queue depending on the payload? I would like to "order" or "filter" events in the SAP Event Mesh. Or is there another way to filter events in the event mesh?
Best regards,
Manuel
Hi manuel.henninger,
SAP Event Mesh doesn't offer any capabilities out-of-the-box to do a routing/filtering based on the payload. Event Mesh is routing the messages based on the topic patterns and doesn't even "know" about the payload or it's structure.
Depending on what the source of your events is, it might be possible (e.g. for custom events via ASANWEE add-on) to add the needed information as part of the topic structure. Other use-cases are SAP CPI, a serverless function or a small CF application as the initial consumer of the event, analyzing the payload and distributing it to the final consumers either directly or putting it back in Event Mesh on defined topics/queues.
Best regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tobias,
thanks for providing meaningful insight. Let me add my 2c, if I may 🙂
You say...
"Depending on what the source of your events is, it might be possible (e.g. for custom events via ASANWEE add-on) to add the needed information as part of the topic structure"
We use the mentioned add-on. We basically want to provide the event consumer multiple queues based on content of the event, say country. So we want to have the following structure
As far as I understood, in theory we would set up multiple topics for each country then and have a 1:1 queue subscription for those
We could then also have a "one catch all" queue that subscribes to all related topics and then holds all events for all countries like so
My questions
PS: Cloud Integration might come to rescue, you're right. But I would like to have as few components in the flow, also this would be a matter of licensing for us (being on a message metric on Cloud Integration)
Many thanks and kind regards
Jens
Hi jens.schwendemann,
Unfortunately I'm not an ABAP developer and not really expert with the ASANWEE add-on. But my understading from other discussions was, that something like this should be possible. But at least I know whom to ask. 😉
martin.schffler, maybe you could help us here?
But my theory would have been exactly how you described it:
Setup multiple topics for each country then and have a 1:1 queue subscription for those
The "one catch all" queue could be described in just one single line for simplification:
Now we just need to clarify if it is possible to have the topic defined by the country information of a business object. 🙂
Best regards,
Tobias
A dynamic topic is also on my wishlist!
Hello tobias.griebe
We have to filter our Event Queue on some criteria . It would be really helpful , if you can give me some hint .
It would be really helpful to do my research in the right direction .Because reading over the net , I am too much confused .
Business Scenario we are trying to achieve
Step 1 :- Event Mesh captures events From Business Partner Creation
Step 2 :- Triggers Function as a service
Step 3 :- Fetches the roles using the Odata API_BUSINESS_PARTNER .
Step 4 :- On the basis of the Repose delete or Put back an Event back on the Event Mesh .
Questions:-
Now I see there are two tools for creating FaaS
Serverless Runtime on Cloud Foundry BAS
Serverless Runtime on Kyma
Which one should I choose .And is it possible to achieve what we are trying do .
SS
Hi bodhisattwa.pal2,
that is an absolutely valid use-case. You get an notification event for Business Partner Creation from the backend system (I assume we are talking about S/4) and have your consumer call the respective API to get additional details.
Technicall you can use both serverless runtimes to get to the same result. Both will be able to be triggered by the event and call the OData API. In one of the latest Kyma releases they have released a tighter integration with Event Mesh. So if you have Kyma available I would start with this.
Best regards,
Tobias
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.