Is it possible to poll and fetch a collection?

I would like to fetch a collection every X ms. Is this possible?

This feels like bad practice …

What is your usecase? Waiting for a process a few seconds or continuous realtime?

I need to poll an endpoint regularly that doesn’t have webhooks. Is it possible to poll efficiently on we web?

Hi,
Anyone know about this? I think it might be a good solution for this, but want to check.

Usecase is image generation:)

You can by tying a workflow to a setInterval function call, but it’s not a great idea. You can flood your backend by having everyone who is waiting for an image pinging away.

Instead, if you can use a websocket connection to get notified of the long-running process’s completion, a lot can be done well for you. This is a good use case for the “realtime” functionality of services like Xano, or implementing a notification bouncing service like pusher or ably.

Im not sure how to do that in weweb but could you use something like make.com ?
you can set those workflows to run every few seconds and link it via the rest api.
I am assuming, I have never tried this.