Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publishing pojo as avro #383

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

publishing pojo as avro #383

wants to merge 1 commit into from

Conversation

adyach
Copy link
Contributor

@adyach adyach commented Dec 20, 2022

With this commit it is easy to use Avro as never

  1. update library dependencies
  2. in Nakadi client builder provide Avro serializer:
final NakadiClient client = NakadiClient.newBuilder()
                         ... 
                         .serializationSupport(AvroSerializationSupport.newInstance()) 
                         .build(); 

the pojo business / data change events will be serialized to Avro.

* with this commit it is easy to use Avro as never
1. update library dependencies
2. in Nakadi client builder provide Avro serializer:
    final NakadiClient client = NakadiClient.newBuilder()
        ...
        .serializationSupport(AvroSerializationSupport.newInstance())
        .build();
the pojo business / data change events will be serialized to Avro.
@adyach adyach mentioned this pull request Dec 20, 2022
Copy link

@muhammad-hamed muhammad-hamed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor change.

}

@Test
public void testToBytes() throws IOException {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testToBytes method is duplicated here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants