Kafka BridgeBeta
Kafka Bridge is a Cloud Kafka component that provides a REST API for sending messages to topics and reading messages from topics over HTTP.
-
Enable Kafka Bridge in one of the following ways:
- when creating a service instance, at the Parameters step in the additional components section;
- when scaling an existing instance horizontally.
-
Configure Kafka Bridge access to the topics you want to use for sending and reading messages. On the instance Settings tab, click ••• in each parameter row and select Edit. Set the following values:
-
Topics available through Kafka Bridge: specify a topic or a comma-separated list of topics that the component can access, without spaces. The list is empty by default; -
Allowed topic operations through Kafka Bridge: select the operations that the component can perform on the listed topics:All: read and write;Read: read only;Write: write only (default).
The procedure for changing these parameters is described in Editing service configuration.
-
-
Go to your VK Cloud account.
-
Go to Data Platform → Service instances.
-
Click the service instance name.
-
On the General information tab, copy the connection string:
- Kafka Bridge connection string — to connect from outside the VK Data Platform cluster;
- Kafka Bridge connection string (internal) — to connect from within the VK Data Platform cluster.
-
Open a terminal and set an environment variable to the Kafka Bridge address:
Linux/macOSWindowsexport BRIDGE_URL="<KAFKA_BRIDGE_ADDRESS>"Here,
<KAFKA_BRIDGE_ADDRESS>is the entire copied connection string, including the protocol and port. -
Check whether Kafka Bridge is running by sending a request to its address at the
/healthypath:Linux/macOSWindowscurl -i "${BRIDGE_URL}/healthy"A
200 OKresponse means that Kafka Bridge is running. -
Check which topics are available through Kafka Bridge:
Linux/macOSWindowscurl -i "${BRIDGE_URL}/topics"A
200 OKresponse with a list of topics, which may be empty, confirms access to the Kafka Bridge REST API.
REST API methods and parameters are described in the official Strimzi Kafka Bridge documentation.