Este conteúdo não está disponível no idioma selecionado.
Chapter 9. Validating schemas with Service Registry
You can use Red Hat Service Registry with AMQ Streams.
Service Registry is a datastore for sharing standard event schemas and API designs across API and event-driven architectures. You can use Service Registry to decouple the structure of your data from your client applications, and to share and manage your data types and API descriptions at runtime using a REST interface.
Service Registry stores schemas used to serialize and deserialize messages, which can then be referenced from your client applications to ensure that the messages that they send and receive are compatible with those schemas. Service Registry provides Kafka client serializers/deserializers for Kafka producer and consumer applications. Kafka producer applications use serializers to encode messages that conform to specific event schemas. Kafka consumer applications use deserializers, which validate that the messages have been serialized using the correct schema, based on a specific schema ID.
You can enable your applications to use a schema from the registry. This ensures consistent schema usage and helps to prevent data errors at runtime.
Additional resources
- Service Registry documentation
- Service Registry is built on the Apicurio Registry open source community project available on GitHub: Apicurio/apicurio-registry