Skip to main content

High Availability and Scalability

  • Chapter
Pro SQL Server 2008 Service Broker
  • 294 Accesses

Abstract

This chapter will introduce the high-availability and scalability options you can choose from when you deploy your Service Broker applications. This chapter will cover the following topics in detail:

  • Database mirroring: Database mirroring is a new high-availability feature in SQL Server 2008. With database mirroring, you can mirror a SQL Server 2008 database between two server instances. One database acts as the principal, and the other database acts as the mirror. When you use Service Broker, you can also mirror your Service Broker service between two databases, and Service Broker will ensure that your messages are forwarded to the current principal.

  • Load balancing: Service Broker provides built-in functionality for load balancing. When you provide more than one route at the initiating service for a specific service name, Service Broker randomly picks a route from the available ones and sends the conversation’s messages along this route. Therefore, load balancing is easy with Service Broker.

  • Message forwarding:Message forwarding allows an instance of SQL Server to accept messages from outside the instance and send those messages to a different instance. In this case, the instance acts as a Service Broker message forwarder. With message forwarding, you can encapsulate your physical Service Broker infrastructure and use message forwarding to scale things out.

  • Configuration notice service: An administrator typically configures Service Broker routing information. To provide dynamic routing information for your Service Broker application, you can use a configuration notice service. A configuration notice service exists on the initiating service side and provides dynamic routing information for a target service.

  • Data-dependent routing: One strategy to achieve scale-out is to load-balance a Service Broker service. Another strategy is data partitioning. While Service Broker naturally provides a mechanism for load balancing, it is also possible to build highly scalable Service Broker applications that use partitioned data using Service Broker. The key to achieving this lies in data-dependent routing, which is the subject of this section.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Klaus Aschenbrenner

About this chapter

Cite this chapter

(2008). High Availability and Scalability. In: Pro SQL Server 2008 Service Broker. Apress. https://doi.org/10.1007/978-1-4302-0865-5_11

Download citation

Publish with us

Policies and ethics