Skip to content

feat: deserialise messenger on_commit actions using RawValues#129

Draft
gk-kindred wants to merge 1 commit intomasterfrom
feature/messenger-deserialise-using-rawvalues
Draft

feat: deserialise messenger on_commit actions using RawValues#129
gk-kindred wants to merge 1 commit intomasterfrom
feature/messenger-deserialise-using-rawvalues

Conversation

@gk-kindred
Copy link
Copy Markdown
Collaborator

  • serde_json::Value is very resource intensive. On a high load, lot of CPU is spend on deserialising the payload and the memory gets bloated. This has a direct impact on the overall throughput and latency messenger can achieve.

  • Messenger only needs partially deserialisation at various points before the messages are finally send out by the kafka producer thread.

  • Therefore using serde_json::RawValues is more efficient on the memory and CPU and thereby has significant boost in performance on high load.

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.

1 participant