I've an app that sends firebase notifications simultaneously to a whole lot of devices periodically. I have stored the tokens in a postgres database. Firebase limits the number of tokens to a maximum of 1000 in a single request. I have at least 2 lakh tokens to serve at a given point of time. Should i use postgres to fetch all tokens as a stream or use the regular kind of pagination to fetch 1000 tokens and repeat the same for the next set? which is more memory efficient?
Submitted January 15, 2020 at 08:02AM by thalailaama
No comments:
Post a Comment