Skip to content

Use MessagePack instead of JSON serialization#12

Merged
hgomez merged 1 commit intohgomez:masterfrom
daq-tools:json-to-msgpack
Mar 4, 2021
Merged

Use MessagePack instead of JSON serialization#12
hgomez merged 1 commit intohgomez:masterfrom
daq-tools:json-to-msgpack

Conversation

@amotl
Copy link
Copy Markdown
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