microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

Improve how caching is done within the service

Open millicentachieng opened this issue 2 years ago • 0 comments

We currently use various caching mechanisms within DevX API: MemoryCache, ConcurrentDictionary etc.

Points to explore:

  • How frequent should we refresh cache?
  • Can multiple threads concurrently write to the same cache? What's the impact in terms of data consisitency, cost?
  • Can we have a ,different process, e.g. a webjob, be responsible for refreshing the caches
  • Should we bring a library (like Lazy Cache) to handle the caching for us?
  • ASP.NET background tasks?

Resources

cc @baywet

millicentachieng avatar Mar 28 '23 16:03 millicentachieng