For more than a decade, we developed software with an almost automatic assumption in mind: memory is cheap and abundant.
If an application consumed too much RAM, the answer was almost never to sit down and truly optimize it. We simply scaled: more RAM for the instance, a bigger machine, or a few extra replicas. Deep optimization became almost optional, a luxury for perfectionists.
That world is coming to an end quickly.
The artificial intelligence boom has altered infrastructure rules in a deep, structural way. And it’s bringing back something that sat in the background for years: real software efficiency.
The AI Boom and the New Memory Shortage
It all starts in the hardware supply chain.
Major players—Samsung, SK hynix, Micron—have shifted an increasing share of their production toward HBM (High Bandwidth Memory), the ultra-fast memory GPUs need to train and run inference on large-scale AI models.
The direct result: fewer wafers available for conventional DRAM, the kind we use in servers and almost everything else.
From 2025 heading into 2026, we have witnessed a brutal supply shock:
- Quarterly price hikes for server DRAM that, at times, have hovered around 50–90%.
- On an annual basis, many enterprise contracts have experienced increases exceeding 100–170%.
- In practice, the effective cost of memory has doubled or tripled compared to early 2025 in quite a few cases.
For the first time in a long time, memory is once again a resource that hurts on the invoice.
The Indirect Cloud Bill Handed Down by AI
The blow isn’t limited to physical hardware.
Runaway demand for AI infrastructure is squeezing several bottlenecks at once:
- manufacturing capacity,
- power consumption,
- GPU availability,
- data center floor space.
Major cloud providers (AWS, Google Cloud, Azure) are starting to pass some of that pressure onto their pricing.
GPU instances were already expensive on their own, but now the effect is trickling into general compute. We have already seen:
- direct price hikes on GPU capacity blocks (around 15% in certain ML services),
- adjustments across related services,
- and above all, a clear pause (or even reversal) in the historic trend of cloud prices dropping year after year.
For a long time, we took it for granted that infrastructure would become cheaper almost by magic over time. That certainty is no longer so solid.
When Saving Memory Stops Being a “Micro-Optimization”
When every extra gigabyte directly impacts the P&L (Profit and Loss), optimizing memory shifts from a nice-to-have detail to a decision that moves real numbers.
A very concrete example: databases in web applications where reads dominate the workload.
Connection model differences that actually matter now
- MySQL (with its thread-per-connection model) typically hovers around ~256 KB per idle connection.
- PostgreSQL, because it spawns an independent process per connection, incurs a much higher baseline overhead. In real-world environments, depending on configuration and workload, seeing several megabytes per connection is standard.
That extra consumption comes from things like work_mem, backend buffers, the process stack, loaded libraries, etc.
When you handle hundreds or thousands of concurrent connections, the difference compounds fast.
That’s why in high-traffic systems, we almost always end up placing a pooler in front (such as PgBouncer or PgCat) to drastically reduce the number of active physical processes.
It’s not about arguing that one database is “better” than another in the abstract. The point is that architectural decisions now carry a much more visible and direct financial cost.
Practical Strategies for 2026: Stretching What We Have
If infrastructure costs are climbing again, low-consumption architectures regain their full value.
1. Tools and Languages That Are Lean by Design
Choosing options with a low idle footprint matters once again:
- Efficient, compiled languages like Go or Rust
- Services with minimal runtimes
- Embedded databases like SQLite when the scenario permits
SQLite in production can be an excellent choice if:
- the workload is read-heavy,
- concurrent writes are low or well-orchestrated,
- and you value operational simplicity above all else.
In those cases, you eliminate the entire overhead of running a dedicated database server.
2. FinOps as True Engineering
When commodity hardware increases in price, FinOps ceases to be mere “expense tracking” and becomes a core technical discipline.
The focus shifts toward continuous, proactive optimization:
- rigorous instance right-sizing,
- hunting down zombie resources,
- in-depth waste analysis across containers, serverless, and beyond.
Tools like CloudZero, nOps, Cast AI, or built-in cloud recommendations go a long way in automating this and keeping up the pace.
3. Minimalist Container Images and Clean Runtimes
Trimming image sizes isn’t just about “faster deployment times.” It also cuts runtime consumption and simplifies maintenance.
Using base images like Alpine, distroless, or directly scratch, combined with multi-stage builds and aggressive layer cleanup, lets you:
- strip out unnecessary dependencies,
- shrink the attack surface,
- and keep environments far more predictable and lightweight.
Wrapping Up
For years, writing efficient software was practically a matter of style: something cool, nice to highlight on a resume, but rarely mandatory.
The cycle we are experiencing—driven by AI at an unprecedented scale—is upending that completely.
Infrastructure is no longer “getting cheaper by default.”
Memory is no longer overflowing.
And every architectural decision we make now carries a financial impact we can no longer afford to ignore.
In this context, the team or engineer who knows how to do a lot with a little doesn’t just survive: they become genuinely valuable again—structurally valuable.
Efficiency stops being a “nice-to-have” and turns back into a hard competitive advantage.
After a decade of assuming near-infinite resources, we’re returning to a world where knowing how to optimize properly is, literally, a way to make money.
And while that might sound harsh at first, it’s also a massive opportunity for those of us who enjoy solving real engineering problems.
What are your thoughts? Are you already noticing the impact on your bills or projects? I’d love to hear your experiences in the comments.