~/

tag

#engineering

Showing 2 of 2posts

#0014 min read

Component-Level Error Handling in Next.js App Router with ErrorBoundary

error.tsx handles route-level failures, but a single misbehaving widget shouldn't take down the whole page. Here's a reusable ErrorBoundary pattern for Server Components, paired with Suspense, that gives you per-widget fallback UI and access to the real error object.

  • #nextjs
  • #react
  • #error handling
  • #frontend
  • #engineering
#0022 min read

Why a Smaller Connection Pool Makes Your Database Faster

More database connections doesn't mean more throughput. Here's the math behind why a pool of 10-20 connections often outperforms one with hundreds, and the formula to size yours correctly.

  • #database
  • #performance
  • #postgresql
  • #backend
  • #engineering