473,386 Members | 1,699 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,386 software developers and data experts.

What happens if users simultaneously synchronize replicas with hub replica

I'm just starting to play with replication. It looks like it might work
fairly well for what I need.

I'm not in a good position to test what happens if two or more users try to
sync their replicas at the same time with the hub replica located on the
server.

Can someone who has experience with this provide me with some guidance. The
reason I ask is that I was thinking about having my app sync the local
replica with the server hub when the user closes the app (using code). But I
wasn't going to force the user to wait for a messagebox stating whether it
was sucessful or not, in case, it takes a long time. But if simultaneous
synchronization results in failure, then I'm not sure what to do. If an
error message doesn't display, then the user will merrily close the app and
be angry later when they find out that the syncing failed because of a
simultaneous synchronization failure.

So how does Access handle this situation?

Thanks.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

Dec 14 '06 #1
4 1811
It's a better idea to replicate at alternating times. We replicate
every 10 minutes, with one database replicating on the 5's and one on
the 0's (i.e. one at 10:30, the other at 10:35, the first at 10:40,
etc...).

As for what would happen if they replicate in sync, I don't know.
There's a good possibility that you could end up with a record locking
issue.
rdemyan via AccessMonster.com wrote:
I'm just starting to play with replication. It looks like it might work
fairly well for what I need.

I'm not in a good position to test what happens if two or more users try to
sync their replicas at the same time with the hub replica located on the
server.

Can someone who has experience with this provide me with some guidance. The
reason I ask is that I was thinking about having my app sync the local
replica with the server hub when the user closes the app (using code). But I
wasn't going to force the user to wait for a messagebox stating whether it
was sucessful or not, in case, it takes a long time. But if simultaneous
synchronization results in failure, then I'm not sure what to do. If an
error message doesn't display, then the user will merrily close the app and
be angry later when they find out that the syncing failed because of a
simultaneous synchronization failure.

So how does Access handle this situation?

Thanks.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1
Dec 14 '06 #2
Thanks. The issues I have is a relatively slow connection and unfortunately
Access isn't multithreaded. So when you sync up every ten minutes, doesn't
your app pause while the syncing is occurring.

I wonder if it would be possible to have a second "synching" app launch
(perhaps hidden) that does the synching of the databases at regular times.
That might prevent the main app from pausing while
any synching was occuring from the main app.

Also, now that I think about it, it isn't really absolutely necessary that
the synching occur when the user closes the main app. Synching could occur
at a later time. My app doesn't typically require up-to-the-minute data.
But I guess the only issue would be if the user doesn't log in again for
quite some time. His/her updates wouldn't be picked up. The configuration I
was planning to use is a star configuration. I don't see how the server hub
back-end can sync with copies on user's local PCs.
ManningFan wrote:
>It's a better idea to replicate at alternating times. We replicate
every 10 minutes, with one database replicating on the 5's and one on
the 0's (i.e. one at 10:30, the other at 10:35, the first at 10:40,
etc...).

As for what would happen if they replicate in sync, I don't know.
There's a good possibility that you could end up with a record locking
issue.
>I'm just starting to play with replication. It looks like it might work
fairly well for what I need.
[quoted text clipped - 20 lines]
>Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

Dec 14 '06 #3
Then sync it on the hour or something. Every 2 hours, offsetting.

The main replication database can sync with any copy it can see, so it
depends on your network. If it can see the user's local PCs, it can
sync with it. However, I wouldn't put back-end databases on local PCs.
If anything I'd put the front end on their PC and keep the back end on
a server.

rdemyan via AccessMonster.com wrote:
>
Also, now that I think about it, it isn't really absolutely necessary that
the synching occur when the user closes the main app. Synching could occur
at a later time. My app doesn't typically require up-to-the-minute data.
But I guess the only issue would be if the user doesn't log in again for
quite some time. His/her updates wouldn't be picked up. The configuration I
was planning to use is a star configuration. I don't see how the server hub
back-end can sync with copies on user's local PCs.
Dec 14 '06 #4
Bri


rdemyan via AccessMonster.com wrote:
I'm just starting to play with replication. It looks like it might work
fairly well for what I need.

I'm not in a good position to test what happens if two or more users try to
sync their replicas at the same time with the hub replica located on the
server.

Can someone who has experience with this provide me with some guidance. The
reason I ask is that I was thinking about having my app sync the local
replica with the server hub when the user closes the app (using code). But I
wasn't going to force the user to wait for a messagebox stating whether it
was sucessful or not, in case, it takes a long time. But if simultaneous
synchronization results in failure, then I'm not sure what to do. If an
error message doesn't display, then the user will merrily close the app and
be angry later when they find out that the syncing failed because of a
simultaneous synchronization failure.

So how does Access handle this situation?

Thanks.
There are others here that are more familiar with the internals of
Replication than I, but one thing I do know is that syncing locks the
whole table that it is working with. If two processes want to lock a
table, then the first one will get it and the second one will either
retry or fail. If your connection is slow or you have a lot of data to
sync, then the lock will outlive the retrys and it fails.

We had enough problems with this that we schedule syncing for a specific
time that EVERYONE else stays out of the database completely. I
specified the two processes above without qualifying that they were
replication processes since it doesn't matter what the processes are. If
one is a sync and it locks the table you want to add data to, then your
data entry will fail.

Bottom line is that Replication is a touchy thing that has to be done
just right or it has problems. It is NOT the best solution for many of
the things it is being used for, in spite of MS claims of what it can do.
--
Bri

Dec 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: P. Emigh | last post by:
A client that synchronizes over the internet encountered Error #3003: "Could not start transaction; too many transactions already nested" when attempting to synchronize. I checked user groups...
2
by: John Sims | last post by:
Hello All, Anybody out there know what this error is...I'm getting it while trying to create a partial replica from a full replica made from the design master. "The Partial Replica Wizard has...
0
by: Suse Baeriswyl | last post by:
Hello newsgroup, thanks to David's help I will try to rebuild my replicas with "smaller" dimensions in order to avoid the massages concerning numbers of tables the tombstone-table. Does...
0
by: manning_news | last post by:
Using A2K. I've researched this newsgroup and can't find the answer to my question. As we all know, when a database is turned into a Design Master, another database is created called "Replica of...
4
by: Charles Law | last post by:
I've been using monitors a bit lately (some of you may have heard ;-) ) and then up pop Manual and AutoResetEvents , and they look for all the world like the same thing. Are they...
4
by: Shiva | last post by:
Hi, I'm trying to get familiar with the concept of replica's, but it still confuses me a bit. Here's my situation: 1) my database application, *.mdb file, should be distributed from time to...
4
by: gstaats | last post by:
I know that that exact subject is on the MSDN website - I have read through those chapters and understand how to implement JRO replication. My question is what tools or software does one need...
0
by: BluFalco | last post by:
Hey all, Im looking for some advise from developpers that have experience with eDir. Basically, I want to know how can i test replicas for synchronization? Is it enough to compare the...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.