Skip to content

Handle PutLogEvents request size limits #2

Description

@mihilmy

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions