flaneur2020 commented on PR #7154:
URL: https://github.com/apache/opendal/pull/7154#issuecomment-3782338738

   > I think foyer should be converted into a service first before we go 
further.
   
   just realized a potential issue: Foyer's `fetch` method has built-in 
concurrency control between checking for existence and writing to the cache. 
this prevents multiple requests from hitting the same cache key simultaneously 
and flooding the backend during a cache miss.
   
   it may has a risk that this capability might be lost after moving to the 
service interface, but imo it could be considered as an further optimization 
later.
   
   @xxchan do you have any suggestions regarding this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to