jacky_mish
3 years agoContributor
Bounded API calls
I have been seeing something in industry where clients are bounding their api calls and then fetching the rest later if people want more info (one example is Instagram now only fetching and displaying the last 6 pictures a user has posted)
What is the downside of sending an unbounded extremely long JSON blob and just rendering everything asynchronously vs bounding these API calls and making more calls to the api.
I’m sure that caching and storage comes into play here too but would love to hear about any specific case study / latency improvements / numbers that someone could share about sending long json blobs vs bounding api calls and responses.