I have a third party api provider which cannot accept array of size bigger than 500 so I have created chunks of my array of size 500 and I have to send it to the api endpoint with a minimum interval of 5 seconds.I tried reading about the topic and have some questionsShould I use a pub sub model ?Can I use google pub sub with cloud functionsIs there any better alternative solution.I can also create chunk and in a for loop hit the api endpoint with a set timeout function . Is this a good way to approach the problem?And lastly can I do this using rxjs? I mean I can use batchCount and debounce. Correct me if i am wrongAny help would be appreciated! Thanks in advance
Submitted August 06, 2019 at 08:01PM by soulreaper02
No comments:
Post a Comment