Just ran into <https://hasura.io/event-triggers> o...
# orm-help
j
Just ran into https://hasura.io/event-triggers on ProductHunt. Prisma has subscriptions but as I understand they also have some limitations… are they comparable to this, or are they higher-level than “webhooks on database events”?
I’ve been thinking about the best way to implement event-based functionality and if I could split up the code into discrete chunks that run based on DB events I think that would be quite ideal, but I still haven’t really benchmarked different ways of doing it
d
Hey! I would say that Prisma subscriptions are a super set of this because it works with multiple databases. In terms of limitations, yes there are issues that we are aware of and we will tackle them.. 🙂 If there is an issue already not covered here: https://github.com/prisma/prisma/issues Please feel free to create one.
j
Thanks for the reply
I know you’re biased but I trust your answer: would you see any potential issues of having another service like this running on the same DB as I use Prisma on? Perhaps to work around limitations, or just because for some functionality it would work better as subscriptions
(I can’t see why there would be issues personally)
d
Depends. There might be issues with writes coming outside of Prisma in the sense that Prisma might miss some metrics/events but I don't have a concrete answer yet. I will look for a related issue, gather more information and revert.
j
I’d probably just consume the events and do any further operations with Prisma
d
Yes, that should work. But feel free to reach out to me or create issues when something weird happens. It is an interesting use case 🙂
j
Yeah, it is. Cheers!
👍 1