Post

Insta485

Insta485

Insta485

Overview

A distributed social media platform deployed on AWS, featuring infinite scroll, real-time updates, and Nginx load balancing. Built to handle high traffic with horizontal scaling capabilities.

Architecture

System Design

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
                    ┌─────────────┐
                    │   Nginx     │
                    │Load Balancer│
                    └──────┬──────┘
                           │
         ┌─────────────────┼─────────────────┐
         │                 │                 │
    ┌────▼────┐       ┌────▼────┐       ┌────▼────┐
    │ Flask   │       │ Flask   │       │ Flask   │
    │ Server 1│       │ Server 2│       │ Server 3│
    └────┬────┘       └────┬────┘       └────┬────┘
         │                 │                 │
         └─────────────────┼─────────────────┘
                           │
                    ┌──────▼──────┐
                    │  Database   │
                    │   (SQLlite)     │
                    └─────────────┘

Features

  • Infinite Scroll Feed: Seamless content loading with virtualized list rendering
  • Real-time Interactions: Likes, comments, and follow updates without page refresh
  • Image Upload & Processing: S3 integration with automatic thumbnail generation
  • User Authentication: Secure session management with password hashing
  • REST API: Clean separation between frontend and backend
  • Load Balancing: Nginx reverse proxy distributing traffic across instances

Technical Stack

| Component | Technology | |———–|————| | Backend | Python, Flask | | Frontend | React, JavaScript | | Database | PostgreSQL (RDS) | | Storage | AWS S3 | | Load Balancer | Nginx | | Deployment | AWS EC2 | <!–

This post is licensed under CC BY 4.0 by the author.