38
Views
4
Comments
[SSE Push Event Hub] How to terminate the webhook waiting for response on other servers in multi frontend
sse-server-event-hub-and-client
Service icon
Forge asset by Nuno Damaso
Application Type
Service

There is one case we are using the MultiFrontEnd Repeater for webhook implementation.
The issue we are facing here is that, currently are triggering the Boardcast repeat internal on all the servers available in prod.
And while getting the response we are getting the same only on one server and completes the journey.
But the other webhook request keeps on waiting for the response and ultimately timesout after 50 secs.

This unanswered webhook request increasing the server load in prod env and hence impacting the other application processing.

Can you please help us with this scenario, how to manage the unanswered request once we get the webhook response on any one server.

2024-09-08 11-13-40
Nuno Damaso
 
MVP

Hi Manish,

I am having a hard time understanding your question.

  • I understand that you implemented the repeater pattern described in the documentation and in the example app that comes with the Hub
  • I don't understand what you mean by webhook? do you mean the broadcast? an external logic after or during the signal?
  • I also understand that: either you are able to repeat the signal on every prod env OR you are not able to repeat the signal - it would help to clarify

Also, if you can add an OML, or print screens of your broadcast/repeater implementation (Https, server aggregate, rest exposure, etc) can greatly help.


UserImage.jpg
Manish Madhukar Barapatre

Hi @Nuno Damaso ,
Yes, Please find the responses aligned.

  • I don't understand what you mean by webhook? do you mean the broadcast? an external logic after or during the signal?
    ==> Yes i mean to say Boardcast on every server of PROD
  • I also understand that: either you are able to repeat the signal on every prod env OR you are not able to repeat the signal - it would help to clarify
    ==> Yes We are able to repeat the signal on all the server instance using mutli front end repeater server action.

But I am facing issue, for the signals sent on all the servers and not being acknowledge.
These signals are  waiting for response and timesout after sometime.
So my question is how to handle these signals which are not being acknowledged.

UserImage.jpg
Manish Madhukar Barapatre

Hi @Nuno Damaso ,
Have you got a chance to look at the above issue.

2024-09-08 11-13-40
Nuno Damaso
 
MVP

Hi Manish,


Attached are two .oaps, one for the Push Event Hub for compatibility (its on a new version) and a DEMO using Multiple FEs for test.

I would like to ask you to install them both and run the MFE Test App, clicking the broadcast with a message. 

Let's take it from there, I believe it will be easier.

SSE Push Event Hub.oap
SSE MFE Test.oap
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.