Kafka binding spec

To setup Kafka binding create a component of type . See this guide on how to create and apply a binding configuration.

Warning

此组件支持 输入和输出 绑定接口。

  • create

When invoking the Kafka binding, its possible to provide an optional partition key by using the metadata section in the request body.

You can run Kafka locally using this Docker image. To run without Docker, see the getting started guide .

  1. -d '{
  2. "data": {
  3. "message": "Hi"
  4. },
  5. "metadata": {
  6. "partitionKey": "key1"
  7. "operation": "create"
  8. }'