Hi everyone!
I’m building a dashboard that aggregates metrics from different online sources (it makes API requests and parses html pages). The requests frequencies range from every 10 seconds to every minute. Here is a callback graph for them.
Sometimes, when callback timers overlap, new items are not added to containers on the front-end, animations don’t play, etc. But they are added to storages on the back-end. Logs show, that timing of some callbacks is not right. The interval for this function is set to 10 seconds:
I use partial updates where i can (updating news-feed-div and mir-feed-div). I’ve tried making those long callbacks background, but their time only went up. I can’t use caching, because i need to parse data and check it for updates everytime.
I work on windows.
Are there any ways to improve performance and solve these issues?