You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive a webhook event from an external service, according to its agreement, I have to reply to it with code 200 when I received the message, if it does not receive code 200 within 30 seconds, it sends the request again. My application logic can run longer than 30 seconds, because of this I get repeated events. Is there any way I can write the Uni pipelines in such a way that it responds instantly from the controller, but continues to execute my logic.
I tried to do something like this. But in that case I get a DB timeout after some number of queries. There is no such problem when pipelining is not interrupted.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I receive a webhook event from an external service, according to its agreement, I have to reply to it with code 200 when I received the message, if it does not receive code 200 within 30 seconds, it sends the request again. My application logic can run longer than 30 seconds, because of this I get repeated events. Is there any way I can write the Uni pipelines in such a way that it responds instantly from the controller, but continues to execute my logic.
I tried to do something like this. But in that case I get a DB timeout after some number of queries. There is no such problem when pipelining is not interrupted.
Beta Was this translation helpful? Give feedback.
All reactions