Infrastructure

System Architecture

An interactive representation of my full stack production setup. Select any node to explore technical justifications.

DNS & Edge Cache Layer

Edge Network

Cloudflare CDN & Security

How it works:

Global edge network caching static content, mitigating DDoS threats, managing SSL certificate configurations, and executing edge rules.

Why selection:

Maximizes static export capabilities by serving pre-rendered portfolio pages directly from edge locations closest to recruiters, keeping TTFB under 30ms.

Key Configurations:

  • Web Application Firewall (WAF)
  • Anycast Global Routing
  • Brotli Compression Enabled
  • Page Rules Optimization
System Design

Architectural Design

Interactive blueprints of production flows detailing logic execution, caching strategies, and load distribution nodes.

Database Bypass Architecture

Cache-Aside Logic

How in-memory caching layers mitigate disk-bound database queries, ensuring sub-5ms latency for frequent requests.

1.

Client Request

User triggers query for resource.

2.

Cache Check

Express requests the Redis cache using key hashes.

3.

Cache HIT

If record exists, Redis returns payload in <2ms, bypassing DB.

4.

Cache MISS

If empty, Express queries MySQL database directly (~60ms).

5.

Write-back Cache

Express writes database result to Redis with TTL set to 3600s, returning output to client.

Client
1. Query
API Backend
HIT: 2ms
Redis CacheRead Fast
MISS: 80ms
MySQL DBFetch & Cache