DEV Community

Cover image for I built the performance engineering resource I wished existed - full stack, real code, 6 levels, no fluff
Abdelhalim Yahya
Abdelhalim Yahya

Posted on

I built the performance engineering resource I wished existed - full stack, real code, 6 levels, no fluff

alright let me be real with you for a second

i've been building production systems for a few years now, mostly backend with node and nestjs, react and next on top, and the one thing that always drove me absolutely crazy was how performance content online just doesn't respect your time

you google "how to optimize react rendering" and you get a medium article with 47 claps that shows you useMemo on a counter app

you google "how to optimize node performance" and you get a 2019 blog post that tells you to use async await

neither of them has real numbers, neither of them shows you how to actually FIND the problem before you start fixing things, and absolutely none of them connect the frontend and backend story together

so i spent the last few months building it myself

what i built

it's called frontend-backend-performance-mastery and it's structured across 6 levels, each level has a frontend folder (react, next.js, typescript) and a backend folder (node, express, nestjs), and every single folder follows the exact same 3-file structure

detect.md — how to find the problem, what to look for, what tools to use, before you even open devtools

fix.md — the actual fix, with a before and after, when to apply it, and just as important when NOT to apply it

project/ — a fully runnable code example, npm install and npm run dev and you're looking at real numbers on your screen, not a screenshot from someone's laptop from 2021

the 6 levels

level 01 — fundamentals: web vitals, profiling, baselines, benchmarking with clinic.js and autocannon
level 02 — rendering: ssr vs csr vs ssg, react fiber internals, hydration, response streaming, fast-json-stringify
level 03 — caching: react query, swr, service workers, redis, cache-aside pattern, cdn and http headers
level 04 — database and api: n+1 queries, cursor pagination that stays fast at 10 million rows, dataloader, query optimization, indexes
level 05 — advanced: wasm in next.js, worker threads, piscina, bull queue, grpc, node streams, code splitting that actually reduces bundle size
level 06 — production: opentelemetry, prometheus, grafana dashboards, lighthouse ci in github actions, real user monitoring, distributed tracing

the philosophy behind it

one rule i followed building every single example:

never fix what you haven't measured, never measure what you can't reproduce

every fix in this repo comes with actual benchmark output, actual lighthouse scores, actual bundle sizes before and after — not "trust me bro this is faster"

no pseudo code anywhere, if i wrote a typescript snippet it compiles, if i wrote a bash command it works, if i wrote a sql query it executes

who this is for

if you're a junior dev this might be a stretch, it's not a beginner resource and i'm not gonna pretend it is

if you're mid level and you want to actually understand what's happening under the hood instead of just copy pasting stack overflow fixes, this is for you

if you're senior and you want a structured reference or something to point your team at, this is also for you

the stack

react 18, next.js 14 app router, typescript 5, node 20, nestjs 10, postgresql, redis, opentelemetry, prometheus, grafana, clinic.js, autocannon, piscina, dataloader, bull, workbox — all the real stuff

it's fully open source and free, no newsletter signup no course upsell no "buy the premium version", just the repo

if you've been grinding to level up your perf engineering skills i genuinely hope this helps

https://github.com/AbdelhalimYahya/FulllStack-Performance-Mastery

Top comments (3)

Collapse
 
topstar_ai profile image
Luis Cruz

I appreciate how you've structured the frontend-backend-performance-mastery resource across 6 levels, each with a clear focus on detecting and fixing performance issues. The emphasis on measuring and reproducing issues before applying fixes is particularly valuable, and I like how you've included actual benchmark output and lighthouse scores to demonstrate the impact of each optimization. The use of tools like clinic.js and autocannon for benchmarking and profiling is also a great touch. Have you considered adding a level on optimizing performance for serverless or edge computing scenarios, where the performance characteristics can be quite different from traditional server-based applications?

Collapse
 
abdelhalim9 profile image
Abdelhalim Yahya

Thanks a ton that means a lot coming from someone who actually went through the whole thing lol You're right about serverless edge it's a totally different performance model.

No persistent event loop cold starts eating your p99 different caching rules since you can't just keep stuff in memory between requests.

I've had it in the back of my mind but hearing someone else bring it up unprompted tells me it's worth prioritizing.

Gonna open an issue for level 07 this week probably cover Lambda cold starts, edge runtime limitations, and how caching strategy changes when you don't control the server lifecycle. If you got specific pain points from working with that stuff I'd genuinely love to hear them before I start writing it

Some comments may only be visible to logged-in visitors. Sign in to view all comments.