4 ms·
@zimpenfish yes you are right. refetch is initiated on the first Get between 9-10mins, and the timer is reset as soon as the back fetch is successful
by bnkamalesh 2y ago
@zimpenfish yes you are right. refetch is initiated on the first Get between 9-10mins, and the timer is reset as soon as the back fetch is successful
- NovaX 2y agoOne optimization for background refresh is coalescing the individual reloads into a batch operation based on a time/space window. Here is how we do it in the Java world. [1] [1] https://github.com/ben-manes/caffeine/tree/master/examples/coalescing-bulkloader-reactor#readme https://github.com/ben-manes/caffeine/tree/master/examples/c...
- mh- 2y agoThank you for your OSS work! I used Caffeine many years ago.
- NovaX 2y agoOh thank you, I’m glad it’s been helpful.
- bnkamalesh 2y agoaha yes! It's in my todo list to introduce bulk updates. On the other hand, I'll be publishing a batcher package soon which does something very close to what you suggested here. Thank you