| |

VerySource

 Forgot password?
 Register
Search
Author: kaffir1985

How to achieve data synchronization?

[Copy link]

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-14 12:15:01
| Show all posts
Use trigger
You can also use events to achieve the same function.
When the Server data is updated, all customers are notified. We can even encapsulate the data records updated on the server side in this notification. When the client knows the notification, it can know the specific data update and so on. . .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 13:00:01
| Show all posts
Through homework, synchronize the two databases regularly. Search for this
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 14:30:01
| Show all posts
This is a very common model. For large supermarket chains, look at how the data of each store is synchronized with the head office.
1. If the network is connected, the data is transmitted online.
2. The network is disconnected, and the data is stored in a U disk and updated with the head office.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 15:00:01
| Show all posts
mark learning ha ha

I thought that the client doesn’t need a database. Ha ha~~~

In addition, I think to realize the synchronization of data at both ends of c/s, you can refer to the TCP three-way handshake protocol. Ha ha~~~
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 15:15:01
| Show all posts
If it is for data storage safety, use RAID

Synchronous replication of the two databases cannot guarantee complete data consistency.

Synchronous replication of data cannot be continuous in time. If a problem occurs between the two replications, it will cause data inconsistency.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 15:30:01
| Show all posts
Use triggers, easy and convenient
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 15:45:01
| Show all posts
Use trigger
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-9-6 16:00:01
| Show all posts
I think the trigger is ok, but it has a flaw. It must be real-time. If there is a problem with the network or the client machine shuts down, the server data cannot be updated.
If you want to do non-real-time, it is a bit troublesome, you need to mark whether to publish, or do data comparison.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 16:30:01
| Show all posts
There is a JOB in the oracal database to achieve data synchronization, and perform data synchronization operations at a fixed time according to the MARK you generate.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-6 16:45:01
| Show all posts
Why does the client need to use a database? Is this wrong?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list