ThanhDev
  • Articles
  • Categories
  • Tags
  • About

ThanhDev

Frontend engineering notes on React, Next.js, TypeScript and software architecture.

  • Articles
  • Categories
  • Tags
  • About
  • GitHub
  • LinkedIn
  • Website
  • Email

© 2026 ThanhDev. Built with Next.js, Prisma and PostgreSQL.

Category

Architecture

Data modelling, system design and the boundaries that keep a codebase workable.

  • Architecture

    Designing a Prisma Schema That Scales

    Relations, indexes and cascade rules are decisions you make once and live with for years. Here is how I approach them.

    • #Prisma
    • #PostgreSQL
    • #TypeScript
    Aug 15, 2026•2 min read•793 views
  • Architecture

    PostgreSQL Indexes Every Developer Should Know

    B-tree, partial, composite and GIN — what each one is for, and how to tell whether the planner is using yours.

    • #PostgreSQL
    • #Performance
  • Architecture

    Frontend Architecture: Layers That Earn Their Keep

    Repositories, services and actions are useful right up to the point where they become ceremony. Where I draw the line.

    • #TypeScript
    • #Prisma
  • Architecture

    Measuring and Fixing Core Web Vitals

    LCP, CLS and INP explained through the fixes that actually move them, not the definitions you can already look up.

    • #Performance
    • #Next.js
Aug 8, 2026
•
2 min read
•914 views
#Next.js
Jul 18, 2026•2 min read•401 views
Jul 4, 2026
•
2 min read
•594 views