Send a message to all application instances


Gwenn Etourneau
 

It depends, but what James suggest is to use an external service for
PUB/SUB.
All your application listen on it and they will get notifify.

On Tue, Jul 21, 2015 at 5:15 AM, Peter Dotchev <dotchev(a)gmail.com> wrote:

Hi James,

But how does this service deliver the messages to all app instances? is it
via HTTP?

Best regards,
Peter D


On Mon, Jul 20, 2015 at 11:11 AM, James Bayer <jbayer(a)pivotal.io> wrote:

a common way is to use a pub/sub pattern with a cf service the app binds
to. the service could be something like rabbitmq or redis that supports the
pub/sub pattern.

On Sun, Jul 19, 2015 at 11:35 PM, Peter Dotchev <dotchev(a)gmail.com>
wrote:

Hello,

I could not find a way to send/broadcast a message to all instances of a
given application in Cloud Foundry.
How can I notify all app instances of certain events?
If I just send a HTTP request, CF router will dispatch it to a single
instance of the app.
What solutions do you use in such cases.

Best regards,
Peter D.


_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


--
Thank you,

James Bayer

_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev

_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Peter Dotchev <dotchev@...>
 

Hi James,

But how does this service deliver the messages to all app instances? is it
via HTTP?

Best regards,
Peter D

On Mon, Jul 20, 2015 at 11:11 AM, James Bayer <jbayer(a)pivotal.io> wrote:

a common way is to use a pub/sub pattern with a cf service the app binds
to. the service could be something like rabbitmq or redis that supports the
pub/sub pattern.

On Sun, Jul 19, 2015 at 11:35 PM, Peter Dotchev <dotchev(a)gmail.com> wrote:

Hello,

I could not find a way to send/broadcast a message to all instances of a
given application in Cloud Foundry.
How can I notify all app instances of certain events?
If I just send a HTTP request, CF router will dispatch it to a single
instance of the app.
What solutions do you use in such cases.

Best regards,
Peter D.


_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


--
Thank you,

James Bayer

_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


James Bayer
 

a common way is to use a pub/sub pattern with a cf service the app binds
to. the service could be something like rabbitmq or redis that supports the
pub/sub pattern.

On Sun, Jul 19, 2015 at 11:35 PM, Peter Dotchev <dotchev(a)gmail.com> wrote:

Hello,

I could not find a way to send/broadcast a message to all instances of a
given application in Cloud Foundry.
How can I notify all app instances of certain events?
If I just send a HTTP request, CF router will dispatch it to a single
instance of the app.
What solutions do you use in such cases.

Best regards,
Peter D.


_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev

--
Thank you,

James Bayer


Peter Dotchev <dotchev@...>
 

Hello,

I could not find a way to send/broadcast a message to all instances of a
given application in Cloud Foundry.
How can I notify all app instances of certain events?
If I just send a HTTP request, CF router will dispatch it to a single
instance of the app.
What solutions do you use in such cases.

Best regards,
Peter D.