Skip to main content

Distributed Spring

  • Chapter
Spring Enterprise Recipes

Abstract

In this chapter, you will learn the principles behind various distributed computing concepts, and how to use Spring in conjunction with some very powerful, open-source—ish third-party products to build solutions leveraging those concepts. Grid computing is a very important concept in today’s world, for many reasons. It solves many problems, some more ephemeral than others:

  • Scalability: Distribution provides a mechanism by which to expand capability to scale an application to meet demand. This is simple, on the face of it: the more computers responding to the same request means more people can make requests. This is the quintessential reason behind clustering, and behind load balancing.

  • Redundancy: Computers fail. It’s built in. The only thing you can guarantee about a hard disk of any make? That it will, at some point or another, fail, and more than likely in your lifetime. Having the ability to have a computer take over when something else becomes ineffective, or to have a computer’s load lessened by adjoining members in a cluster, is a valuable benefit of distribution.

  • Parallelization: Distribution enables solutions designed to split problems into more manageable chunks, or to expedite processing by bringing more power to bear on the problem. Some problems are inherently, embarrassingly parallelizable. These often reflect real life. Take, for example, a process that’s designed to check hotels, car rentals, and airline accommodations and show you the best possible options. All three checks can be done concurrently, as they share no state. It would be a crime not to parallelize this sort of thing. Other problem domains are not so clearly parallelizable. For example, a binary sort is an ideal candidate for parallelization.

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 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight 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

© 2009 Gary Mak and Josh Long

About this chapter

Cite this chapter

(2009). Distributed Spring. In: Spring Enterprise Recipes. Apress. https://doi.org/10.1007/978-1-4302-2498-3_10

Download citation

Publish with us

Policies and ethics