admin管理员组文章数量:1289383
I have used Redis for caching in .NET using the IMemoryCache implementations for both Redis and SQL Server. It is straight forward and no problem.
I've been trying to understand IDistributedCache using Redis and it is also extremely "simple" according to all the tutorials and information online.
However I cannot get my head around how this actually is supposed to work in the real world. In my understanding the idea of a distributed cache is that it exists on every server where your distributed app is running. In Redis you can configure clusters if you know the endpoints of the servers where your app is running.
So how does this work when my app is deployed to a cloud platform that automatically scales up and down the server instances? How to I dynamically tell Redis to create or remove cluster nodes from the servers as the cloud service creates them?
Am I just overthinking this and the IDistributedCache imlementation from the Redis stackexchange does this automatically with no configuration? I can't seem to find any info about this online.
I tried look on google and stack exchange for how to configure Redis, specifically using .NET IDistributedCache, clusters to automatically create new nodes when a cloud service scales up or down and app.
I found only basic tutorials on how to add StackExchange.Redis to the builder services and then access the cache. Nothing about scaling with a cloud service.
本文标签:
版权声明:本文标题:caching - How does a Redis cluster scale and work along with .NET IDistributedCache along with a cloud based app service? - Stac 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741470637a2380582.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论