Articles

Tech Articles

In-depth articles on AI, web development, cloud native, and indie hacking.

@admin·11 min read·Web Development

Next.js Server Actions, In Depth

Server Actions let you write server-side functions directly in components and call them from the frontend like async functions, without API routes. Learn how they work, what 'use server' means, progressive-enhancement form patterns, revalidation, security boundaries, and when to use Route Handlers.

#Next.js #React♥ 1000 comments
@admin·11 min read·Cloud Native

PostgreSQL Table Partitioning in Practice

Are queries and maintenance slowing down on a table with hundreds of millions of rows? Partitioning splits it into smaller pieces, scans only relevant partitions, and removes old data quickly. This guide covers RANGE, LIST, and HASH partitioning, setup and maintenance, partition pruning, and when to partition by time or category.

#DevOps♥ 1010 comments
@admin·12 min read·Web Development

Web Push Notifications: From Subscription to Delivery

Want to send push notifications to web users without an app? The Web Push API, Service Workers, and push services make it possible. This article explains the full flow (subscription → server push → SW display), VAPID keys, notification permissions and UX, and support in iOS Safari 16.4+.

#React #TypeScript♥ 1020 comments
@admin·11 min read·Cloud Native

SLOs and Error Budgets: Data-Driven Reliability

"99.9% availability" is not a slogan. SLOs and error budgets should drive engineering decisions. This article explains the relationship between SLIs, SLOs, and SLAs, how to calculate and use error budgets, and how to manage reliability with data rather than intuition.

#DevOps♥ 1030 comments
@admin·11 min read·Web Development

Edge Computing and CDNs: Moving Compute Closer to Users

Users in Asia, servers in the US, and 300 ms of latency? CDNs cache static assets, while Edge Functions run logic at the edge so requests are handled nearby. This article explains CDN caching, Edge Functions (Cloudflare Workers/Vercel Edge), when to move logic from the origin to the edge, and the limits of doing so.

#Next.js #DevOps♥ 1040 comments
@admin·9 min read·Web Development

ORM vs Query Builder vs Raw SQL: How to Choose

ORMs are convenient but may generate bad SQL; raw SQL is flexible but boilerplate-heavy. This article objectively compares the philosophies and fit of Prisma/Drizzle/Kysely/raw SQL: type safety, migrations, N+1, performance, and learning curve, with an opinionated "which project should use which" conclusion.

#TypeScript #DevOps♥ 1050 comments