In OCS.io, a Publish-Subscribe is a messaging pattern where messages are sent to a topic or channel (called Pub-Sub Endpoint), and subscribers receive a copy of each message sent to that topic. In other words, it is a way of broadcasting messages to multiple subscribers who are interested in receiving the messages without the sender needing to know who the subscribers are.

When configuring a Pub-Sub endpoint in OCS.io, you first need to specify the topic or channel to which messages will be published. This can be a topic in a streaming platform such as Apache Kafka or Amazon Kinesis, or a custom topic provided by an external system.

Once the Pub-Sub endpoint is configured, OCS.io can publish notifications to the topic whenever an event occurs that triggers the notification. Subscribers to the topic can then receive the notification and take appropriate action based on the contents of the message.

Pub-Sub endpoints are often used in OCS.io for real-time event processing, such as sending notifications when usage exceeds a certain threshold or when a payment is received. By publishing these events to a Pub-Sub endpoint, external systems can subscribe to the topic and take immediate action based on the event data.

To configure Pub-Sub Endpoints, follow these steps:

  1. Access the Integration Configuration perspective in your system’s user interface.

  2. Select the Platform  Pub-Sub Endpoints.

  3. Click on the + (New) button to create a new Pub-Sub endpoint.

  4. Fill in the required information in the form:

Item Description

Name

Enter the name of the Pub-Sub Endpoint.

Description

Optionally, enter the description of the Pub-Sub Endpoint.

Code

Enter the code of the Pub-Sub Endpoint. This code is used for integrating purposes and may not be changed later.

Configure Pub-Sub Endpoint

Pub-Sub endpoints are used for integrating with external systems or services that support publish-subscribe messaging patterns. By configuring a Pub-Sub endpoint, you can establish a connection to the external system and exchange messages in a decoupled manner.