Skip to content

Does event bridge have hidden usage limits - not invocation rate limit

1

Hello,

We are using AWS event bridge to receive stripe webhook before relaying them to an api destination. Under load, we can see a lots of of event from the bridge failing to be delivered with the following informations:

  • details.attempt_count: 1
  • details.attempt_type: FIRST
  • details.invocation_status: THROTTLING
  • details.target_duration_ms: 0
  • error.aws_service: AWSEvents
  • error.error_message: Request has been throttled.
  • message_type: INVOCATION_ATTEMPT_THROTTLE

At first, we think that we were reaching the invocation rate limit of 300 per second, but after checking the monitoring dashboard under Amazon EventBridge > Rules > our-application-name-rule we can see:

  • 4452 invocations
  • 3994 failed invocations and more important
  • 0 throttled rules

This numbers are taken for a 10 minutes windows we did a load test on. No throttled rule + arround 8k invocation on a 10 minutes window seems to indicate we are very far from the 300 invocation rate limit per second.

Under load, the route of the api destination called by the event bridge in response to the stripe webhook received take a long time to answer, given this, we tried to completely remove the work done by this route by returning early inside this api route and not doing the compute the work usually done. This resulted in zero error from the event bridge with a target_duration_ms of 0.

It might be important to know the api destination route uses lambda.

This result makes us think that there is a hidden rule which is not the 300 invocations rate limit. Maybe it is a concurrent connection limit? (the connection referred to by this graph https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-target-connection.html). The longer the call to the api destination, the more concurrent connections are open, it might explain why when we early return there is no issue.

I can provide more metrics if you think it could help understand the issue, thank you,

Hugo

asked a year ago298 views

5 Answers
0

Based on your description, you're likely encountering a throttling issue related to API destinations rather than the EventBridge invocation rate limit.

When using API destinations, there are several potential throttling points to consider:

  1. API Destination Connection Limits: EventBridge maintains connections to your API endpoints, and there are limits on concurrent connections. When your API destination (Lambda) takes longer to respond, EventBridge must maintain those connections longer, potentially hitting a connection limit.

  2. Target-specific throttling: When your target is slow to respond (high target_duration_ms), it can cause backpressure in the EventBridge service, leading to throttling even if you're below the invocation rate limit.

  3. Lambda concurrency limits: If your API destination uses Lambda, you might be hitting Lambda's concurrency limits, especially if the function takes longer to execute.

Your observation that the issue disappears when you return quickly from your API endpoint strongly suggests this is related to connection duration rather than pure invocation rate. The error message "Request has been throttled" combined with INVOCATION_ATTEMPT_THROTTLE status indicates EventBridge is throttling the requests, but not necessarily due to the invocation rate limit.

To address this issue, you could:

  • Optimize your Lambda function to respond more quickly
  • Increase Lambda concurrency limits if applicable
  • Consider implementing a queue-based architecture for high-volume processing
  • Request quota increases for EventBridge if needed

The fact that you see 0 throttled rules in the dashboard but still get throttling errors suggests the throttling is happening at the target invocation level rather than at the rule evaluation level.
Sources
Troubleshooting Amazon EventBridge Scheduler - EventBridge Scheduler
Quotas for Amazon EventBridge Scheduler - EventBridge Scheduler

answered a year ago

0

Thanks, could you point toward a documentation referring to API Destination Connection Limits? I was unable to find anything regarding that

answered a year ago

0

Hey,

Hope you're keeping well.

What you’re seeing isn’t a hidden “rule” so much as a downstream throttling behavior from the EventBridge API Destinations service. API Destinations use a connection resource with a maximum concurrent request capacity, and if your target takes too long to respond, those connections stay occupied longer, reducing available slots and causing INVOCATION_ATTEMPT_THROTTLE errors. This is separate from the 300 invocations/sec rule limit and isn’t exposed in the rule metrics.

Thanks and regards,
Taz

answered a year ago

0

Given that your destination is a Lambda function, I'd suggest you set EventBridge to deliver the events to an SQS queue and configure an event source mapping for the Lambda function to have it get invoked in response to events arriving in the queue. https://docs.aws.amazon.com/lambda/latest/dg/services-sqs-configure.html

SQS is able to receive messages at a very high rate. This integration pattern also allows the degree of concurrency to be limited between SQS and the Lambda function. The function can also receive multiple messages as a batch, rather than having to be invoked separately for every event.

Any messages that fail to be processed can also be delivered automatically by SQS to a separate dead-letter queue (DLQ). This allows you to monitor processing failures with events or CloudWatch metric based alarms, and to automate their handling, if you deem that necessary.

EXPERT

answered a year ago

0

Hey,

Hope you're keeping well.

It’s not a hidden limit, but API Destinations enforce connection-level throttling based on the Maximum connections setting in the Connection resource. This defaults to 10 concurrent connections unless you explicitly increase it. If your Lambda behind the API destination takes longer to respond, those connections remain in use longer, reducing available slots and causing INVOCATION_ATTEMPT_THROTTLE errors even if you’re below the 300 invocations/sec rule limit. Check the EventBridge > Connections > your-connection-name settings in the console and raise the maximum connections value to match your expected concurrency, or reduce target latency so connections free up faster.

Thanks and regards,
Taz

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.