Skip to content

Serialization beyond JSON #187

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

Closed
akucherenko opened this issue Aug 29, 2017 · 0 comments · Fixed by #188
Closed

Serialization beyond JSON #187

akucherenko opened this issue Aug 29, 2017 · 0 comments · Fixed by #188

Comments

@akucherenko
Copy link
Contributor

Current implementation of RdKafka transport supports a single way to serialize/unserialize payloads, that is either json_encode of PsrMessage RdKafkaProducer.php or json_decode and further PsrMessage population RdKafkaConsumer.php. In this case, consumer and producer are only mutually compatible and consuming messages of different format is hardly possible. E.g. no chance to plug into an Avro-encoded stream.

An option here might be making serializer configurable. Or provide abstraction around transforming payload into an object. Maybe there are unrecognized reasons behind current implementation. Anyway, I'd like to discuss that and provide help if needed.

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

Successfully merging a pull request may close this issue.

2 participants