An Interest In:
Web News this Week
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
November 26, 2022 04:37 pm GMT
Original Link: https://dev.to/ozair0/grpc-node-nextjs-prisma-1pp8
GRPC Node NextJs Prisma
GRPC Node + NextJs + Prisma
This is a simple CRUD for task management app built in bellow techs:
- GRPC-Node
- NextJs
- 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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To