Back to Course
Printable Cheat Sheet
ToolMate Technical Interview Revision Deck • Frontend System DesignUpdated 2026
Frontend System Design & Architecture Cheat Sheet
High-scale frontend scalability, caching tiers, state distribution & resilience frameworks.
Top Interview Golden Rules & Senior Principles
- RADIO Framework: Requirements (Functional/Non-functional) -> Architecture -> Data Model -> Interface (API/Components) -> Optimizations.
- Non-functional priorities: Performance (Core Web Vitals), Availability/Offline, Security (XSS/CSRF/CSP), Accessibility (WCAG 2.1 AA), Scalability.
- Network Caching tiers: CDN Edge Cache (Cloudflare/CloudFront) -> HTTP Browser Cache (Cache-Control: immutable) -> Service Worker -> Memory (React Query / SWR / Zustand).
- List Virtualization (Windowing) is non-negotiable for feeds with >100 items to avoid DOM explosion and garbage collection lag.
- State segmentation: Separate Server State (cached, asynchronous) from Global UI State (theme, sidebar, modal) and Local Ephemeral State.
Performance & Core Web Vitals Targets
Largest Contentful Paint (LCP)
Target: ≤ 2.5 seconds (Good)
Measures main visual content load speed. Optimize hero image priority (fetchpriority='high'), preload fonts, remove render-blocking CSS.
Interaction to Next Paint (INP)
Target: ≤ 200 milliseconds (Good)
Replaced FID. Measures total interaction latency. Yield main thread using scheduler.yield() or requestIdleCallback.
Cumulative Layout Shift (CLS)
Target: ≤ 0.1 (Good)
Visual stability. Always reserve aspect-ratio dimensions on images/video/ads before resources load.
Data Synchronization Patterns
Optimistic UI Updates
Apply UI change -> Fire API -> Rollback if rejection
Delivers 0ms perceived response time on actions like 'Like', 'Bookmark', or 'Send Message'.
Polling vs WebSockets vs SSE
HTTP Short/Long Poll vs WS (Duplex) vs Server-Sent Events (Uni-directional)
Use SSE for live dashboards, stock tickers, or AI streaming. Use WebSockets for two-way collaboration and chat.
ToolMate Interview Prep • https://interview.toolmate.co.in • Free for personal study & interview preparation