BookmarkSubscribeRSS Feed

Using SAS ESP with data source Kafka

Started ‎03-25-2026 by
Modified ‎03-25-2026 by
Views 267

Apache Kafka is an open-source, distributed event streaming platform used by most of the organizations for high-performance data pipelines, streaming analytics, and data integration. Kafka can process data streams as they occur and store them in a fault-tolerant storage. When Kafka is paired with SAS Event Stream Processing (ESP), it creates a powerhouse for real-time decision-making. The SAS ESP includes a Kafka connector for streaming data to and from Kafka. The SAS ESP Kafka connector communicates with a Kafka broker for publish and subscribe operations.

 

This post covers the essential steps for integrating SAS Event Stream Processing (ESP) with Apache Kafka, focusing on the connector configurations required for seamless data flow.

 

Prerequisites:

Before configuring and using SAS Event Stream Processing (ESP) with Kafka, ensure the following requirements are met.

 

  • SAS ESP running on the SAS Viya platform within a Kubernetes environment.
  • The Kafka instance is Ver 0.9 and above.

 

The Kafka Connector is built directly into the SAS ESP engine. It is the go-to choice for high-performance, low-latency requirements where the connection is managed as part of the project model.

 

To connect to Kafka, you need the Kafka broker information, including the hostname and port number.

 

The following pics describe a Kafka instance and its Broker information.

 

utkuma_11693_1SASESP_With_DataSource_Kafka_1.png

 

The subscriber connector of a source window in a SAS ESP project facilitates data transmission to Kafka storage. To establish a connection with the Kafka instance, the following parameters are required for the subscriber connector settings page.

 

  • Kafka Host/Port : The hostname and port of the Kafka broker.
  • Kafka Topic : A logical folder used to store streaming event data.
  • Kafka Type : The data format (Binary, CSV, JSON, Protobuf, or Avro) or the specific string/blob field name within the subscribed window schema.
  • URL Host/Port : The host and port fields found within the metadata topic subscribed to at startup.

 

Example :

Kafkahostport : kafka-broker-1.kafka.svc.cluster.local:28092

Kafkatopic : sasesm

KafkaType : csv

Urlhostport : unused:33333

 

The following images illustrate the configuration of the subscriber connector in a source window linked to a Kafka instance.

 

utkuma_11693_2_SASESP_With_DataSource_Kafka_2.png

 When a SAS ESP project is executed, where the source window is configured with both an input data connector and a Kafka subscriber connector, it automatically streams and writes data to the designated Kafka topics

 

The following images illustrate the active SAS ESP project, featuring a source window configured with both an input data connector and a Kafka subscriber connector.

 

utkuma_11693_3_SASESP_With_DataSource_Kafka_3.png

  

The screenshots below illustrate the specific Kafka topics used as storage targets for the streaming data generated by the SAS ESP project.

 

utkuma_11693_4_SASESP_With_DataSource_Kafka_4.png

 

Similarly, the publisher connector of the source window in a SAS ESP project facilitates data transmission from the Kafka storage to the ESP source window. The Publisher connector enables the ESP source window to ingest events from the source environment.

 

The following images illustrate the configuration of the publisher connector in a source window linked to a Kafka instance.

 

utkuma_11693_5_SASESP_With_DataSource_Kafka_5.png

 

The following images illustrate the active SAS ESP project, featuring a source window configured with an input data connector (publisher) to Kafka.

 

utkuma_11693_6_SASESP_With_DataSource_Kafka_6.png

 

 

Important Links: Using the Kafka Connector and Adapter    

Contributors
Version history
Last update:
‎03-25-2026 05:11 PM
Updated by:

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags