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

Handle PutLogEvents request size limits #2

Open
mihilmy opened this issue Mar 19, 2021 · 0 comments
Open

Handle PutLogEvents request size limits #2

mihilmy opened this issue Mar 19, 2021 · 0 comments

Comments

@mihilmy
Copy link
Owner

mihilmy commented Mar 19, 2021

CloudWatch has some hard limits for the PutLogEvents API. We need a clever strategy to handle these cases:

  1. At flush time we can send the max of 1MB, the problem is these may be heavy logs so probably the queue may never catch up and we will have latencies to report metrics.
  2. At flush time we partition the requests and begin working on them bit by bit. We need to be careful to handle throttling since there is a TPS limit that we would need to handle.

Option 2 seems way more scalable so I'd recommend going with that approach!

@mihilmy mihilmy changed the title Handle log events >= 1MB or have more than 10,000 events Handle PutLogEvents request size limits Mar 19, 2021
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