473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Synchronizing Server & Client Caches

Niheel
2,460 Expert Mod 2GB
What's the best approach to synchronizing a client cache and a server cache.

The client cache is there to reduce network calls.
The server cache is here to reduce database queries.

If there's an update to the server data, what's the best approach to making sure the client cache is up to date?
Aug 29 '19 #1
3 1704
gits
5,390 Expert Mod 4TB
what exactly is your setup here? a web-application? when using regular http-requests then you cannot push data to the client - so you can only update the cache there with the next request by transferring the new data. other options are websockets or server side events which basically allow for a persistent connection and let you push data to the client in realtime.
Aug 30 '19 #2
Niheel
2,460 Expert Mod 2GB
It's a server application that will talk to multitude of client applications (web, mobile, desktop, and other services).

The client caches are to help reduce network calls and also localize data for off-line usability.
Seems like the best approach is to have the client be responsible for updating the data.
Sep 1 '19 #3
gits
5,390 Expert Mod 4TB
well - websockets for webclients are pretty easy to implement - for mobile devices probably this should be push notifications - since websocktes might tend to drain the device power. if it wouldn't need to be real time then i would use the normal requests to piggyback the new cache data along with them - yea.
Sep 2 '19 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: learning_C++ | last post by:
Hi, I found some example code about server and client applications. But I can not run server and client in different computers. Now, I only run them in the different windows in Linux. I hope to...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
3
by: Shaker | last post by:
Dear All, How can I access the client side scripts (javascript) for ASP.Net page. Through the IDE of Visual studio .Net AS We were did with Visual Interdive 6. There was ability to see server...
2
by: David Hoffer | last post by:
Can I create NET applications where the data tier is enclosed within a Web Service where the OS may be Win98SE, XP Home as well as XP Pro? The client application is a NET Forms app not a ASP.NET...
4
by: z | last post by:
To reconfigure oracle9i from server to client operation, two files need to be modified: listener.ora (for the server IP address), and tnsnames.ora (for user permissions). What are the...
1
by: tsjuan | last post by:
Hello python users, I am just learning on how to use xmlrpc and stumbled upon how to pass com object from server to client side. The client side complain about can't marshall the com object....
0
luke14free
by: luke14free | last post by:
Hello, I'm working on a simple project for mobile phones, but because of traffic wap/web cost I would like to know one thing If I have a server( A ) and a client( B ), and the client connects to...
2
by: thumban | last post by:
Hi, I was trying to commmunicate between a server and a client. The SERVER and CLIENT scripts are given below. With this script i was able to get the message from the server only if i type...
2
by: arijitdas | last post by:
Hi, We have an ASP.NET 2.0 web application where we want to share few user specific data between server and client side code using cookie. We are seeing a very strange behavior that it does not...
0
by: NileshJethawa1 | last post by:
Hello Friends, I am new to SQL Server. I have query regarding SQL Server Native Client. How to make connection with SQL Server using native client . I already make connection using ODBC and OLE...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.