This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-10
Channels
- # 100-days-of-code (2)
- # announcements (2)
- # aws (11)
- # beginners (114)
- # boot (6)
- # calva (11)
- # cider (11)
- # cljdoc (2)
- # cljs-dev (7)
- # clojure (126)
- # clojure-berlin (1)
- # clojure-conj (4)
- # clojure-dev (1)
- # clojure-germany (12)
- # clojure-italy (22)
- # clojure-spec (96)
- # clojure-uk (111)
- # clojurescript (27)
- # core-async (8)
- # cursive (17)
- # datomic (26)
- # devops (5)
- # editors (15)
- # emacs (13)
- # events (1)
- # figwheel-main (27)
- # fulcro (64)
- # hyperfiddle (29)
- # jobs (8)
- # jobs-discuss (7)
- # liberator (4)
- # off-topic (46)
- # om (9)
- # onyx (1)
- # overtone (1)
- # perun (8)
- # re-frame (28)
- # reagent (35)
- # reitit (5)
- # shadow-cljs (96)
- # spacemacs (1)
- # testing (10)
- # timbre (8)
- # tools-deps (63)
- # unrepl (1)
- # yada (10)
I am currently using core async and go-loops to process a queue where a "user" can join the queue, and when I have 10 users in my queue i send an invitation to them and they will respond. I was wondering about an approach in a cluster. Should I rely on something like Kafka or RabbitMq instead? This approach works fine with 1 machine..
Core async is low level (as stated from many different sources) but I need to "know" who is in a channel or not. Right now it's only in-memory on the machine where the jvm runs. I guess it is time to hook up a data-store for this? For the cases where Node A goes down (with xxx users in queue) but I want to be able to get access to them in Node B.
what I've used in the past is a kafka topic where each message has a key that corresponds to a channel
so the kafka / core.async adapter is a simple router
I think manifold can be used to connect network streams to channels in a more elegant way, but I haven't used it in anger
the problem I think you will run in to is, presumably, you want the entire cluster to agree on how users are assigned to groups, and what the membership of each group is. Which implies either some single coordinator or distributed consensus, neither of which I think kafka(rabbitmq definitely doesn't) does.