hasura / hasura/graphql-engine

Insert event trigger does not work async

Open
#9,770 0 comments 1 reaction 0 assignees View on GitHub
a/eventing/data-triggers k/bug t/gql-services
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.