Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Service Broker / September 2008

Tip: Looking for answers? Try searching our database.

SB vs Replication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Microsoft - 19 Sep 2008 21:12 GMT
I have the need to replicate the transactions from 4 independent servers.
Each server logs transactions and needs to lookup the transaction history of
each of the other 3 servers.  I have two servers each in 2 data centers.
The reason for having 4 servers is that in the event of a problem we can
lose a server or a data center and the others can continue processing.  The
total volume of transactions across all 4 servers is less than 2 thousand
per minute.

I'm thinking of using service broker to replicate the transactions to each
of the other 3 servers.  I can live with a 5 second latency and expect it to
be much less.  I feel a simple SB application would do the replication and
gives me more flexibility in terms of recovery when things go wrong.  The
alternative is a 4 way merge replication of a table.  My biggest concern
with replication is recovery when things go wrong, and controlling the error
handling during maintenance reboots of individual servers.

One of the appealing aspects of rolling my own replication application using
service broker is that I can build a new copy from the most recent date
backwards.  The table will have a 90 day history of transactions, but 95% of
the activity will be looking at the most recent 48 hours.  So in building a
new server it can be operational after restoring just the most recent 2
days.  I don't believe I would have this flexibility using replication.  I
could start processing on the new server while the history is backfilled.

Having said all that, both of these are new technologies to me so I'm open
to hearing what people think.

Regards, JP
Roger Wolter[MSFT] - 29 Sep 2008 16:17 GMT
I would be inclined to agree that your scenario sounds like a good fit for
Service Broker but I generally am reluctant to recommend Service Broker over
replication in a replication scenario.  There's a lot involved in
replication - initial synchronization, monitoring, recovery after a network
or hardware failure, etc.  Replication has solutions for all these but if
you are going to use Service Broker, you will have to figure out what you
need yourself.  None of these is really that hard to do but be sure you have
thought through how you handle things like recovery before you deploy a
Service Broker solution.

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

>I have the need to replicate the transactions from 4 independent servers.
>Each server logs transactions and needs to lookup the transaction history
[quoted text clipped - 25 lines]
>
> Regards, JP
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.