How to organize periodical processing on the backend?

Hi, colleagues
Is anybody knows how to organize processing of periodical tasks on the backend say with intervals like half a minute? The real scenario is pretty simple - I need to organize user payments using 3rd party plugin (not with wix payments) which should be polled periodically requesting the status of outstanding operations. So I am willing to request it with some reasonable period, i.e. half a minute, it will return the actual state of all outstanding ops and I will run another database updates according the results.
Yes, I read about wix jobs but this seems inappropriate solution because you may configure up 20 jobs in a day.
What would be the best suitable way to organize this?

Hi,

You can use setInterval function, which allows running a function repeatedly, starting after the interval of time, then repeating continuously at that interval. Click here to learn more.