1/82
Looks like no tags are added yet.
Distributed System
A collection of autonomous, programmable, asynchronous, and failure-prone entities that communicate through an unreliable communication medium.
Entity
A process running on a device within a distributed system.
Autonomous
Each process can start, operate, and shut down independently of other processes.
Programmable
Each process runs software that can be independently modified or upgraded. Different processes may run different versions of the same program.
Asynchronous
Processes execute independently without a shared global clock or lockstep behavior.
Failure-prone
Any process can fail unexpectedly at any time.
Unreliable Communication Medium
A network where messages may be delayed or dropped, with no guaranteed upper bound on delivery time.
No Global Clock
There is no single agreed-upon notion of the correct time across all processes in a distributed system.
Fail-stop Failure
A failure in which a process crashes and stops executing.
Why is failure detection difficult in distributed systems?
A lack of response could mean a process crashed, a network connection failed, or a message was delayed or dropped.
Bandwidth
The amount of data that can be transferred over a network per unit of time.
Latency
The amount of time it takes for data to travel from one location to another.
Heterogeneity
The ability to support different types of machines and devices within the same system.
Robustness
The ability to handle machine crashes, failures, and dropped network messages.
Availability
The ability to keep data and services accessible to clients.
Transparency
The ability to hide the internal workings of a distributed system from users.
Concurrency
The ability to handle multiple clients or operations simultaneously.
Efficiency
The ability to provide fast service while effectively utilizing available resources.
Scalability
The ability to handle increasing numbers of clients or servers without degrading service.
Security
The ability to protect the system against attacks.
Openness
The ability to extend a system with new features or functionality.
Stateless Protocol
A protocol in which the server does not maintain information about previous client requests. Examples: HTTP and RESTful protocols.
Stateful Protocol
A protocol that maintains information about previous requests or sessions.
Why are stateful protocols more complicated?
Past state must be maintained and updated. If a client or server crashes, their views of the state may become inconsistent and must be reconciled.
Client-Server Model
Clients send requests to servers, and servers process the requests and return responses.
Peer-to-Peer (P2P) System
A system in which entities communicate as peers rather than having strictly separate client and server roles.
Cloud
A large collection of storage and computing resources located near each other.
Public Cloud
A cloud that provides services to any paying customer.
Private Cloud
A cloud that is accessible only to employees of an organization.
Datacenter
A single-site cloud containing compute nodes, storage nodes, network switches, front ends, and supporting services.
Compute Node
A machine responsible for executing computations and processing tasks.
Storage Node
A machine responsible for storing data.
Rack
A group of servers physically organized together within a datacenter.
Top-of-Rack Switch
A network switch that connects servers within a rack to the rest of the datacenter network.
Core Switch
A higher-level network switch that connects different parts of the datacenter network.
Clos/Fat-Tree Topology
A hierarchical network topology that connects servers and racks through multiple levels of switches.
Front End
The component responsible for receiving client requests and submitting jobs to the cloud.
Load Balancer
A component that distributes incoming requests across multiple servers.
Three-Tier Cloud Architecture
Front ends receive requests, compute nodes perform computations, and backend storage nodes store data.
Cloud Control Plane
Manages resource provisioning, scheduling, monitoring, and authentication.
Availability Zone (AZ)
A group of datacenters designed to operate as a separate failure domain.
Failure Domain
A group of resources that may fail together because they share infrastructure.
Cloud Region
A geographical area containing multiple availability zones.
Cloud Infrastructure Hierarchy
Server → Rack → Datacenter → Availability Zone → Region → Global.
Why distribute replicas across multiple availability zones?
To reduce the chance that a single failure affects all replicas, improving fault tolerance.
Features of Today's Clouds
Massive scale, on-demand access, data-intensive nature, and new cloud programming paradigms.
Massive Scale
Clouds contain extremely large numbers of machines and computing resources.
On-demand Access
Users can access computing and storage resources whenever needed without an upfront commitment.
Pay-as-you-go
A pricing model where users pay for the resources they use rather than purchasing their own infrastructure upfront.
HaaS (Hardware as a Service)
Provides access to barebones physical hardware machines. Can introduce security risks.
IaaS (Infrastructure as a Service)
Provides flexible computing and storage infrastructure using virtualization or containerization. Examples: AWS EC2 and S3.
PaaS (Platform as a Service)
Provides computing and storage infrastructure combined with a software platform. Example: Google App Engine.
SaaS (Software as a Service)
Provides access to ready-to-use software services. Examples: Google Docs and Microsoft Office 365 Online.
FaaS (Function as a Service)
Users upload functions that the cloud provider executes when triggered. Examples: AWS Lambda and Azure Functions.
IaaS vs. PaaS
IaaS provides computing and storage infrastructure, while PaaS additionally provides a software platform.
PaaS vs. SaaS
PaaS provides a platform for running applications, while SaaS provides completed software services.
AWS EC2 (Elastic Compute Cloud)
A cloud computing service that allows users to upload and run operating system images using rented computing resources.
AWS S3 (Simple Storage Service)
A cloud storage service that allows users to store arbitrary datasets and pay based on storage usage.
AWS Lambda
A Function as a Service offering where users upload functions that AWS executes when triggered.
AWS EC2 vs. AWS Lambda
EC2 provides computing infrastructure for running operating system images, while Lambda executes uploaded functions when triggered.
AWS EC2 vs. AWS S3
EC2 provides computing resources, while S3 provides storage resources.
Computation-intensive Computing
Computing that focuses on performing large amounts of computation. CPU utilization is an important resource metric. Examples: MPI and high-performance computing.
Data-intensive Computing
Computing that focuses on processing large amounts of data using compute nodes located near where the data is stored.
What is the most important resource metric in data-intensive computing?
Disk and/or network I/O rather than CPU utilization.
Computation-intensive vs. Data-intensive Computing
Computation-intensive computing focuses on CPU performance, while data-intensive computing focuses on disk and network I/O performance.
Why perform computations near where data is stored?
To reduce the amount of data that needs to be transferred across the network.
New Cloud Programming Paradigms
Programming models that make it easier to write and run highly parallel programs. Examples: MapReduce and Hadoop.
PUE (Power Usage Effectiveness)
Total facility power / IT equipment power
Lower values are better.
WUE (Water Usage Effectiveness)
Annual water usage divided by IT equipment energy usage, measured in liters per kWh. Lower values are better.
Monthly Cloud Compute Cost
Cost per CPU-hour × number of CPUs × hours used per month.
Monthly Cloud Storage Cost
Cost per GB-month × number of GB stored.
Total Monthly Cloud Rental Cost
Monthly compute cost + monthly storage cost
Monthly Cost of Owning Infrastructure
F/M + O, where F is the upfront infrastructure cost, M is the number of months, and O is the monthly operating cost.
Breakeven Point
The point at which renting and owning cloud infrastructure cost the same amount.
Cloud Breakeven Formula
M = F/(R - O), where F is upfront ownership cost, R is monthly rental cost, O is monthly operating cost, and M is the number of months. Assumes R > O.
When is owning cloud infrastructure cheaper?
When the monthly cost of owning is less than the monthly rental cost, which occurs after the breakeven point if R > O.
When is renting cloud infrastructure cheaper?
When the expected duration of use is below the breakeven point.
Why do startups frequently use public clouds?
They can access large computing and storage resources without making a large upfront investment in infrastructure.
Is writing 1 GB to S3 as one million small objects approximately the same cost as writing one large 1 GB object?
False. The large number of individual write requests increases the cost.
How can you reduce the cost of writing many small objects to S3?
Batch multiple small writes into fewer larger writes.
What is likely the largest infrastructure cost of a high-throughput replicated service across three AZs?
Cross-AZ network traffic caused by replicating data between replicas.
How can you reduce application-level replication costs?
Use S3's built-in fault tolerance instead of implementing replication at the application level.
Cloud Economics
The cost of computing, storage, and network communication influences how distributed systems are designed.