Performance
Everything on CoreConcept tagged with Performance. Explore related tags below.
Related tags
Courses
Orientation to composition, custom hooks, and performance optimization. Course content is still expanding.
From fundamentals to production — caching strategies, eviction policies, invalidation, Redis, CDN caching, and multi-level architectures. Practical patterns and a guided final project you build in your own stack (no bundled starter repo).
Articles
Large Language Model inference is notoriously memory-bandwidth bound. Generating tokens autoregressively requires loading all 70B parameter weights from GPU VRA…
At the heart of every database system lies a Storage Engine that determines how data is written to disk, indexed, and retrieved. Relational databases like Postg…
Rate Limiting is a critical defense mechanism for production APIs, protecting downstream microservices from traffic spikes, denial-of-service (DoS) attacks, and…
Deploying open-weights foundation models (such as DeepSeek-R1, Llama 3, and Qwen 2.5) requires choosing a high-performance Inference Engine. Raw PyTorch models …
Next.js 16 continues the evolution of web application architecture, refining React Server Components (RSC), introducing Partial Prerendering (PPR) into producti…
System design interviews evaluate a candidate's ability to architect scalable, resilient, and cost-effective distributed systems under real-world constraints. S…
In-memory caching is an essential component of high-throughput web architectures, reducing database read load and accelerating API response times. When selectin…
With the release of OpenAI's reasoning model series (such as o3-mini), developers gain direct control over inference-time compute using the reasoning_effort par…
In enterprise AI applications, system instructions, database schemas, codebases, and retrieval contexts are frequently repeated across thousands of API calls. P…
Deploying AI agents inside enterprise monorepos containing millions of lines of code, hundreds of microservices, and gigabytes of build artifacts presents sever…
The same model that answers instantly on a short prompt can crawl once a conversation grows long, and the bill grows with it even though the question did not ge…
Shrinking a model can mean two very different things. Quantization keeps the model architecture mostly the same but stores and computes weights with lower preci…
A model does not see your prompt as words or characters. It sees token ids produced by a tokenizer. That is why a short-looking string can be expensive, a long …
LLM caching sounds simple until the cached answer crosses a tenant boundary, repeats stale product policy, or hides a model regression. The hard part is not sto…
A product manager says PAY-204: next Friday's campaign may double checkout traffic for three hours. The beginner mistake is asking, "How many servers do we need…
A dashboard can look “fast” while users still wait, and a load test can report huge requests-per-second while p99 checkout times explode. Latency is how long on…
You press Enter on https://shop.example/products/42. A moment later, a product page appears. That small action crosses naming, transport security, HTTP, edge in…
Checkout slows while product pages remain healthy. CPU is moderate, but the orders table shows rising lock waits and writes queue behind one hot index. Adding a…
A product page feels instant on the second visit because some layer reused work from the first. The useful beginner question is not “should we add Redis?” but “…
Many developers reach for async/await hoping one method will finish sooner. It does not make a database round-trip or HTTP call execute faster; the external ope…
A Redis GET can be constant-time and still miss its latency target when a large Lua script is ahead of it, the client opens a new TLS connection, or the value t…
A selective lookup that once scanned most of a large table can become an index walk plus a few heap fetches — often the difference between a snappy API and a ti…
Traffic climbs and something saturates — CPU, memory, disk, or connection count. Vertical scaling gives one machine more resources. Horizontal scaling adds mach…
A product page is easy to cache until a price changes: the CDN still has the old response, one app instance has an older in-process value, and Redis has already…
One buggy client can retry a failing endpoint in a tight loop and starve everyone else. Rate limiting protects shared capacity and keeps abuse expensive; a sing…
"The index exists, why is this query still slow?" is one of the most common database escalations — and the answer is almost always sitting in EXPLAIN ANALYZE ou…
A product page's cache key expires at 2:00:00pm. In the same instant, 5,000 concurrent requests check the cache, all get a miss, and all 5,000 independently que…
Next.js 16 introduces powerful performance primitives for modern React applications. With refined React Server Components (RSC) streaming, explicit route-level …
While modern JavaScript JIT engines execute code at high speeds, garbage collection pauses and dynamic typing overhead make JS ill-suited for heavy computationa…
PostgreSQL query optimization requires moving beyond intuition to inspect the actual execution plans generated by the Cost-Based Optimizer (CBO). Slow SQL queri…
High-concurrency microservices demanding sub-millisecond API response times and tens of thousands of requests per second per node require low-overhead runtime e…
Modern web applications must deliver instantaneous visual rendering and smooth, latency-free user interactions. Heavy JavaScript bundle sizes, unoptimized hero …
Building real-time applications — such as crypto market data feeds, multiplayer gaming servers, or live chat applications — requires maintaining hundreds of tho…
Large Language Model (LLM) API calls — such as requesting completions from Google Gemini 1.5 Flash — introduce significant financial costs ($/token) and latency…
Primary relational databases (like PostgreSQL or MySQL) execute disk I/O and query compilation for every read query. As application concurrency grows to thousan…
Command-Line Interface (CLI) developer tools built with interpreted runtimes (like Node.js or Python) suffer from cold-start startup overhead (50ms–200ms node m…
Traditional full-text search engines (like Elasticsearch or Apache Solr) are designed for massive multi-terabyte log analytics and distributed cluster operation…
Traditional application performance monitoring (APM) agents rely on user-space code instrumentation (such as bytecode manipulation in Java or monkey-patching in…
Google officially replaced First Input Delay (FID) with Interaction to Next Paint (INP) as a Core Web Vitals metric. While FID measured only the delay before th…
Database queries executing against multi-million row tables suffer severe latency spikes if the database storage engine must scan every page file on disk sequen…
Establishing a fresh TCP connection to a PostgreSQL database server requires a 3-way TCP handshake, TLS certificate negotiation, process fork (backend process c…
Debugging sub-millisecond tail latency spikes ($p_{99.9}$) in complex Kubernetes microservice architectures using traditional userspace APM agents (like Java/No…
As web applications scale to hundreds of thousands of active users, querying relational databases for every page view creates severe I/O bottlenecks and high da…
As database tables grow to tens of millions of rows, un-optimized PostgreSQL queries cause sudden CPU spikes, connection pool exhaustion, and elevated API tail …
"Optimize LCP" is not one task, because Largest Contentful Paint is not one number you move with one fix — it's the sum of four distinct phases, each with a dif…
A Redis SET key value NX EX 5 lock stops a cache stampede in theory, but two implementation details separate a lock that actually works under concurrent load fr…
Every request into a microservices backend crosses the same narrow point before it reaches any business logic: the API gateway. Under light load, almost any gat…
Want a curated collection instead? Topic hubs group the best content by subject.
Browse Topics