My front-end is a Rails application, and my backend is a Padrino application.
I want to fetch a large amount of CSV data from the backend. Doing makes the HTTP request timeout in the browser.
- I can not query the backend again and again, because each time it will generate the same data, there is no concept of offset and limit records.
- I tried sending directly from the backend to LB but it is not working for me.
To summarize, an array of 10000k rows is generated to be sent to the UI or downloaded in a streaming fashion.