Skip to content

Conversation

stevevls
Copy link
Contributor

@stevevls stevevls commented Aug 5, 2020

Proposed changes

I was looking at the docs on the site, and I found the language on batch limits confusing since, by definition, the batch is a single call. This is my attempt to clarify, but I will happily accept other suggestions. 😄

Merge timing

No rush.

Related issues (optional)

n/a

@@ -33,7 +33,7 @@ There is no hard rate limit at which point Segment will drop your data. We ask t

## Max Request Size

There is a maximum of `32KB` per call (our `batch` endpoint accepts a maximum of `500KB` per batch and `32KB` per call). Server-side, Segment's API will respond with `400 Bad Request` if these limits are exceeded.
There is a maximum of `32KB` per call (our `batch` endpoint accepts a maximum of `500KB` per batch and `32KB` per contained event). Server-side, Segment's API will respond with `400 Bad Request` if these limits are exceeded.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the first call to event too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could. The first "per call" didn't bother me since the title is "max request size". Maybe "per request" would be even better? I'm thinking we should also change "per batch" to get consistency with the unit. Maybe something like:

There is a maximum of 32KB per request. The one exception is our batch endpoint which accepts a maximum of 500KB per request with a limit of 32KB per event in the batch. Server-side, Segment's API will respond with 400 Bad Request if these limits are exceeded.

Could probably be made more concise. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the proposed new wording with request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🇮🇹

…x.md

Co-authored-by: LRubin <sanscontext@users.noreply.github.com>
Copy link
Contributor

@sanscontext sanscontext left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚢

@stevevls stevevls merged commit db1de4d into master Aug 5, 2020
@stevevls stevevls deleted the svls/clarification-to-max-request-size branch August 5, 2020 23:19
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.

4 participants