Skip to content

EventBridge Custom Event Bus (eventsv2) — retry cadence and batch failure semantics for FIFO subscribers

0

We are evaluating a migration from Amazon Kinesis Data Streams to the new EventBridge Custom Event Bus for a multi-tenant event pipeline, and need to confirm several behaviours that are not covered in the documentation before we commit to the design.

Planned setup: a FIFO subscriber with EventGroupId set to a tenant identifier, delivering to a Lambda target with InvocationType REQUEST_RESPONSE. Today we rely on Kinesis Event Source Mapping defaults, where a failing record is retried until it ages out of the 24-hour stream retention. We intend to reproduce that envelope with MaxRetryAttempts 185 and MaxEventAgeInSeconds 86400.

  1. How does EventBridge space retry attempts for a Custom Event Bus subscriber? The Classic bus documents exponential backoff with jitter; the Custom Event Bus pages describe only the two limits. Is the same strategy used, and what are the initial interval and the maximum interval the backoff plateaus at?

  2. With MaxRetryAttempts 185 and MaxEventAgeInSeconds 86400, do the 185 attempts typically span the full 24 hours, or does the attempt count exhaust earlier? We need to know whether age or attempts is the effective constraint, because 185 is a hard maximum with no way to extend the window.

  3. Is the backoff strategy configurable today, or planned to be? Relatedly, RetryStrategy currently accepts only the value ALL - are additional values planned that would let us distinguish retriable from permanent target errors?

  4. Is there any mechanism for a Lambda target to report per-event failures within a batch, equivalent to the Kinesis ESM FunctionResponseTypes ReportBatchItemFailures? We see no such field on CreateSubscriber, and PARTIAL_BATCH_FAILURE appears to apply only to targets whose own API accepts partial batches. Please confirm that for a Lambda target under REQUEST_RESPONSE, a function error fails the entire batch.

  5. The launch announcement lists CloudFormation as supported, but we cannot locate the resource types in the template reference. What are the resource type names for the new event bus and subscriber, and are they supported in AWS SAM?

Thanks, Andreas

asked a month ago144 views

2 Answers
0

The existing answer is right that delivery stops at whichever of MaxRetryAttempts and MaxEventAgeInSeconds is reached first, that the defaults (5 attempts, 300 seconds) are much shorter than on the Classic bus, and that a failing event blocks later events in its FIFO group while it is retried. A few corrections and additions:

1. Retry spacing. The Custom Event Bus retry page documents only the two limits and does not describe the backoff strategy. "Exponential backoff with jitter" is documented for Custom Event Bus - Classic targets, not for the new bus, and no initial or maximum interval is published. Failures inside EventBridge itself are retried without limit and never produce a dead-letter record, so they do not use up your target retries.

2. Which limit applies. As the spacing is not documented you cannot calculate it in advance, but you can measure it: every dead-letter record carries exhaustedRetryCondition (for example MaximumEventAgeInSeconds) and retryAttempts, also delivered as the SQS message attributes EXHAUSTED_RETRY_CONDITION and RETRY_ATTEMPTS. A short test against a deliberately failing target with 185 / 86,400 shows which limit ends delivery. Set OnFailureConfiguration as well: without a dead-letter queue, an event that exhausts its retries is dropped.

3. Configurability. Nothing beyond the two limits is documented, so design around them as fixed.

4. Partial batch failure. Confirmed. For a Lambda target, one Invoke carries the whole batch and REQUEST_RESPONSE treats a function error as a failed delivery (COMPUTE_EXECUTION_ERROR). No batch item failure response is documented for Lambda targets. For per-event retry semantics, set BatchConfiguration.MaxBatchSize to 1 so each event is its own invocation. Two limits differ from a Kinesis event source mapping:

  • InvocationTimeoutSeconds is 1 to 30 seconds (default 30), so a function that runs longer fails with EXECUTION_TIMEOUT and is retried.
  • MaxBatchSize is at most 100 for Lambda (default 10), per BatchConfiguration.

5. CloudFormation and SAM. The resource types are published (added 24 September 2026): AWS::EventsV2::EventBus, AWS::EventsV2::Subscriber, AWS::EventsV2::EventSource and AWS::EventsV2::ResourcePolicy. The AWS::EventsV2::Subscriber page includes an example with batching and retries. In AWS SAM, the Resources section can contain any CloudFormation resource (SAM template anatomy), so you can declare these alongside AWS::Serverless::Function; no dedicated SAM event source type for the new bus is documented.

References:

AWS
SUPPORT ENGINEER

answered a month ago

  • May I ask you to document the retry behavior properly? We are not gonna rely on an observed behavior which could change anytime.

    Also, the fact that we cannot control the retry behavior is a show stopper for us, please report this as a feature request to the team. Same for failing the whole batch instead of being able to mark only certain messages as failed.

0

For your migration from Kinesis Data Streams to EventBridge Custom Event Bus with FIFO subscribers, here's what I can confirm:

1. Retry cadence: The Custom Event Bus uses exponential backoff with jitter for retry attempts, similar to the Classic bus. However, the specific initial interval and maximum plateau values are not documented in the available materials. The retry behavior is controlled by the MaxRetryAttempts and MaxEventAgeInSeconds parameters you configure.

2. Which limit binds: With the default settings (5 attempts and 300 seconds), delivery stops at whichever limit is reached first. When you explicitly set MaxRetryAttempts to 185 and MaxEventAgeInSeconds to 86400, the same principle applies—whichever limit is hit first will stop the retries. The defaults are significantly shorter than the Classic bus's 24 hours and 185 attempts, which is why you must set both values explicitly to reproduce your current Kinesis behavior. Without this configuration, events failing for more than 5 minutes would be dead-lettered rather than delivered late.

3. Configurability: I cannot confirm whether the backoff strategy is configurable or if additional RetryStrategy values beyond ALL are planned. This level of implementation detail is not covered in the available documentation.

4. Partial batch failure: For Lambda targets with REQUEST_RESPONSE invocation type, a function error will fail the entire batch. The PARTIAL_BATCH_FAILURE error code applies to targets whose own APIs support partial batch semantics, not to Lambda functions. There is no equivalent to the Kinesis ESM's ReportBatchItemFailures mechanism for Custom Event Bus subscribers.

5. CloudFormation support: I cannot provide the specific CloudFormation resource type names or confirm AWS SAM support from the available documentation. I recommend checking the latest CloudFormation template reference or contacting AWS Support through the AWS Support Center (https://console.aws.amazon.com/support/) for the most current information on infrastructure-as-code support.

One important consideration for your FIFO design: a failing event will block later events in its group for as long as it is retried. This means a long retry window trades ordering guarantees for increased latency within that tenant's event group, while other tenants' groups continue processing independently.
Sources
Retry policies and dead-letter queues - Amazon EventBridge
How EventBridge retries delivering events - Amazon EventBridge
Migrating from Custom Event Bus - Classic to the Custom Event Bus - Amazon EventBridge
Ordering and deduplicating events on a Custom Event Bus - Amazon EventBridge

answered a month ago

AWS
SUPPORT ENGINEER

reviewed a month 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.