Skip to content

Commit 69ccf51

Browse files
authored
Merge pull request #5537 from segmentio/fix-rate-limits
Rate limits cleanup [DOC-742]
2 parents 8da1d5d + b493e05 commit 69ccf51

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/connections/rate-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Events ingested by Segment have a limit of **10,000** properties per individual
99

1010
## Inbound data ingestion API rate limit
1111

12-
Within a ten minute period, if any sources (in aggregate) send more than 12 million events (average of 20,000 events per second) without prior arrangement, Segment reserves the right to queue any additional events and process those at a rate that does not exceed 12 million events in a ten minute period.
12+
If any sources send more than 20,000 events per second without prior arrangement, Segment reserves the right to queue any additional events and process those at a rate that doesn't exceed this limit.
1313

1414
> warning "Engage rate limit"
1515
> Engage has a limit of 1,000 events per second for inbound data. Visit the [Engage Default Limits documentation](/docs/engage/product-limits/) to learn more.

src/connections/sources/catalog/libraries/server/http-api/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Authentication uses HTTP Basic Auth, which involves a `username:password` that i
1616

1717
In practice that means taking a Segment source **Write Key**,`'abc123'`, as the username, adding a colon, and then the password field is left empty. After base64 encoding `'abc123:'` becomes `'YWJjMTIzOg=='`; and this is passed in the authorization header like so: `'Authorization: Basic YWJjMTIzOg=='`.
1818

19-
**Note:** Encoding the write key without a colon may work due to backward compatibility, but this may not always be the case, so it's important to include the colon before encoding.
19+
> info ""
20+
> Include a colon before encoding. While encoding the write key without a colon might work due to backward compatibility, this won't always be the case.
2021
2122
### Content-Type
2223

@@ -35,14 +36,14 @@ Common reasons events are not accepted by Segment include:
3536

3637
Segment welcomes feedback on API responses and error messages. [Reach out to support](https://segment.com/help/contact/){:target="_blank"} with any requests or suggestions you may have.
3738

38-
## Rate Limits
39+
## Rate limits
3940

4041
Segment recommends you to not exceed 20,000 requests per second with the HTTP API. For [`batch` requests](#batch), there's a limit of 500 KB per request.
4142

4243
> warning "Engage rate limit"
43-
> Engage has a limit of 1,000 events per second for inbound data. Visit the [Engage Default Limits documentation](/docs/engage/product-limits/) to learn more.
44+
> Engage has a limit of 1,000 events per second for inbound data. Visit the [Engage Default Limits documentation](/docs/engage/product-limits/) to learn more.
4445
45-
## Max Request Size
46+
## Max request size
4647

4748
There is a maximum of `32KB` per normal API request. The `batch` API endpoint accepts a maximum of `500KB` per request, with a limit of `32KB` per event in the batch. If you are sending data from a server source, Segment's API responds with `400 Bad Request` if these limits are exceeded.
4849

0 commit comments

Comments
 (0)