Tag

#Performance

Every article tagged Performance, in one place.

  • 29 articles
  • 33 min of reading
  • 16 Sep, 2026 last updated

Showing 29 articles

REST & GraphQL APIs 1 min read

API Pagination: Offset vs Cursor-Based

Any list endpoint needs pagination. The two main approaches behave very differently on large or fast-changing data. Offset pagination GET /articles?page=3&per_page=20 SELECT * FROM articles ORDER BY published_at DESC LIMIT 20 OFFSET 40; Pros: simple, lets user...

16 Sep, 2026 Author 1.16K 88
Read article
Docker 1 min read

How to Shrink Docker Images

Smaller images pull faster, start faster, cost less to store and contain fewer packages with vulnerabilities. Going from 1.2 GB to under 200 MB is common. 1. Choose a smaller base image node:22 (Debian full) - large, has build tools. node:22-slim - Debian with...

08 Aug, 2026 Author 417 131
Read article
Modern JavaScript 1 min read

Debounce and Throttle in JavaScript

Some events fire very often: typing, scrolling, resizing. Running expensive work (an API call, a layout calculation) on every event wastes resources and can make the page janky. Debounce: wait until things calm down Run the function only after the events have...

10 May, 2026 Author 1.38K 97
Read article
Node.js 1 min read

Finding Memory Leaks in Node.js

A memory leak shows up as memory that keeps climbing until the process is killed or restarts. The fix starts with proving where the memory goes. 1. Confirm the leak setInterval(() => { const { heapUsed, rss } = process.memoryUsage(); console.log(`heap ${(heapU...

25 Apr, 2026 Author 183 77
Read article