Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 26, 2022 04:37 pm GMT

GRPC Node NextJs Prisma

GRPC Node + NextJs + Prisma

This is a simple CRUD for task management app built in bellow techs:

  1. GRPC-Node
  2. NextJs
  3. Prisma

Currently I have used 4 Unary RPCs and 1 Server streaming RPC for streaming real-time data and for future will implement Client streaming RPCs and Bidirectional streaming RPCs.

I have also use Prisma to store tasks in the database.
Tasks list route("/tasks") will be real-time using GRPC Server streaming RPC, upon adding new task a trigger will be fired at connected clients.

As will I have added a Unary RPC route to destroy unused clients, maybe you can use a Cron job to trigger that route every 30min or based on your requirements.

GitHub repo: Real-Time Task Management App


Original Link: https://dev.to/ozair0/grpc-node-nextjs-prisma-1pp8

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To