copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2025-04-25 |
event-notifications, event notifications, about event notifications, destinations, Event Streams, event streams |
event-notifications |
{{site.data.keyword.attribute-definition-list}}
{: #en-destinations-event-streams}
{{site.data.keyword.messagehub}} is a message bus that is built by using Apache Kafka. It has high throughput and is optimized for event ingestion into {{site.data.keyword.cloud_notm}} and event stream distribution between your services and applications. In Event Streams, applications can send data by creating messages and sending to a topic. To receive messages, the application subscribes to a topic and can choose to receive all the messages of the topic or share the messages between them. {: shortdesc}
{{site.data.keyword.messagehub}} represents a service destination. Since {{site.data.keyword.messagehub}} is a Kafka managed service, incoming notifications cannot be stored and consumed programmatically because Kafka does not store the data once it has been read.
{: #en-event-streams-prerequisites}
-
Make sure that an {{site.data.keyword.messagehub}} instance is created and configured.
-
To create and configure an {{site.data.keyword.en_short}} instance, see Getting started with {{site.data.keyword.en_short}}
{: #en-destinations-event-streams-configure}
If you are using {{site.data.keyword.en_short}} CLI or API to configure an {{site.data.keyword.messagehub}} service instance as a destination, ensure that you have enabled authorization to grant access between services before integrating with {{site.data.keyword.messagehub}}. For more information, see Using authorizations to grant access between services. {: important}
To configure an {{site.data.keyword.messagehub}} destination, complete the following steps:
-
Navigate to https://cloud.ibm.com , click the Menu icon
> Resource List > Developer Tools > Your Event Notifications instance.
-
From your {{site.data.keyword.en_short}} instance dashboard, click Destinations.
-
Click Add + to add a new destination.
-
Provide the name, description (optional) and select the destination type as {{site.data.keyword.messagehub}} and the account where the {{site.data.keyword.messagehub}} instance is located.
If the {{site.data.keyword.messagehub}} instance is located in the same account as your {{site.data.keyword.en_short}} instance:
- Select the name of the {{site.data.keyword.messagehub}} instance to send notifications to.
- Once the instance is selected, the Endpoint field will be filled automatically by pulling it from the selected instance.
- Select the Topic to send/receive messages from. To select the topic, see Topic.
If the {{site.data.keyword.messagehub}} instance is located in a different account, provide the following details:
- Enter the {{site.data.keyword.messagehub}} CRN . For more information, see CRN.
- Enter the {{site.data.keyword.messagehub}} endpoint URL. For more information, see Endpoint url.
- Select the topic to send/receive messages from. To select the topic, see Topic.
-
Click Add.
{: #en-event-streams-details}
-
Login to your {{site.data.keyword.cloud_notm}} account.
-
Navigate to Resource List in the menu.
-
Navigate to Integration in the Resource list.
-
Click the {{site.data.keyword.messagehub}} name that displays your {{site.data.keyword.messagehub}} console.
-
From the {{site.data.keyword.messagehub}} console:
{: #en-crn}
Copy the CRN, that is used in the destination creation process. Use this copied CRN in the destination creation screen.
{: #en-event-streams-endpoint-url}
Copy the HTTP API endpoint that needs to be used in the destination creation process. Use this copied endpoint in the destination creation screen.
{: #en-topic}
Navigate to Topics in the menu. You will find the list of available topics. Select the topic that you want to send messages to or receive messages from. Copy the Topic Name that needs to be used in the destination creation process. Use this copied name in the destination creation screen.
{: #en-using-s2s-console-event-streams}
An authorization is required to grant one service access to another service.You must grant Event Notifications the appropriate IAM service-to-service access so that it can publish messages to Event Streams.
To learn the process to create an authorization between {{site.data.keyword.en_short}} and {{site.data.keyword.messagehub}}, refer Authorization between services.