arrow_backBACK TO DRILLS
Blue BeltnextjsPREMIUM
Route Handler vs Direct Data Access From a Server Component
A Server Component needs data from the application's own database. One implementation calls the app's own /api/data route handler via fetch; another calls the database client directly inside the Server Component. What is the architectural tradeoff?