473,624 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Synchronizing Server & Client Caches

Niheel
2,456 Recognized Expert Moderator Top Contributor
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 1716
gits
5,390 Recognized Expert Moderator Expert
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,456 Recognized Expert Moderator Top Contributor
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 Recognized Expert Moderator Expert
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
2133
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 I can log on a computer that run server application from a different computer. How can I modify those codes? Thanks, /*server.c*/
7
4741
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 and is defined in an assembly common to the client and server components. The custom class merely defines three (3) constructors -- the null constructor; one with a string parameter; and one with a string and innner exception parameter -- that...
3
1043
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 and client side script, and overall object,... I miss VID 6 !! Any help ?
2
1603
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 app. I understand this works when the server box is XP Pro but we also have to support 98SE and XP Home. In our situation 90% of the time all the code (server and client) will be on one box. However we need to design for the 90 and the 10%. ...
4
3731
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 analogous files to be modified for db2? I looked at a couple of manuals, but only got the instruction to re-install db2 specifying client. For various reasons, that is impractical for my situation.
1
1640
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. I don't know what type of marshall command I should use to pass the object.
0
845
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 the server I have something that could be drawn in a way like that B-->A Suppose that my server A is just an Ftp server, that reiceves packets from the client B. In this case, B is sending the files, and A is...
2
1334
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 something in the client and viceversa. My requirement is that even if someone doesnt type anything,message from other side should reach them. i believe we can use threads for this purpose; but i am not quite sure to use them.Please help..... ####SERVER...
2
2136
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 work consistently. Sometimes we are getting the latest value set from server in client script, sometimes were are getting a wrong (previously set old) value. In other words, the values in client and server is not in sync. Can anybody suggest...
0
1421
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 DB. As in Oracle there is native client for C++ i.e OCI, In Postgres there is native client for C++ i.e. libpq So is there is such library exist in case of SQL Server 2008
0
8177
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8681
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8341
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1793
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.