Skip to main content
InterSystems Supply Chain Orchestrator 2024.1
AskMe (beta)
Loading icon

Retrieving Kafka Messages from a Production

An InterSystems IRIS interoperability production can be a Kafka Consumer. You have two options: use a built-in business service or build your own business service that uses the Kafka inbound adapter. There is also an API for use outside of a production.

Using the Business Service

InterSystems provides a built-in business operation that can be used to retrieve messages from a Kafka topic without needing to write custom code. To use this business operation:

  1. Add EnsLib.Kafka.ServiceOpens in a new tab to your production. See Adding Business Hosts.

  2. Configure settings of this business host as described in Kafka Settings.

The business service periodically polls the configured Kafka topic for new messages. For each new message, the business service creates a message of type EnsLib.Kafka.MessageOpens in a new tab and populates that with the message contents, and then forwards the message to the configured targets within the production using asynchronous requests.

For details on this message class, see Kafka Message Class.

Using the Adapter

If the built-in Kafka business service does not meet your needs, you can directly use the Kafka inbound adapter as follows:

  1. Create a custom business service class:

See Also

FeedbackOpens in a new tab