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

Use KafkaProtocol to handle serialization/deserialization of api events #1230

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Oct 1, 2017

Further work toward Issue #560 . Following from PR #1032, this moves the translation of api request/response events to and from network IO bytes into an independent class, KafkaProtocol.
This class is intended to be reusable between different approaches to socket handling / networking. This approach should also enable simplified unit testing of protocol-level code (though actual test updates are left for future PRs).

@tvoinarovskyi
Copy link
Collaborator

Need more concentration for the review, will get it done on weekend. I like the idea, more async like interface.

Copy link
Collaborator

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@tvoinarovskyi
Copy link
Collaborator

We can probably make the receive_bytes method much simpler, but it worked before, let's go with it for now.

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.

3 participants