Code Monkey home page Code Monkey logo

Comments (10)

adenhertog avatar adenhertog commented on August 16, 2024

from bus.

haayman-imagem avatar haayman-imagem commented on August 16, 2024

Hi Andrew,

The email handler was just an example. But what if I have some heavy load service that I want to have horizontally scaled? I'd like to be able to start up a bunch of handlers that each get assign a message round-robin. Isn't that a valid use case that should be possible?

from bus.

adenhertog avatar adenhertog commented on August 16, 2024

from bus.

haayman-imagem avatar haayman-imagem commented on August 16, 2024

That's just it: each instance gets the message but I'd like only one instance to get the message. I'm afraid I'm only a newby concerning message queueing but I expect that it's possible to configure that a message is sent to a single queue and the first handler pops the message from the queue so the other handlers don't get it.
What I saw was that a message got handled by multiple instances.

More info maybe: I was running the apps on different machines. The 'sending' app was using messageQueue name 'app1' and both receiving apps were using messageQueue name 'app2' (the real names are hidden for privacy reasons). Could this be the reason why both app2 apps were interfering with each other?

from bus.

haayman-imagem avatar haayman-imagem commented on August 16, 2024

btw out of curiosity and highly offtopic: are you Dutch?

from bus.

adenhertog avatar adenhertog commented on August 16, 2024

from bus.

haayman-imagem avatar haayman-imagem commented on August 16, 2024

it's not a problem that two apps share the same queue name? This morning I fixed a bug where app1 and app2 both used the same queue name and although both were connected I got the message there weren't any handlers so the messages got dropped (case 2 in the original post, so that's solved now). So I don't know what happens exactly when 2 apps use the same queueName but it appears that is causing troubles

from bus.

haayman-imagem avatar haayman-imagem commented on August 16, 2024

I'm afraid my code is too complicated atm to serve as an example

from bus.

adenhertog avatar adenhertog commented on August 16, 2024

from bus.

valdestron avatar valdestron commented on August 16, 2024

Yes, each application needs its own dedicated queue. Each instance of an application should share the same queue as it's other instances. I hope I'm understanding your question correctly

On Wed, 7 Oct 2020, 21:07 Arjen Haayman, @.***> wrote: it's not a problem that two apps share the same queue name? This morning I fixed a bug where app1 and app2 both used the same queue name and although both were connected I got the message there weren't any handlers so the messages got dropped (case 2 in the original post, so that's solved now). So I don't know what happens exactly when 2 apps use the same queueName but it appears that is causing troubles — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#92 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOAR7MCK5CGMLZEYNFV46DSJRDWXANCNFSM4SHBU4LA .

What about postgres ? I have the same setup and postgres module is failing to save/retrieve data from the database, always erroring, because of race condition that happens when multiple containers handles messages and tries to save or upsert workflow data.

issue #134

from bus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.