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

Change samples to use UTF8StringSerializer #92

Open
claudiofahey opened this issue May 24, 2018 · 0 comments
Open

Change samples to use UTF8StringSerializer #92

claudiofahey opened this issue May 24, 2018 · 0 comments

Comments

@claudiofahey
Copy link

claudiofahey commented May 24, 2018

Currently, events that consist of strings are serialized in Pravega using JavaSerializer. This is not ideal because 1) it is difficult to use in non-Java environments, 2) it adds unnecessary framing, and 3) it uses inefficient UTF-16 encoding.

A new commit has been added to Pravega to provide a UTF-8 serializer (pravega/pravega@78c5ade)

All samples that currently use JavaSerializer should be converted to use UTF8StringSerializer to demonstrate this best practice. Note that this is a breaking change as JavaSerializer is a different encoding than UTF-8.

For more information on why UTF-8 is preferred over UTF-16: http://utf8everywhere.org/

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

No branches or pull requests

1 participant