Skip to main content
Alvin QuachFull Stack Developer
HomeProjectsExperienceBlog
HomeProjectsExperienceBlog
alvinquach

Full Stack Developer building systems that respect complexity.

Open to opportunities

AQ

Projects

  • All Projects
  • Hoparc Physical Therapy
  • OpportunIQ
  • Hoop Almanac
  • SculptQL

Knowledge

  • Blog
  • Experience
  • Interview Prep

Connect

  • Contact
  • LinkedIn
  • GitHub
  • X

Resources

  • Resume
© 2026All rights reserved.
Back to Blog
February 28, 2026 1 min read

Server Actions vs REST: A Decision Framework for Next.js

Decision
Depth: ●●○○○
Share:

Server actions for auth'd mutations, route handlers for webhooks/payments/binary/cron. The decision framework I use across projects.

The Rule

Authenticated React component doing mutation/query → server action. External service, unauthenticated user, cron trigger, or binary/streaming response → route handler.

Six Cases for Route Handlers

1. Unauthenticated endpoints (guest forms). 2. Payment processing with idempotency keys. 3. Webhooks needing raw body for HMAC. 4. Binary responses (PDF, CSV). 5. File uploads (multipart). 6. Cron/iCal/health.

Related Projects

T Creative StudioOpportunIQ

Share

Share:

Explore more

ProjectsExperienceRequest a call

Importance

★★★★☆