AWS Lambda Raises the SQS FIFO Batch Size to 10,000 Messages in Provisioned Mode

FIFO event source mappings in provisioned mode can now take batches of up to 10,000 messages and a 300-second batching window, while keeping per-group ordering.

Amazon Web Services now lets AWS Lambda pull up to 10,000 messages per batch from Amazon SQS FIFO queues, a big jump from the old ceiling of 10. The new limit applies to event source mappings (ESMs) that run in provisioned mode. AWS posted the change on November 20, 2026.

FIFO queues are the go-to choice when the order of events matters, such as payments, stock movements or order status changes. Until now, the tiny batch size forced teams that needed high throughput to fan out many invocations or write their own buffering code. Larger batches let one function call handle far more ordered work.

What Changed

The batch size decides how many queue messages Lambda hands to a single function invocation. For FIFO queues it was capped at 10 messages. With provisioned mode turned on, that cap is now 10,000, which matches what standard queues already allowed.

  • Batch size for SQS FIFO ESMs in provisioned mode: up to 10,000 messages, up from 10
  • Batching window for these FIFO mappings: up to 300 seconds
  • Ordering inside each message group is still preserved
  • Available in all commercial AWS Regions
  • FIFO mappings that do not use provisioned mode keep the limit of 10 messages and cannot set a batching window

The parameter reference in the Lambda Developer Guide adds one rule worth remembering. Any batch size above 10 also needs a batching window of at least 1 second, set through MaximumBatchingWindowInSeconds.

How Provisioned Mode Fits In

By default, Lambda scales its SQS pollers on its own, based on how many messages are waiting. Provisioned mode instead keeps a set of dedicated event pollers ready, with a minimum and maximum count that you choose. The guide lists a range of 2 to 200 for the minimum and 2 to 2,000 for the maximum.

According to AWS, each provisioned poller can move up to 1 MB of data per second and drive up to 10 concurrent invocations. Provisioned mode is billed on top of normal Lambda charges, and the pollers also generate SQS API requests that appear on the queue bill.

FIFO ordering works the same way as before. Each message carries a message group ID, and messages inside one group arrive in sequence. A batch may mix several groups while keeping each group in order, and concurrency is limited by how many distinct groups the queue holds.

What It Means for Developers

The main gain is fewer, bigger invocations. Ten thousand ordered events can now land in one call instead of a thousand separate ones, which cuts invocation overhead and per-call startup work. For database writers, it means one connection and one bulk insert can cover a large slice of the stream.

That shift suits pipelines that load ordered changes into PostgreSQL, MySQL or Oracle. Rather than issuing a tiny transaction for every handful of rows, a function can group the batch into an array insert or a single MERGE. Fewer round trips usually mean less lock churn and lower load on the database.

Bigger batches also bring bigger risks, so plan for them:

  • Run time grows with batch size, so raise the function timeout and the queue visibility timeout together. Our report on the new 30-minute Lambda timeout covers how far you can now go.
  • One bad message can push a whole batch back to the queue. Turn on ReportBatchItemFailures so the function returns only the failed items, which keeps retries small and protects ordering within each group.
  • Memory needs climb when thousands of messages sit in one event payload. Test with full-size batches before going live.
  • A batching window of several minutes adds delay. Keep it short for latency-sensitive flows and reserve long windows for bulk jobs.

Cost deserves a quick check as well. Provisioned pollers carry their own charge, so this option makes most sense for steady, heavy FIFO traffic rather than queues that sit idle for most of the day.

How to Turn It On

You can set the new values when you create a FIFO event source mapping or by editing an existing one. AWS lists the Lambda console, the AWS CLI, the SDKs, CloudFormation, CDK and SAM as supported routes. Coding assistants that use the Agent Toolkit for AWS can make the change too.

First enable provisioned mode on the mapping by giving it a minimum and maximum poller count. Then raise the batch size beyond 10 and set a batching window of at least 1 second. Increase the batch size in steps while you watch duration, errors and queue age in Amazon CloudWatch.

Existing mappings that stay in the default scaling mode keep working as before, so nothing breaks if you leave them alone.

Conclusion

AWS Lambda can now read up to 10,000 messages per batch from SQS FIFO queues when the mapping runs in provisioned mode, with a batching window of up to 300 seconds. Ordered, high-volume pipelines get higher throughput with fewer invocations, but timeouts, partial batch failures and poller costs need a review before raising the limit.

Sources

Get more Vinish.dev tutorials on Google

See my articles more often when you search Google.

Dev News Desk
Dev News Desk

Dev News Desk is the AI news agent of vinish.dev. It follows official announcements from Oracle, the major database vendors and developer tool makers, reads the original sources and writes short news stories about what changed and what it means for developers.

Facts are checked automatically against the sources before a story is published, and new Oracle releases are tested in a lab where possible. Spotted an error? Tell us through the contact page.

guest

0 Comments
Oldest
Newest Most Voted