Overview

Chapter 6. Achieving high reliability at cloud scale

The chapter explains that cloud systems must be designed not only for scale, but also for reliability, because large numbers of commodity servers inevitably produce failures. It connects the cloud’s modern architecture to earlier distributed systems and service-oriented architecture, showing how multi-tier designs, loose coupling, and service interfaces help reduce single points of failure and make applications easier to build, test, replace, and extend. In this view, reliability comes from separating components cleanly and allowing each service to fail or change without bringing down the whole system.

A major theme is that loose coupling improves resilience by limiting dependency between components. The text contrasts tightly coupled systems, which are harder to modify and more fragile, with loosely coupled ones that use abstract interfaces, asynchronous messaging, self-describing data, and delayed bindings. It also describes web services and message-based communication as practical ways to build distributed applications that can continue operating even when individual services or machines are unavailable, slow, or changed unexpectedly.

The second half focuses on reliability at extreme scale, especially through redundancy and MapReduce. Redundancy across software, data, networks, and hardware helps systems survive component failures, while MapReduce provides a framework for splitting large jobs into independent map tasks, combining their results with reduce tasks, and rescheduling work when nodes fail. The chapter emphasizes that at cloud scale, reliability must be built into the software itself, since hardware failures are normal, and it illustrates how platforms like Hadoop make this approach practical for massive, real-world workloads.

An N-tier architecture. Many variations are possible. But generally, an application server is involved. From the application server, many different logical layers can be accessed. At the application server level, you can begin to interact with the cloud. Any or all of these layers can operate in the cloud effectively.
A three-tier architecture: Presentation layer + Business layer + Database layer
Strong coupling. Changes in A impact B, C, and D. Changes in B impact A, C, and D.
Loose coupling. Modifications in A’s behavior don’t impact B, C, or D. Modifications in B’s behavior may affect A but nothing else.
The simple structure of Amazon’s SQS interprocess communication web service
The roles of master and worker are depicted using the little elephant logo of the open source Hadoop implementation of MapReduce. The master divides the problem into tasks and assigns them to workers. Each worker performs its task and writes back a result that the master gathers into an overall result.
The map and reduce functions in a MapReduce model. The input data is partitioned into subparts, each of which is handed to a map function. It passes the output of all the map functions to a reduce function that prepares the final output.
How MapReduce operates (see reference numbers in the above diagram)

FAQ

What is the main reliability challenge when running applications at cloud scale?At cloud scale, applications run on thousands of commodity servers, so hardware failures become inevitable. The main challenge is designing software that can keep working despite those failures rather than assuming the hardware will always be available.
Why are distributed systems considered more reliable than nondistributed systems?Properly implemented distributed systems have no single point of failure. If one component or machine fails, the rest of the system can often continue operating, making the overall application more fault tolerant.
How do three-tier and N-tier architectures support cloud reliability?Three-tier and N-tier architectures separate responsibilities into layers such as presentation, business logic, and data services. This separation makes systems easier to scale, deploy, maintain, and recover, which improves reliability in web and cloud environments.
What is loose coupling, and why does it improve reliability?Loose coupling means components have little direct knowledge of each other and depend only on abstract interfaces. This improves reliability because components can be changed, replaced, or allowed to fail independently without breaking the whole system.
What design practices help create loosely coupled cloud applications?Helpful practices include using vendor- and platform-independent messages, stateless messaging, coarse-grained self-describing messages, well-defined versionable interfaces, human-readable URIs, and asynchronous exchange patterns where appropriate.
How does SOA relate to cloud computing?Service Oriented Architecture (SOA) is a precursor to cloud computing and focuses on building systems from interoperable services. Cloud computing is a deployment model that often uses SOA principles, so the two are complementary rather than competing ideas.
What roles do service providers and service consumers play in SOA?A service provider creates and publishes a service, often through a registry or broker, while a service consumer locates that service and binds to it for use. This separation allows different systems to interact through shared service interfaces.
How does Amazon SQS support distributed application reliability?Amazon SQS provides a highly scalable, reliable message queue for asynchronous communication between distributed components. Messages are persistently stored, so they are not lost if a component is temporarily unavailable, which helps decouple system parts and improve fault tolerance.
Why is redundancy so important for reliable cloud systems?Redundancy provides backup software, data, or hardware so the system can continue operating when a component fails. In the cloud, redundancy is especially important because large-scale deployments make failures inevitable.
How does MapReduce help achieve both reliability and performance?MapReduce splits a large problem into smaller tasks handled by many worker nodes in parallel, and the master can reschedule work if a worker fails. This makes it possible to process massive data sets efficiently while also recovering gracefully from hardware failures.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • The Cloud at Your Service The Cloud at Your Service ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • The Cloud at Your Service The Cloud at Your Service ebook for free