hasura / hasura/graphql-engine
Insert event trigger does not work async
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
Hey,
I have created a hasura insert event trigger to send a request to our backend endpoint when a record is inserted to a table. It works well and sends requests to our endpoint. But the issue is it works in sync and that causes bottlenecks.
When 2 records are inserted to the related table, it immediately puts requests to the "processed" list but our endpoint does not receive the second request before the first request completes. I checked the endpoint by sending concurrent requests to our endpoint by using external tools and it completely supports async workflow. At this point I are not sure what the issue is. So I will appreciate it if you can share if you have any suggestions or recommendations.
Contributor guide
Assessment
This issue has not been assessed yet.