locked
Two way subscription RRS feed

  • Question

  • Can two services subscribe to each other? Is it practical? Deos it make sense?
    Thanks
    kr
    Wednesday, January 21, 2009 8:32 PM

Answers

  • > Can two services subscribe to each other?

    Yes. You have to set up a circular partnership. You can use a manifest to do this.

    > Is it practical? Deos it make sense?

    In most cases No. Subscribing provides one-to-many communication and decoupling, i.e. the publisher doesn't need to know anything about the consumer. Once you have a circular partnership neither applies.

    In most cases you would simply use a scenario where service A subscribe B, but simply sends a request to B to indicate some form of update.

    Andreas
    • Marked as answer by Khalique Thursday, January 22, 2009 2:13 AM
    Thursday, January 22, 2009 12:34 AM

All replies

  • > Can two services subscribe to each other?

    Yes. You have to set up a circular partnership. You can use a manifest to do this.

    > Is it practical? Deos it make sense?

    In most cases No. Subscribing provides one-to-many communication and decoupling, i.e. the publisher doesn't need to know anything about the consumer. Once you have a circular partnership neither applies.

    In most cases you would simply use a scenario where service A subscribe B, but simply sends a request to B to indicate some form of update.

    Andreas
    • Marked as answer by Khalique Thursday, January 22, 2009 2:13 AM
    Thursday, January 22, 2009 12:34 AM
  • How would you suggest creating a Health Monitoring service?  Could/Would it startup and find all service instances and subscribe to them and wait for notifications, basically a mash-up of all the service states and status.  Or somethign else?
    d
    Wednesday, April 8, 2009 9:34 PM