I want to understand what is the benefit of running an in-memory cache instance on a separate server to lookup data in distributed caching. The application server will have to make a network call to get the data from Cache. Isn't network call adding to the latency while reading the data ? Wouldn't it make more sense to get the data directly from the database instance ?
As distributed caching requires network call, isn't it beneficial to read directly from the DB in some cases?
377 Views Asked by Animesh Gaitonde At
1
There are 1 best solutions below
Related Questions in CACHING
- Using Puppeteer to scrape a public API only when the data changes
- Caching private wordpress rest endpoints
- Cloudflare not respecting Cache-Control
- Unexpected Recursive Call
- Cannot serialize (Spring Boot)
- Nginx only caches file endpoints
- The Selenium application properties folder holds two environment options. After running a test the environment setting changes to a previous setting
- Launch jobs in cache in a loop in bash script
- Multiple async request do not store anything to cache
- Dev tool for Next.js cache on the client?
- Creating a letter in the terminal by entering
- Laravel: check if cache has key with thag
- The retrieval time for the Apache Ignite cache is too long
- How to run gradle with caches files
- Docker Run cache mount does not cache apt-get dependencies
Related Questions in DISTRIBUTED-COMPUTING
- Micrometer & Prometheus with Java subprocesses that can't expose HTTP
- Least Connection Load balancing using Grpc
- How to debug ValueError: `FlatParameter` requires uniform dtype but got torch.float32 and torch.bfloat16?
- Load pre-training parameters trained on a single GPU on multi GPUS on a single machine
- How to access spark context or pandas inside a worker node to create a dataframe?
- Not Able To Connect Storj Node with Quic connection
- Is it better to store CUDA or CPU tensors that are loaded by torch DataLoader?
- FSDP with size_based_auto_wrap_policy freezes training
- Scalable Architecture for an Uptime Bot Tool in Node.js Handling Thousands of Cron Jobs Per Minute
- Contiguos graph partitioning
- How can we redirect system calls between OSes?
- spark sql - Have disabled Broadcast Hash Join ,but "NOT IN" query still do the mechanism
- How does model.to(rank) work if rank is an integer? (DistributedDataParallel)
- scanf function with MPI
- Accessing multiple GPUs on different hosts using LSF
Related Questions in DISTRIBUTED-SYSTEM
- How to avoid duplicates with the pull-based subscribe model?
- Micrometer & Prometheus with Java subprocesses that can't expose HTTP
- SQL connection throws error when adding DistributedSession, SessionMiddleware
- How to use NFS locks or any other mechanism to keep data in sync on multiple mountpoints
- The two data nodes return different results
- How to run an MPI program across multiple docker containers without manually ssh'ing
- How do I parallelize writing a list of Pyspark dataframes across all worker nodes?
- Does AWS use distributed systems?
- How to version control a source code which communicates with database?
- Searching for succ(p+1) in Chord systems
- How to design a long running process that can continue after an outtage?
- akka.cluster.ddata.Replicator$Internal$DeltaPropagation message from clusterReceptionist replicator is dropped because it exceeds the size limit
- In the storage-computing separation deployment mode, why does one of the three nodes have no disk space?
- Out-of-order AppendEntries in Raft
- Automatic Load Balancer with Locust 2.20.0 on Windows - High Ping and Scaling Challenges
Related Questions in DISTRIBUTED-CACHING
- SQL connection throws error when adding DistributedSession, SessionMiddleware
- Consistency of replicated map across cluster nodes
- Jcs cache version upgrade issue
- Is it possible to have different passwords for each endpoint in StackExchange.Redis
- Apache Ignite Ack Back
- Jgroups nodes failed to add unique value to custom column of JGROUPSPING table
- Using AddDistributedSqlServerCache with Managed Service Identity
- Infinispan 14.0.9 - RAM utilization
- how to implement hazelcast in-memory distributed cache using dotnet core 6
- A key not found in infinispan cache resulting in NullPointerException, sometime
- How to do Cache Sizing?
- Apache Ignite: Off-heap eviction not working
- Azure Ad Multi Tenancy + Multi Db scenario - How to have a Distributed Token Cache per tenant
- How to make this dynamic request mapping work on multiple hosts?
- Keycloak and external Infinispan and Console -> throws error while marshaling
Related Questions in DISTRIBUTED-CACHE
- How to implement distributed Cache in the .net Framework Project of version 4.8
- Is x-Protostream encoding supported in Keycloak version 21.x
- Distributed Cache (redis) prefix keys
- Custom Serialization capability for EntryProcessor in Hazelcast
- How can i consume a message in Kafka in all the instances of a service
- Is it possible to access Redis shared memory directly(without going through sockets)?
- How to bust the cache or obtain cache key when using <distributed-cache> Tag helper in Asp.net Core MVC
- Is it possible to store MAP as a value into MULTIMAP in the Hazelcast?
- how to evict hazelcast caches manually or on a future timestamp
- Asp.net Session or Distributed Cache - which is viable solution
- First hazelcast node is shutting down instead of becoming master
- Distributed caching and locking with Redis in .NET Core
- Error in Oracle Coherence - "no storage-enabled nodes exist for service partitionedcache" while using Cohql in production
- Azure redis cache for caching secrets
- When add hdfs file to hive and use in udf, it comes an error
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Network calls are an order of magnitude faster than disk look-ups (less than 100 micros seconds RTT within adata center). Look-up from memory is also fairly fast (10-20 micro seconds per read). On other hand, databases often have to read from the disk and they maintain extra transaction meta-data and locks.
So caches provide higher throughput as well as better latencies. The final design depends on the type of databases and data access scenarios.