7.4. 使用 Kafka 使用者客户端的 schema
此流程描述了如何配置使用 Java 编写的 Kafka 使用者客户端,以使用 Apicurio Registry 中的 schema。
前提条件
- 已安装 Apicurio Registry
- 模式使用 Apicurio Registry 注册
流程
使用 Apicurio Registry 的 URL 配置客户端。例如:
String registryUrl = "https://registry.example.com/apis/registry/v2"; Properties props = new Properties(); props.putIfAbsent(SerdeConfig.REGISTRY_URL, registryUrl);
String registryUrl = "https://registry.example.com/apis/registry/v2"; Properties props = new Properties(); props.putIfAbsent(SerdeConfig.REGISTRY_URL, registryUrl);Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用 Apicurio Registry deserializer 配置客户端。例如:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow