Skip to content

Conversation

@jazware
Copy link
Owner

@jazware jazware commented Sep 22, 2024

Findings in this test conclude that enabling ZSTD compression for clients reduces BW per message by ~31.5% but increases CPU load an incredible amount.

In the below CPU profiles, Jetstream is serving from the playback buffer as fast as it can to a single client.

  • The first profile is without compression, serving at 198k evt/sec
  • The second profile is with compression, serving at ~28k evt/sec

The CPU costs of compression seems too high for now for me to want to support. The bandwidth usage of Jetstream even with hundreds of consumers is still well below 1Gbps for now and running multiple instances makes it relatively easy to scale out Jetstream horizontally for more consumers if needed.

This was a fun experiment though!

chrome_9tkVljW13a
chrome_Iu6H43rclo

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