Fork me on GitHub

@ggaillard How about ? 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. 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.


there should be a better way beside creating one credential per thread (or the java approach)