项目作者: lelodois

项目描述 :
Parse generic avro serializer
高级语言: Java
项目地址: git://github.com/lelodois/kafka-avro.git
创建时间: 2019-05-20T00:59:04Z
项目社区:https://github.com/lelodois/kafka-avro

开源协议:

下载


kafka avro is project with generic serializer kafka

Apache Avro is a data serialization system. It uses JSON for defining data types/protocols and serializes data in a compact binary format. In the following tutorial, we will configure, build and run an example in which we will send/receive an Avro message to/from Apache Kafka using Apache Avro, Spring Kafka, Spring Boot and Maven.

https://codenotfound.com/spring-kafka-apache-avro-serializer-deserializer-example.html

  1. {
  2. "namespace": "br.com.lelo.avro",
  3. "type": "record",
  4. "name": "User",
  5. "fields": [
  6. {
  7. "name": "name",
  8. "type": "string"
  9. },
  10. {
  11. "name": "favorite_number",
  12. "type": ["int", "null"]
  13. },
  14. {
  15. "name": "favorite_color",
  16. "type": ["string", "null"]
  17. }
  18. ]
  19. }
  • mvn generate-resources to generate User.java