Course contentsShow
← System Design
Lesson 1633 of 1,91940. Real-World System: Social Media FeedFree lesson

Non-Functional Requirements: Scale and Performance

Establish latency targets (sub-second feed load), throughput needs (millions of daily active users), and availability goals.

Non-Functional Requirements: Scale and Performance

What You'll Learn

You'll learn how to define concrete latency, throughput, and availability targets for a social media feed system that serves millions of users.

Understanding Scale and Performance Goals

Non-functional requirements answer "how well" your system must perform, not just "what" it does. For a social media feed serving millions of daily active users, you need specific, measurable targets.

Latency Targets: Users expect feed content instantly. A sub-second target (typically 300-500ms) for initial feed load ensures a responsive experience. Think of this as a restaurant promise: "hot food in under 10 minutes or it's free." Your system makes a similar promise to users.

Throughput Needs: With millions of daily active users (DAU), you must handle peak traffic. If 10 million DAU check feeds 20 times daily, that's 200 million requests. Spread unevenly across 24 hours with peak hours hitting 3x average, you need capacity for ~7,000-10,000 requests per second minimum.

Availability Goals: Social feeds are often the primary engagement driver. A "three nines" (99.9%) availability target means maximum 8.76 hours downtime per year, or about 43 minutes per month. For critical social platforms, "four nines" (99.99%) is more appropriate—just 52 minutes of downtime yearly.

These targets drive every architectural decision: cache layers for latency, horizontal scaling for throughput, multi-region deployment for availability. They're not aspirations—they're contracts with your users that shape database choices, replication strategies, and operational practices.

Key Takeaway: Non-functional requirements transform vague goals like "fast and reliable" into concrete, measurable targets (sub-second latency, millions of DAU, 99.9%+ availability) that guide all architectural decisions in your social feed design.