#1 2014-01-10 23:52:39

array81
Member
From: Italy
Registered: 2010-07-23
Posts: 411

Update clients GUI

My application use a server-clients systems, so I have a server application and many clients applications.
The clients can edit database table so I have added a procedure to update te GUI all other clients with a client edit the database.

What is the best way to do it? I need a fast and no-blocking system.
I think the best way is allow to server send the new record to all the clients when there are some update but I don't know if this is possible.
I'm not an expert of server-clients systems so I'd like know what is the best way to do it.

Thanks

Offline

#2 2014-01-11 08:04:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Update clients GUI

Our framework is stateless by nature.
See the SAD 1.18 pdf about "Stateless" in the key word index, you will find how it is implemented.
In particular, see "12.2. Stateless design" (currently page 231).

But you can pull the server regularly (e.g. every 5 seconds), for new values.
There is a built-in  is not intrusive, and has some benefits:
- It keeps the connection open;
- It does not need any complex synchronization.

Offline

#3 2014-01-11 22:03:18

array81
Member
From: Italy
Registered: 2010-07-23
Posts: 411

Re: Update clients GUI

I just use UpdateFromServer on my clients but I get some "blocking" problem.
My clients have some grids. For any grid I use a TSQLTableJSON to retrive data from some tables, then I use UpdateFromServer to know if there a update data.
My problem is this if UpdateFromServer I must retrive a now TSQLTableJSON with ALL to update the client grid.
Also if there only a update record of TSQLTableJSON I don't know it so I must retrive ALL in this way I have a "blocking" problem (for 3-4 seconds).

Offline

#4 2014-01-12 18:08:38

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Update clients GUI

You should better use paging in this case, or specify some filters, to have a smaller list.

Offline

Board footer

Powered by FluxBB