Interface IConfluentSchemaRegistryBuilder
Fluent builder interface for configuring Confluent Schema Registry integration.
public interface IConfluentSchemaRegistryBuilder : ISchemaRegistryConnectionBuilder, ISchemaRegistryConfigBuilder, ISchemaRegistryCacheBuilder
- Inherited Members
- Extension Methods
Examples
services.AddKafkaTransport("events", kafka =>
{
kafka.BootstrapServers("localhost:9092")
.UseConfluentSchemaRegistry(registry =>
{
registry.SchemaRegistryUrl("http://localhost:8081")
.SubjectNameStrategy(SubjectNameStrategy.TopicNameStrategy)
.CompatibilityMode(CompatibilityMode.Backward)
.AutoRegisterSchemas(true)
.CacheSchemas(true)
.CacheCapacity(1000)
.RequestTimeout(TimeSpan.FromSeconds(30))
.BasicAuth("user", "password");
})
.MapTopic<OrderCreated>("orders-topic");
});
Remarks
This interface follows the Microsoft-style fluent builder pattern. It provides a discoverable API for configuring Schema Registry options.
All methods return this for method chaining, enabling a fluent configuration experience.