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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-2498-3_10
Publisher Name: Apress
Print ISBN: 978-1-4302-2497-6
Online ISBN: 978-1-4302-2498-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)