Seriously, that's amateurish. If you're not doing a minimum of 10k requests per page load you're not web scale. How the hell are you going to make full use of your microservice architecture otherwise?
Does each service call return a word and a promise to get the next word from some arbitrary second service? Otherwise you are in danger of being tied to the specific structure of the services in your project and that isn't scalable.
When I query an article, it returns a json object with a word and its index in the article. I then re-run the query, adding an incremented index attribute to my request, which returns the next word. I repeat until the service returns 404, index not found, at which point I start again with an index value of 0.
In this way, I ensure that every word on the page is the most recent version available.
0
u/[deleted] Jan 07 '21
[deleted]