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 MessagePack instead of JSON serialization #12

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Mar 3, 2021

Dear Henri.

Apparently, the default JSON serialization used under the hood when talking to InfluxDB had many flaws in the past and some of them might even hold true and can't be fixed. I found about about this when reading a bit into influxdata/influxdb-java#671, influxdata/influxdb-java#406, influxdata/influxdb-java#153 (comment) and square/moshi#192.

So, I would suggest to follow @fmachado's recommendation at influxdata/influxdb-java#440 (comment):

tl;dr: If you are using InfluxDB 1.4+, use the ResponseFormat.MessagePack when creating your InfluxDB client.

This patch implements just that.

With kind regards,
Andreas.

Apparently, JSON serialization had many flaws in the past and some of
them might even hold true and can't be fixed.

tldr: If you are using InfluxDB 1.4+, use the ResponseFormat.MessagePack
when creating your InfluxDB client.
@amotl amotl mentioned this pull request Mar 3, 2021
@hgomez hgomez merged commit 5963d93 into hgomez:master Mar 4, 2021
@amotl amotl deleted the json-to-msgpack branch March 4, 2021 18:38
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.

2 participants