This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-06
Channels
- # adventofcode (181)
- # aws (6)
- # beginners (112)
- # boot (38)
- # cider (11)
- # cljs-dev (12)
- # cljsrn (2)
- # clojure (187)
- # clojure-greece (31)
- # clojure-italy (19)
- # clojure-new-zealand (1)
- # clojure-poland (1)
- # clojure-spec (20)
- # clojure-uk (114)
- # clojurescript (97)
- # core-logic (25)
- # cursive (3)
- # data-science (17)
- # datascript (3)
- # datomic (23)
- # defnpodcast (1)
- # duct (5)
- # emacs (3)
- # fulcro (299)
- # graphql (108)
- # jobs (1)
- # juxt (4)
- # lein-figwheel (7)
- # leiningen (1)
- # lumo (9)
- # nrepl (2)
- # off-topic (10)
- # om (2)
- # onyx (36)
- # pedestal (1)
- # perun (3)
- # re-frame (14)
- # reagent (12)
- # ring (2)
- # rum (11)
- # shadow-cljs (6)
- # spacemacs (4)
- # unrepl (8)
@ggaillard How about https://github.com/mcohen01/amazonica#sns ? You could create a topic and subscribe to it in each instance. You can include “publisher” in the message attributes so you can make the publisher ignore messages from itself. If you just need pub/sub and you’re on AWS, I recommend SNS because it’s completely managed.
I didn't knew sns supported this use case ! Thank you 🙂
@valtteri, Im using amazonica
and i suspect that theres a shared/cached AWS*Client, so all my threads are using the same client … not sure if there is an option to turn it off … ill try using the interop with java and create the client myself
@plins I’m sorry I don’t know Amazonica internals well enough to help you. Maybe someone else here knows if there’s a nice way to instantiate more clients?
the reason I suspect this is on the docs
Note: The first function called (for each distinct AWS service namespace, e.g. amazonica.aws.ec2) creates an Amazon*Client, which is effectively cached via memoization. Therefore, if you explicitly pass different credentials maps to different functions, you will effectively have different Clients.