I have some queries I am making that cause timeouts. Because the computing of the data takes too long on the server in some very specific edge cases. What is the best solution for my specific stack? I was thinking of polling the server every 20 seconds or so to see if my data is ready. But I'm not sure how to accomplish this. Or how to keep track of which client made which request that I'm currently processing.
My stack: