Questions tagged [distributed-caching]

Distributed caching is a cache implementation that uses caches spread across different networked hosts.

424 questions
0
votes
1 answer

How to load the caching layer with data when asp.net core web api is created?

I have created a web api that handles the creation of jwt token based on the encrypted user details that it receives in a post request. In addition to this STS api should also handle the population of the caching layer (Redis or Hazelcast) with all…
0
votes
0 answers

Cache coherency for geo distributed key-value caches

I am looking for a distributed caching solution which supports a MOESI/MOESIF-like implemementation of a cache coherency protocol. Our caching nodes are distributed over they globe and as a result see large latencies between them. So a distributed…
0
votes
1 answer

How are AbsoluteExpiration, AbsoluteExpirationRelativeToNow and SlidingExpiration used on DistributedCacheEntryOptions?

I'm in charge of implementing a session state server with ASP.NET Core gRPC, and its corresponding client, to have session state management for a load-balanced group of ASP.NET Core applications. That means the client must implement…
Léster
  • 1,177
  • 1
  • 17
  • 39
0
votes
0 answers

Even distribution of large integer keys into N buckets

I have built a distributed caching system and need to map a set of integer keys that range in value from 0 to approximately 8 million that are not uniformly distributed onto a much smaller range of buckets (<100). The distribution of keys is shown…
0
votes
1 answer

Setting up distributed caching in node

I have an application, in which I have to fetch a list of users. The API to fetch the list requires an authentication token, which expires every 1 hour. So, in order to fetch the users, I first need to make a token call and post that I need to make…
Frosted Cupcake
  • 1,909
  • 2
  • 20
  • 42
0
votes
0 answers

Redis cluster support when using HSET

I need to know is there a way to use the HSET command in Redis cluster mode (with sharding for the same hash), because in the HSET command we are specifying a specific hash to store the data in the Redis cluster, which resides in a specific hash…
MaxExplode
  • 1,977
  • 2
  • 17
  • 27
0
votes
1 answer

Can request for a particular key go to different caches in distributed caches?

I am trying to understand distributed cache in-depth. Say, I have 1, 2 & 3 distibuted caches. Say process one, p1, tries to write key "K1" and value "Value1" to the cache. Based on the key, the algorithm determines which cache to write to, and K1…
Nishant
  • 1
  • 3
0
votes
0 answers

How is in-memory cache handled in Asp.net core? Can we use distributed cache for a single server instance?

I am learning the process of caching in Asp.net core and found that we use In-memory cache: single server instance Distributed cache: when the application is hosted in multiple servers. I was wondering if we should use distributed cache for a…
0
votes
1 answer

microservices, caching and load balancing design patterns

I have a real time data intensive application that uses a local in app/memory cache 40,000 vehicles are sending data to 1 server (every 5 secs), I have to work out distance travelled between previous and current location. To do this I cache each…
0
votes
2 answers

Apache Ignite 2.x - can I take advantage of offheap storage and also still have time based eviction (from the on & off heap storage)?

I am using Apache Ignite 2.8.1 I have a specific cache that I need to store off heap (because otherwise I will be plagued with out of memory conditions). And I also need the cache to be distributed. But I also want a time based eviction policy to…
Nicholas DiPiazza
  • 10,029
  • 11
  • 83
  • 152
0
votes
0 answers

IllegalMonitorStateException while releasing lock in Apache Ignite

I am using ignite 2.8.1 I have ignite lock that is inside some cron, I use it to run my processing only on single server node.I have 3 server nodes in my app. And today I've seen some exceptions. Could you explain how it could happens? It seems it…
Sergey
  • 933
  • 2
  • 19
  • 48
0
votes
0 answers

How to take a lock for similar request for a userid in C#?

I have a function which Get the value from API and then update inside the cache. This function is used by all users but I do not want to update the value to cache multiple times. how to avoid multiple writes ? how to take locks for multiple users…
0
votes
0 answers

Hazelcast in the master node cannot communicate to another node in a different VM

My application runs in two different VMs and they have the same configuration. When the second node runs up after the first one, Hazelcast members in different servers join, but they cannot initiate the communication. App uses TCP/IP for the…
0
votes
1 answer

How does a distributed LRU cache evict entries properly when using read replicas

Given a distributed cache such as Redis that is setup to use read replicas. How does the LRU or time to live get updated within the master instance when all the reads are happening on the replicas? Do the replicas have to also talk to the master…
Adam Ritter
  • 989
  • 1
  • 9
  • 19
0
votes
1 answer

Atomic operations across two ignite caches

I have two ignite caches. Both of them use the key/value pairs (and there is no database involved) to store some data. The cache1 stores the actual data, whereas the cache2 stores some metadata. The requirement is to make sure that both the caches…
Yasin
  • 1,906
  • 1
  • 21
  • 37