Two phase commit or replication
I'm confused about which commit is better:
Say I have two sites A & B connected with WAN 256KB. Site A has table LOANS_PAYMENT TABLE which has a replica on B. The requirement is that
once a payment record is inserted in site A in will be immediately replicated to B as soon as possible. The payment table has a daily transaction insert of
10,000 rows and average legth of 50 bytes per row.
create db trigger(after insert) on LOANS_PAYMENT in site-A to insert on
Create repliction view refresh fast on commit.
My question is, which is effective and effecient program? a db trigger
or a replication refresh.
Thanks a lot
The calcuations shows that the bandwith should be enough to implement the first idea.
However consider the following:
1) The WAN bandwith is probably not reserved for you. If you share it with other 100 people, downloading pictures, video etc. can you rely on that bandwith
2) Is the 256KB bandwith guaranteed? In my country the contract says UP TO 256KB, what means that actually they guarantee that you will not go ovet 256KB :-)
3) Keep in mind that if the connection fails (what can happen, since thats' WAN) you'll not be able to insert into the table at all, in case of the first scenario, and that practically means downtime
I hope that helps
thanks dear....the 1st one is a tight-coupled system while the 2nd
If the network is down and i am using the second one(fast refresh on commit)
does it know when to restart updating the other site?
Click Here to Expand Forum to Full Width