-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Issue
While testing the app in the field (especially in Hubballi), I observed noticeable performance drops compared to usage outside the local network.
After some analysis, I found that one of the key reasons could be our current frontend polling workflow.
Right now, the UI makes repeated calls (every few seconds) to the external API to check for job status. With multiple users on the same LAN (e.g., 100+ users), this creates heavy network and API load, causing slower response times.
Proposed Solution:
Move the polling and job status handling logic from the frontend to the backend.
The backend can then:
- Poll the external API once per job and cache/store the result.
- Send the final output to the frontend only when it’s ready.
This change will:
- Reduce unnecessary network traffic.
- Improve app speed and responsiveness for users.
- Enhance scalability and reliability.
Additional Notes:
- The issue was mainly observed when many users were connected on the same LAN during the workshop (~400 total, ~100 using the app).
- Outside the LAN, performance is normal.
- Implementing backend polling (or push notifications via WebSocket/SSE) should help balance load and improve overall performance.
ScreenShot
