Fork me on GitHub

Hi guys, I am trying to setup a subscription in Lacinia. The original docs & test at weren't fully clear and I have found but still see the tests and examples a bit far from a real implementation (probably due my short experience with Lacinia). So, I wonder if there is any real example somewhere on how to drive the data through the streamer after a mutation to a subscription somewhere. The other question is, does it worth to adopt Pedestal just for the matter?


The subscription support inside lacinia is there to provide a general framework for the implementation, which comes in lacinia-pedestal. I don't know enough about the other HTTP stacks to know if they can support web sockets in a way that makes sense for subscriptions.


I made an implementation using Kafka as source, it's in a private repo, but shared some snippets before as somebody has the same question. It's a simple bank simulation, with several subscriptions, like keeping track of changes to your account. Maybe I should ask to open source it + create a blog post.


In my case when data came in from Kafka it would check if there where subscriptions active which needed the event.


it isn't much code at all to use lacinia to drive subscriptions over some other transport, I've been using them to control subscriptions over a socket (which is some elaborate protocol that does detection and fallback between websockets and long polling)


but I had to read through lacinia-pedestal a bit and ask some questions here to get it working