Skip to content

Why do we even need tRPC? #56

Answered by iamtouha
molti-tasking asked this question in Q&A
Discussion options

You must be logged in to vote

Glad you found the boilerplate useful!

I agree with you that drizzle already provides TS support for db queries and we could leverage server components and actions to build a complete app. But what I learned from my experience is that server actions are very hard to manage for medium to large scale apps. Then there's also issue with authenticated requests, role based access, cache control, handling errors properly etc.

For an in-depth explanation, you can watch this video https://youtu.be/hp-z01yAaRU?si=n3ApmF3hwwg8Bx96 by Josh tried coding.

N.B.: we've excluded tRPC from authentication flow so developers can remove trpc easily from the project if they want.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fe-franco
Comment options

Answer selected by iamtouha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants