I have a case where I have asynchronous communication between an App and my API (API call - Webhook). Since I cannot receive webhooks within the App, I am receiving them through a Workflow, but to communicate the Workflow with the App, I am using long polling on the App to a common database between the Workflow and the App.
What I want to know is if this is the most efficient way to solve this problem, or if there is some tool that I am missing. Thank you in advance!
Interesting use case, you are correct that Retool apps are not able to receive API calls and their events must be triggered by user interaction.
It sounds like you have a fairly solid working solution. As a Workflow trigger can receive data payloads at its trigger endpoint, and then pass that data to a source such as a DB that a Retool app can access.
Polling might be the best option in this scenario, I would definitely encourage any community members who have experience with this type of architecture to chime in alternatives or tips on best practices for this set up!