xeno
PPrisma
•Created by xeno on 1/9/2025 in #help-and-questions
Tips for using Neon + Pulse + tRPC for real-time updates
I'm on the Pro plan, which guarantees "real-time" updates, Neon setup completed, Prisma client initialized using
withPulse()
and everything looks like it is setup correctly. However, new events from Pulse seem to arrive either very late or not arrive at all, regardless if I'm using stream()
or subscribe()
.
Here's my tRPC router:
And my frontend code:
It seems like subscribe()
doesn't deliver any events, while stream()
delivers them in order, but very very late (can be several minutes after the actual database update).7 replies