Right now each request is scheduled as it is received but we can have some sort of time based caching that accumulates the requests and processes them all together (after some time or based on the number of entries) since the requests will probably come in bursts.
A nice one to use is CacheBuilder from Guava library
Right now each request is scheduled as it is received but we can have some sort of time based caching that accumulates the requests and processes them all together (after some time or based on the number of entries) since the requests will probably come in bursts. A nice one to use is CacheBuilder from Guava library