Course contentsShow
← System Design
Lesson 1544 of 1,91938. Real-World System: PastebinFree lesson

Non-Functional Requirements

High availability, low latency reads, durability, and handling write-heavy workloads efficiently.

Non-Functional Requirements for Pastebin

You'll learn: what quality and performance guarantees Pastebin must provide beyond storing and retrieving text.

The Quality Attributes That Matter

While functional requirements told us what Pastebin does (store text snippets), non-functional requirements define how well it does it. For Pastebin, four qualities dominate the design:

High Availability

Users expect Pastebin to be accessible 24/7. Even if a server fails, the service should continue working. Think of it like a library with multiple branches—if one closes, you can still access books elsewhere. Target: 99.9% uptime or higher.

Low Latency Reads

When someone clicks a paste link, they expect instant access. Read operations must complete in milliseconds (typically <100ms). Since Pastebin is read-heavy (more people view pastes than create them), optimizing read speed is critical. This drives decisions about caching, CDN usage, and database indexing.

Durability

Once you save a paste, it must persist reliably until expiration. Losing user data destroys trust. Like banks keeping multiple copies of your transaction records, Pastebin needs replication and backups. Target: 99.999% durability (five nines).

Efficient Write Handling

Though reads dominate, Pastebin still handles millions of paste creations daily. The system must accept writes quickly without blocking users or overwhelming databases. This influences choices about async processing, write buffering, and database sharding strategies.

The Tradeoff Balance

Notice the tension: high availability suggests replication (adds complexity), low latency favors caching (adds staleness risk), and durability demands synchronous writes (slows creation). System design is about balancing these competing needs based on priorities.

Key Takeaway: Non-functional requirements for Pastebin—high availability, low read latency, durability, and efficient write handling—directly shape architectural choices around caching, replication, database selection, and deployment strategy.