Hi guys, I am in a situation that our backend team is unable to provide us with a paginated endpoint for a large dataset. Any tips/articles on how to handle huge json responses with coroutines/flow? (I’m using retrofit for networking)
a
Alexander af Trolle
05/21/2021, 2:02 PM
How big responses are we talking?
e
Ernestas
05/21/2021, 2:04 PM
Up to ~200 mb, enough to get out of memory exceptions
🙄 4
a
Alexander af Trolle
05/21/2021, 2:17 PM
My I/O knowledge isn't the best, but I think you could get the response as a stream