Skip to content

Comments

#585 #2330 Caching global configuration#2331

Merged
raman-m merged 7 commits intodevelopfrom
feat-2330
Oct 27, 2025
Merged

#585 #2330 Caching global configuration#2331
raman-m merged 7 commits intodevelopfrom
feat-2330

Conversation

@raman-m
Copy link
Member

@raman-m raman-m commented Oct 23, 2025

Closes #2330

Proposed Changes

@raman-m raman-m self-assigned this Oct 23, 2025
@raman-m raman-m added Caching Ocelot feature: Caching Configuration Ocelot feature: Configuration Summer'25 Summer 2025 release Dynamic Routing Ocelot feature: Dynamic Routing labels Oct 23, 2025
@raman-m raman-m added this to the Summer'25 milestone Oct 23, 2025
@coveralls
Copy link
Collaborator

coveralls commented Oct 23, 2025

Coverage Status

coverage: 91.759% (+0.3%) from 91.479%
when pulling 3cd09ae on feat-2330
into f758ba7 on develop.

@raman-m raman-m requested review from RaynaldM and ggnaegi October 23, 2025 10:35
Ocelot currently supports caching on the URL of the downstream service and setting a TTL in seconds to expire the cache.
Users can also clear the cache for a specific region by using Ocelot's :ref:`administration-api`.

Ocelot utilizes some very rudimentary caching at the moment provider by the `CacheManager <https://github.com/MichaCo/CacheManager>`_ project.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels outdated despite the recent 2.0.0 release on March 6, 2025, which added support for the net8.0 TFM in the CacheManager.Core package. These pack dependencies were upgraded in release 24.0. Active development stopped back in 2018, seven years ago, and since then, only a single upgrade release was made on March 6 to accommodate .NET 8.

This library definitely needs a review of its capabilities. Considering a complete switch to Microsoft Cache libraries makes sense since the CacheManager GH-project is abandoned. Ocelot ranks first in the "Top Used By" list for CacheManager.Core and CacheManager.Microsoft.Extensions.Configuration, highlighting the lack of popularity and abandonment of the library.
Finally, it's better to rely on native Microsoft caching libraries and evolving ASP.NET Core approaches.

Comment on lines +158 to +159
Roadmap
-------
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The roadmap definitely needs a rewrite and update. A lot has happened in the ASP.NET industry over the last five years, making it a subject worth reviewing. However, it's not a pressing issue at the moment. Rewriting it would make more sense after the release of 24.1, during the development of version 25.0.

@ggnaegi
Copy link
Collaborator

ggnaegi commented Oct 23, 2025

@raman-m i will review this tomorrow or saturday.

From: Raman

Reviewing tomorrow works fine and fits the timeline. The PR will be more refined and solid by then.

@raman-m
Copy link
Member Author

raman-m commented Oct 25, 2025

Development Complete ✅

Copy link
Member Author

@raman-m raman-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for delivery ✅

  • Code reviews ✔️ ✔️
  • Unit testing ✔️
  • Acceptance testing ✔️
  • Updated documentation ✔️ ✔️

@raman-m raman-m merged commit e3ad51c into develop Oct 27, 2025
3 checks passed
@raman-m raman-m deleted the feat-2330 branch October 27, 2025 15:09
@raman-m
Copy link
Member Author

raman-m commented Oct 27, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Caching Ocelot feature: Caching Configuration Ocelot feature: Configuration Dynamic Routing Ocelot feature: Dynamic Routing Summer'25 Summer 2025 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#585 Caching global configuration

4 participants