Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8984607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:08:51+00:00 2026-06-15T21:08:51+00:00

This question relates to implementing redundancy when having two databases syncronising on 2 different

  • 0

This question relates to implementing redundancy when having two databases syncronising on 2 different servers. First of all, I’ll explain the setup so that you can understand the backround of the issue.

I have two different servers, operating different operating systems with different DB types at 2 different locations.

Server 1 (local server):
Windows 2003 Small Business Server OS
MSSQL DB Server
Server-Side Language - C# ASP.NET

Server 2 (website server):
Linux CentOS 6
MySQL DB
Server-Side Language - PHP

Server 1 runs the internal management side of the software and server 2 is the external website interface (server 2 has some management aspects 2). Unfortunately, we have seen frequent loss of broadband at our office and this means that communciation between the two servers may not always be possible (we have 3G broadband redundancy but it takes time for Dynamic DNS to update the DNS record with our new IP address when we lose the primary broadband). This is what caused the need for each server to have its own DB – as we can’t allow one or the other of these two sides to go offline entirely.

As such, I’ve built it into both servers such that both have their own local database but apply any changes to other server as well. If the other server cannot be connected to, it will save the query to the local DB so that the queries can be applied when the other server becomes available again. This leaves two issues:

  1. A general point about syncing between databases like this – how
    can I best avoid conflicting queries being applied when the servers
    reconnect? See example 1 below for a description of what I mean. This
    problem is minimised because the connection should only be lost for a
    couple minutes – until the DNS record is updated.

  2. When applying the back-logged queries, I would like to have the script automatically apply the queries (rather than having to manually launch a script to resolve back-logged queries). However, I’m unsure what effect this would have if the user navigated away from the page whilst it was still appying the back-logged queries in the background.

Example 1:

If a user on the website side (server 2) changes their email address, or phone number etc., and a user on the management side (sever 1) changes that user’s details then these two queries will have conflicting information. When the servers reconnect then the two queries will be applied to the other server – and the entries will still be out of sync.

P.S. Sorry the question is so long.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:08:52+00:00Added an answer on June 15, 2026 at 9:08 pm

    Don’t re-invent database replication. Use the one provided by your database software instead.

    However, this means you should switch to the same RDBMS on both ends. MySQL replication is fairly reliable on WAN connections and will work reliably between platforms and versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is kind of a two part question. But it both relates to the
this question relates to performance penalities that may or may not arise from having
This question relates to my answer of another of my question. The original question
This question relates to this question which I asked earlier this week. The answer
This question relates to those parts of the KenKen Latin Square puzzles which ask
James here. This question relates (sort of) to the one I posted a little
This question most closely relates to the asp.net mvc3 framework. It started out as
This relates to my other question on accessing a REST service that uses forms
I have two excel files. The first excel file is like this: 12 A
This question is related to Implementing logging in a Java application , but since

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.