Suppose I have an API which is generating new documentID and 100 such calls are coming per sec. How do I cache those records with new and unique document ID? Should I read a table to get the unique IDs and associate with my new record everytime and store those in cache for few mins. Then do bulk update after few mins to DB?

submitted by /u/betty_here
[link] [comments]