This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-13
Channels
- # beginners (78)
- # boot (27)
- # cider (13)
- # cljs-dev (41)
- # cljsrn (4)
- # clojure (216)
- # clojure-android (1)
- # clojure-conj (6)
- # clojure-greece (1)
- # clojure-italy (11)
- # clojure-russia (127)
- # clojure-spec (63)
- # clojure-uk (34)
- # clojurescript (68)
- # core-async (5)
- # cursive (5)
- # data-science (1)
- # datomic (4)
- # dirac (11)
- # editors (7)
- # events (1)
- # graphql (12)
- # hoplon (39)
- # jobs (1)
- # liberator (3)
- # lumo (101)
- # off-topic (14)
- # om (3)
- # onyx (3)
- # parinfer (14)
- # re-frame (10)
- # reagent (2)
- # remote-jobs (1)
- # ring-swagger (17)
- # sql (21)
- # untangled (38)
- # vim (3)
- # yada (23)
Looking for feedback on Subscriptions before make a pass at implementing them. https://github.com/walmartlabs/lacinia/issues/78 This will be partly in Lacinia, and completed in lacinia-pedestal.
hlship: > an asynchronous process is started Does this imply a thread will be started to run the call back?
No. The intent is that the subscription is responsible for starting a thread or otherwise obtaining the stream of values, and must invoke the provided callback with each value. I'll update the text to make this more clear. It was just rough notes.
What about flow control/backpressure? How do we know if we have a slow consumer for instance
@stjin: each subscription is a new request, with an open-ended response. The consumer can simply close the HTTP pipe on their end.
In terms of back-pressure, I'm not sure exactly. You can imagine inserting a lossy channel between the subscriptions' event callback and the CSP that does the rendering of each event.
and if you're not using pedestal? what is the lacinia interface for cancelling the subscription?
Lossy is not good imho (sometimes you just cant), there should be a way to signal backpressure upsteam (from your http handler for instance)
The contract for this in lacinia proper is wholly functional; the implementation in lacinia-pedestal will be an interceptor that can be replaced.