'How to avoid polling the server for each individual result - htmx
I've got 3 django-celery tasks running independently, they each finish at different times and take anywhere between 20-45 seconds. I could poll the server through 3 different hx-triggers in order to get my 3 different results as they become available, however this seems like unnecessary load on the server, as I'd like to poll every 5 seconds.
Ideally I'd just have 1 hx-trigger set up which polls for all 3 results and then places the results in their divs when they become available but I'm not sure how to achieve this - I can alter the front end, if needed, to make it possible.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
