Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

If you are interested in publishing messages to the UH Message Broker, here's what you need to do:

  1. Contact its-iam-help@lists.hawaii.edu to request access to the UH Message Broker:
    • Messages are published into an exchange.  You need to provide a name for the exchange where your messages will be published.  The name must end with -exchange or -pii-exchange (if sensitive information is published). e.g.
      • student-status-exchange
    • You can have one or more exchanges under a 'vhost'.  If you plan to have many exchanges that fall under the umbrella of a more generic concept, you can provide that as your vhost, e.g.
      • banner (as the vhost which contains the exchanges below)
        • student-status-exchange
        • student-pii-exchange
        • faculty-status-exchange
        • faculty-pii-exchange
    • Provide a desired username for the UH Message Broker account that will have full access to your exchange. This should be something related to your application, not your personal username, and it is often the same as the vhost, e.g.
      • banner
    • Of course, you should define the format of the messages you'll be publishing into your exchanges and make it available to applications interested in consuming your messages.
    • It is probably in your best interest to exercise tight control over the queues that applications will declare in order to consume messages from your exchange(s).  This ensures that the applications are using the correct settings, will not lose messages if not properly defined, etc.   We suggest the following:
      • Applications should not freely create queues.  You should declare the accounts, queue and bindings (more on this later) for each application.  You can request by emailing its-iam-help@lists.hawaii.edu the following info:
        • Provide us with the name of your vhost
        • Provide us with the name of your exchange
        • Provide a username for the application, e.g.
          • portal
        • By default, we will create a queue by appending .prod (or .test) to the username, e.g.
          • portal.prod
        • If you took the default of setting up a topic exchange, provide us with the bindings for that application's queue.  These are the patterns for the message routing keys corresponding to the messages that the application is interested in, e.g.
          • # (application is interested in all your messages)
          • registration.# (application only wants registration messages)
          • #.MAN.# (application wants all messages but only for UH Manoa)
    • Since there will be no real consumers when you start developing, we will provide you with a default test queue that your publisher can consume its own messages from.  Otherwise nothing will happen.  Your queue will typically be the username your provided followed by .test, e.g.
      • student-status-exchange will have a queue called banner.test
    • See Producer Code Example
  • No labels