We "optimized" frontend, forgot about backend
Why frontend rewrites like PWA Studio and Headless cannot fix Core Web Vitals when backend N+1 queries and uncached TTFB are left unaddressed.

So many agencies think fixing the frontend stack will automatically let them pass Core Web Vitals. Some even went full throttle on the idea that PWA Studio and Headless would fix all our problems a few years ago.
Instead, they moved all N+1 issues from the backend into the frontend via GraphQL queries. I got a lot of weird looks when I told people back then that it wouldn't work, but the promise that this new shiny thing would fix the issue was too tempting to pass.
The pivot towards PWA was one of the biggest mistakes, which luckily was reversed by Hyvä, and I hope we will not make the same mistake again. But now it's time to address the actual elephant in the room.
Developers don't measure while building.
Many developers today don't use profilers to see what's happening underneath all those abstractions they use daily. Everyone trusts that developers who wrote those abstractions years ago optimized them to the maximum, and they are perfect.
But let me tell you, Magento core developers, years ago, also were under tight deadlines and probably did not measure their code performance either. Because of that for most merchants and agencies I work with, I have to remove N+1 issues in the core modules a lot with my preloader customizations to reduce overhead.
Everyone should use profilers to learn how their application communicates with external services, databases, cache storage, and file systems. When you have that knowledge, you know what can be improved. Otherwise, you just keep blaming the system for it being slow while no one is going to fix it for you except you.
The fast frontend impossible with the slow backend
When you measure your core web vitals, you need to keep things in perspective. Sometimes, your LCP and FCP frontend effort might be useless unless you fix your backend TTFB. Here is an example from one of the merchants I pulled up in NewRelic to overlay TTFB with FCP and LCP metrics, as I always do. And surprise, the TTFB on the backend was killing all those efforts to optimize the frontend. Correlation TTFB vs FCP

Correlation TTFB vs LCP
Caching won't save your slow backend
That's one of the most prevalent sentiments in the development team. If it is slow - we just cache it, store it in elastic search, and use a new shiny SaaS service. Basically, teams will use any other possible solution instead of fixing a bottleneck itself. In 99.9% of cases I fix, everything is just an N+1 query or a slow, un-batched API call repeated multiple times. 0.01% of fixes I do require finding more involved solutions, like in my talk "200 Domains on a Single Magento Instance with a $300 Hosting Bill". Most of the work I do involves fixing simple issues and actually removing caching introduced by other developers, as it only increases infrastructure costs and runtime, compared to just writing better code implementation.
We work in systems with very volatile entities, as prices and inventory change thousands of times during sale periods, leading to constant cache invalidation, which makes your website unstable if you rely on cache to hide your actual performance bottlenecks. FPC and other forms of caching should be a cherry on top instead of the main optimization technique. Your backend should be fast enough when your cache storage is cold, and Magento is capable of that with minor tweaks.
The caching sentiment in the community is one of the main reasons I organize performance training to teach people to do 99.9% percent of my work so I can increase 0.1% share of the customer work I do.
This approach is one of the main drivers and philosophies I use in developing my own product (which will replace ElasticSearch in Magento for good). I avoid caching if retrieving real-time data can be done much more efficiently. This allowed me to keep the FTS index below 20 MB in total size for 200k SKU and 1000 attributes with 25k unique option values while I delivered the rest of the data from EAV tables within 10 milliseconds at scale.
Magento scales, if you don't mess up.
Another thing I see agencies and merchants do to solve performance is throw more hardware at it.
I recently had the pleasure of reviewing a high-profile Magento implementation that made 3+ million un-cached HTTP requests daily to fulfill less than a thousand orders. The AWS bills were tens of thousands of USD monthly, and of course, the merchant was pissed!
Do you think those 3+ million requests were required to keep the purchase flow working? No, not at all. It resulted from agency developers not thinking about the backend when they were fetching data on the frontend, and the kicker is that it was not the platform's fault.
With the right experience and knowledge, you can process over 50,000 daily orders with less than a 1,000 USD AWS monthly budget and pass Core Web Vitals with flying colors. However, you need to measure what your application is doing and do not expect your hosting provider to solve the problem with hardware or server configuration.
Dealing with a similar bottleneck in production?
Reach out directly to Ivan Chepurnyi for a performance audit, indexer redesign, or second opinion.