Known differences¶
Improvements¶
- Composite GSI keys. A global secondary index can use up to four partition key attributes and four sort key attributes. See Indexes.
Unimplemented¶
-
Global tables with multi-Region strong consistency (MRSC). Deferred to a later version; the development prototype is removed. An
UpdateTablerequest withReplicaUpdates,GlobalTableWitnessUpdatesorMultiRegionConsistency, and aCreateTablerequest with replica or global table settings, return HTTP400,UnsupportedOperationException:Global tables (replicas, witnesses and multi-Region consistency) are not supported by this version of fdyno.DYNODB_REGION,DYNODB_GLOBAL_TABLE_REPLICASandDYNODB_GLOBAL_TABLE_WITNESSare retired and stop startup. A table that an earlier development build made regional stays stored but is not served (global tables). -
Manual stream resharding.
UpdateStreamShardCountwas an fdyno-only action. On an authenticated, authorized request, the endpoint now returns HTTP400,UnknownOperationException:unsupported target UpdateStreamShardCount. Automatic stream splitting still works when enabled.
Behavioral differences¶
- Item size. DynamoDB allows 400 KB. fdyno caps both the logical item
and its stored encoding at 48,000 bytes. A
PutItemthat exceeds the cap returns HTTP400with this DynamoDB-shapedValidationExceptionbody:
{"__type":"com.amazon.coral.validate#ValidationException","message":"Item size has exceeded the maximum allowed size"}
-
Retired attribute-keyed layout (layout 2). fdyno stores each item as one packed value. This is not a DynamoDB API option.
DYNODB_ITEM_LAYOUT=attributefails startup withDYNODB_ITEM_LAYOUT is retired: fdyno stores each item as one packed value; migrate attribute-keyed tables through the API. Unset DYNODB_ITEM_LAYOUT. There is no HTTP error because the process does not serve requests. An older store is also refused at startup, even without this setting. To move its data, migrate to an empty store. -
Unknown commit outcome. When FoundationDB cannot confirm a commit, fdyno retries only a tokened transaction. Every other write returns HTTP
500InternalServerErrorwith the unknown-outcome message, even with time left in its budget. The write applied once or not at all. See fdyno's own retries.
The rest of this page gives DynamoDB request limits and the FoundationDB
transaction boundary.
Unless noted below, exceeding a limit returns ValidationException and
changes nothing.
Index entries and stream records must fit the same transaction. KiB and MiB are binary; FoundationDB limits use exact byte counts.
For every API limit side by side with DynamoDB, and the function that enforces it, see Compared with DynamoDB.
What a client gets at a limit¶
Every refusal below changes nothing, except where the table says the outcome
is unknown, and except a split BatchWriteItem whose earlier chunks already
committed. Every modelled error is HTTP 400, except InternalServerError
(500). The in-flight limit and the
request-body budget write their own 400 ThrottlingException. The body-size
bound writes its own 413, and a body read timeout its own 408
(serviceErrorHTTPStatus).
| HTTP | Error type | Limits that return it | Send again? |
|---|---|---|---|
400 |
Validation |
Every row on this page that says Rejected: item, key, number, expression, batch and transaction counts and sizes, token length, index and tag counts, shard counts, list page sizes. Also a write that does not fit one FoundationDB transaction (errors 2101, 2102, 2103). | Not unchanged. Change the request. |
413 |
Validation |
Request body over 16 MiB, raw or after decompression. A raw body over the limit also closes the connection. | Not unchanged. |
408 |
Request |
The request body did not arrive within 60 s: request body was not received before the read timeout. Another body read failure, such as a connection closed early or broken chunked framing, is 400 Validation (request body could not be read). |
Yes. Nothing from the incomplete body ran. The standard and adaptive SDK retry modes treat 408 as retryable; botocore's legacy mode does not. |
400 |
Serialization |
A malformed gzip or deflate body, or another content coding. |
Not unchanged. |
400 or 431 |
None: a plain-text HTTP reply | Request line or headers over 16 KiB each: 400. Over 68 KiB in total: 431, and the connection closes. |
Not unchanged. |
400 |
Limit |
Re-enabling a stream with eight retired generations kept; a split when eight shard sets are live; more than one GSI create or delete in one Update, or a GSI create or delete while another GSI is CREATING (Subscriber limit exceeded: Only 1 online index can be created or deleted simultaneously per table). |
After the trimmer removes a generation or shard set; one GSI create or delete per request, after the building GSI is ACTIVE. |
400 |
Provisioned |
A key's rate limit; same-item contention: the same-item queue is full, its projected wait leaves no time, or the time budget went to the queue. | Yes, after backoff. Nothing committed. |
400 |
Transaction |
FoundationDB conflicts (error 1020) on the same items used up the time budget, or a conflict reached the reply. In Transact, Transact and Execute this is Transaction with reason Transaction at every action, as in DynamoDB. |
Yes, with backoff. Nothing committed. As with DynamoDB, the AWS SDKs do not retry this error automatically: the client must retry it. |
400 |
Throttling |
FoundationDB throttling or overload (errors 1213, 1051, 1037, 1009, 1007, 1042, 1078, and a time budget spent on them before a commit), with reason Account. DYNODB_ reached, or the request-body budget spent. The body-budget reply also closes the connection. Also a write that changes a GSI while the table's GSIs are more than 5 s behind, a locked database (error 1038), and a table listing while an upgraded store builds its table name set. |
Yes, after backoff. |
500 |
Internal |
An unknown commit outcome, a request that timed out or was canceled before it sent its write, or a server bug. Each has its own message: see Errors. In a split Batch, earlier chunks may have committed. |
See Errors. |
400 |
Expired, Trimmed |
A shard iterator older than DYNODB_ (15 minutes); a stream position below the trim head. |
See when a read fails. |
200 |
None: a partial result | Query, Scan and PartiQL page budgets; a Batch split into chunks (Unprocessed); a Get page. |
Follow the cursor or resend the unprocessed part. |
Errors¶
Every HTTP 500 InternalServerError is one of the causes below, each with
one message. Every other cause that once was a 500 is now a 400 that the
SDKs retry, and nothing of the request was applied.
| Cause | HTTP and error type | Message | Applied? |
|---|---|---|---|
A commit was sent and FoundationDB did not confirm it: the time budget ran out during the commit, the reply was lost (1021, 1039), or the client went away while the commit was in flight. Every write path: single-item writes, Batch (the chunk in flight), Transact, PartiQL, and control-plane operations. |
500 Internal |
The write may or may not have been applied. |
Unknown |
A control-plane read (List, Describe and the other control-plane reads) ran out of its time budget. These reads skip FoundationDB's rate limit. In each fdyno process, at most 32 run at once and at most 500 start per second; a read over either bound waits within its budget. |
400 Throttling, without throttling, as in DynamoDB |
The rate of control plane requests made by this account is too high |
No: a read |
| A control-plane request ran out of its time budget before it sent its commit. | 500 Internal |
The request timed out before its write was sent. |
No |
| The request was canceled (the client went away) before it sent its commit. The client does not see this reply. | 500 Internal |
The request was canceled before its write was sent. |
No |
| A server bug: an error that fdyno does not map, or a response it cannot encode. | 500 Internal |
The error text, or Internal error: the server could not encode the response. |
Not known; report it |
| A data-plane request ran out of its time budget before it sent its commit (FoundationDB backpressure), any other read ran out of its time budget, or any request retried FoundationDB overload errors until its budget ran out. | 400 Throttling |
Foundation |
No |
| The time budget went to the in-process same-item queue. | 400 Provisioned |
DynamoDB's hot-key message | No |
The time budget went to retrying FoundationDB conflicts (1020) on the same items, or a conflict reached the reply on a path that does not retry it. As with DynamoDB, the AWS SDKs do not retry this error automatically: retry it in the client, with backoff. |
400 Transaction |
The request conflicted with concurrent writes and was not applied. |
No |
A locked database (1038: a cluster restore or DR switch). |
400 Throttling |
The database is locked for maintenance; the request was not applied. |
No |
| A table listing on an upgraded store before its table name set is built. | 400 Throttling |
The table name set is being built after an upgrade; the request was not applied. |
No |
The request log marks a reply with the unknown-outcome message as
ambiguous=true. Each row has a test: TestServiceErrorHTTPStatusMatchesDynamoDB
(every row, through the reply writer) and TestAmbiguousCommitHandlersReturnHTTP500
(the unknown outcome on six write handlers, and the time-budget, overload and
conflict rows on a real cluster).
A write can take effect after the client times out or disconnects. For example,
a paused server can resume and finish the write. A client that shuts down its
sending side while requests run gets 499 for each of them, as from Go's
net/http server, and each of those writes may have committed
(client half-close).
As with DynamoDB, treat a missing reply as an unknown outcome. Retry only if it is safe to repeat. Use
a condition expression that stops the same change from applying twice. Or
resend the same transaction with the same ClientRequestToken within its
idempotency window. See which writes are safe to repeat.
How the AWS SDKs retry these errors¶
We sent each reply above to four SDKs with their default retry settings:
aws-sdk-go-v2 (service/dynamodb 1.74.3), aws-sdk-java-v2 2.59.2, boto3 1.44.4
and aws-sdk-js-v3 3.1170.0. The replies were recorded from a real dynodb
while we forced each path, and replayed through a proxy (2026-11-30, main
dbc97cd24). Every SDK makes at most 4 attempts for DynamoDB.
| Reply | Retried by the SDK? | Result |
|---|---|---|
400 Throttling, 400 Provisioned (all causes) |
Yes, in all four, with throttle backoff | After 4 refusals the SDK reports the same code and 400. The 4 attempts took 1.7–5.8 s. |
400 Transaction |
No, in all four | The application gets the error at once, as with DynamoDB. |
500 Internal (all messages) |
Yes, in all four | After 4 refusals the SDK reports Internal and 500, in about 0.2 s. |
503 or 504 from a load balancer in front of fdyno |
Yes, in all four, by status code | The SDKs cannot parse the HTML body, so the error code they report varies. dynodb itself never sends 503 or 504 on the API port. |
The SDKs retry the unknown-outcome 500 on their own. If the first
attempt did commit, the retry applies the write a second time. With the
reply injected once after a committed write, in all four SDKs:
UpdateItemwithADD n :oneapplied twice.PutItemwithattribute_not_exists(pk)returnedConditionalCheckFailedException, although the first put applied.TransactWriteItemsapplied once. Each SDK fills in aClientRequestTokenwhen you give none and sends the same token on its retries, and fdyno replays the first outcome.
This is the same as DynamoDB. A 500 from DynamoDB also means the write may
or may not have applied, the SDKs retry it, and an ADD or a conditional
write can then apply twice or fail its condition. Where a write must not apply
twice, use TransactWriteItems with a ClientRequestToken: a retry with the
same token inside the idempotency window does not apply it again. A condition
on a version attribute also stops a second apply. To read the item before you
retry, turn off the SDK's automatic retries for that call.
KCL 1.14.9 with the DynamoDB Streams Kinesis Adapter 1.6.1 (AWS SDK for
Java 1.x) read every record, in order for each key, with 5% to 10% of its
requests refused by throttles, 500 or 503. KCL processes records at least
once. In 2 of 8 runs, one of them with no faults, a lease expired while its
records were processed, and KCL sent 57 and 2 records again. Lease renewals
through the test proxy were slower than the 4 s failover time that the test
sets. Make your record processor safe to run twice on the same record.
Sources: helpers.go
(writeRequestEntityTooLarge, badRequestContentEncoding),
service.go
(header bound, in-flight admission),
auth.go
(body budget),
txn_ops.go
(mapTxErrorMsg: time budget, contention, FoundationDB throttling and size errors),
hotkey.go (same-item queue)
and the httpd header limit.
Requests¶
See the HTTP limits, request size and timeout limits and expression validation.
| Limit | Value | When exceeded |
|---|---|---|
| Request body | 16 MiB, raw and after decompression; every action, Batch included |
HTTP 413 Validation before it runs. A raw body over the limit also closes the connection. |
| Request content coding | Unencoded, identity, gzip, or deflate |
Malformed gzip or deflate and unsupported content codings return HTTP 400 Serialization. |
| Request line, headers | 16 KiB each | HTTP 400; above 68 KiB, HTTP 431 and the connection closes. |
| Expression string | 4,096 bytes per expression; aliases do not count | Rejected. |
| Request time budget | 30 s by default (DYNODB_, at most 5 min), retries included After a commit attempt: HTTP 500 Internal, and the outcome may be unknown. Nothing committed, data plane: HTTP 400 Provisioned when the budget went to same-item contention, else HTTP 400 Throttling with Foundation (Account). Control plane: HTTP 500 with The request timed out before its write was sent (not applied), or HTTP 400 Throttling when the budget went to FoundationDB overload retries. See Errors. |
|
| FoundationDB read-version wait | Waits up to the request time budget | The request fails at the time budget. fdyno never cancels a read-version request it already sent. |
| Backup and restore time budget | 5 min for Create and Restore, whatever DYNODB_ is; for Restore the request budget covers admission only |
The request fails, as at the request time budget. |
Items and keys¶
| Limit | Value | When exceeded |
|---|---|---|
| Item size | 48,000 bytes by DynamoDB’s size rules, including names and values. The stored encoding must also fit 48,000 bytes. | Validation: Item size has exceeded the maximum allowed size. |
| Partition key value | 2,048 bytes | Rejected. |
| Sort key value | 1,024 bytes | Rejected. |
| Nesting depth | 32 levels | Rejected. |
| Number | 38 significant digits; magnitude from 1E-130 to under 1E+126 |
Rejected, never rounded. Arithmetic that overflows fails. |
| List, map and set elements | No limit below the item size | Accepted. |
| Index key plus table key | 10,000 bytes (FoundationDB key limit) | The write is rejected. A GSI backfill skips the item and counts it in fdyno_. |
See item, key and number validation. Items with many small values, such as empty strings in a list, can exceed the stored limit while fitting the logical limit.
Item size formula¶
Capacity uses the logical size (itemSizeBytes), not the JSON or stored size.
| Part | Bytes |
|---|---|
| Each attribute | UTF-8 name bytes plus the value size |
| String | UTF-8 bytes |
| Binary | Decoded bytes, not base64 |
| Boolean, Null | 1 |
| Number | 1, plus 1 per two digits of the integer part and 1 per two digits of the fraction, each rounded up; plus 1 if negative. Zeros at either end do not count; zeros between digits do. Zero is 1. Examples: 1.5 and -1 are 3 each. |
| String, Number or Binary set | Sum of the elements, no overhead |
| List | 3, plus each element's size plus 1 |
| Map | 3, plus each key's UTF-8 bytes, value size and 1 |
DynamoDB documents the same parts, with the number size given as an
approximation.
A standalone UpdateItem has a second size check. It counts the top-level
attributes it writes (name and finished value), plus 3 for the update. It adds
19 per SET or ADD action (20 through a list index) and 2 per REMOVE or
DELETE action. The total must fit in 400 KiB. Transactional updates, PartiQL UPDATE and other writes apply only the finished-item checks.
Oversized items from older binaries¶
Shrink oversized items before copying them to a fresh store. dynodb migrate
checks both limits before sending each write group.
Queries and batches¶
| Limit | Value | When exceeded |
|---|---|---|
Query and Scan page |
1 MiB of items read, filtered and expired items included; also 100,000 rows | The page ends with Last. A page can be empty and still have one. |
Batch |
100 keys | Rejected. The separate 16 MiB projected-item bound is not reachable under the item cap. |
Batch |
25 writes | Rejected. |
Batch too large for one FoundationDB transaction |
None | Committed in chunks; uncommitted chunks return in Unprocessed. If every chunk is throttled, the request fails with the first chunk's throttle (Provisioned or Throttling). A chunk with an unknown outcome fails the request with Internal. |
Each page of a Query or Scan is a new snapshot. Keep paging until there is
no LastEvaluatedKey.
| Stage, in order | Effect |
|---|---|
| Key range | The range the page reads. |
| Examined items | The page budget applies here: when it runs out, the cursor can be the last item examined. |
| Filter | Can discard every examined item; the reading work is still spent. |
| Projected response | Reduces the response size, not the page work already charged. |
A filter can discard every examined item without saving the work of reading them. A projection reduces response size, not the page work already charged. When the budget stops a page, the cursor can be the last item examined, not the last one returned. Do not stop at an empty page or construct a cursor from a returned item. See the filtered and expired page tests.
For parallel Scan, the page can exceed the limits above. The budget can run
out on a row that belongs to another segment. Then the scan continues until it
finds a row in the requested segment or reaches the end.
This keeps the continuation key valid for that segment. Keep TotalSegments
well below the row count.
BatchGetItem can return at most 100 items. At 48,000 logical bytes per
item, that is at most 4,800,000 bytes before projection, below the 16 MiB
bound. The size-only UnprocessedKeys path is not reachable. This is not a
limit on the encoded HTTP response. TransactGetItems can still exceed its
4 MiB bound and rejects the result instead of returning a partial transaction.
List pages¶
Each List call pages by its own rules. An out-of-range size returns HTTP
400 ValidationException. These are API page sizes. They do not limit the
storage work. Backup listing collects summaries before it filters and pages.
Export and import listing read all job IDs before they end the page.
| Call | Size | Without a size | Cursor |
|---|---|---|---|
List |
Limit 1 to 100 |
Up to 100 visible names, as in DynamoDB | Send Last as Exclusive. A nonempty start must be a valid table name but need not exist; an empty one starts at the beginning; names after it in byte order follow. No token when no visible name remains. |
List |
Limit 1 to 100 |
Every remaining match | Send Last as Exclusive. The ARN must be well-formed but need not still exist; paging is by position. TableName takes a name, not an ARN. |
List |
Max 1 to 25 |
25 | Pass NextToken back unchanged with the same filter; the page resumes after that export ID. |
List |
PageSize 1 to 25 |
25 | As List. Use the token the service returned; fdyno does not check its format. |
List |
Max 1 to 100 |
All enabled summaries in development; none in production | NextToken resumes by table name. With TableName, at most one summary and the token is ignored. |
List |
Limit 1 to 100 |
Always empty | Never returns Last. |
List |
None | All tags, at most 50 | One page; NextToken is ignored and never returned. |
List |
Limit 1 to 100 |
Every remaining visible stream | Send Last as Exclusive. A malformed ARN is rejected; a well-formed stale one resumes by position. |
Botocore 1.44.8 has paginators for ListTables, ListBackups and
ListTagsOfResource. For exports, imports, global tables and Contributor
Insights, loop on the response fields yourself.
PartiQL pages¶
A base-table PartiQL SELECT evaluates up to 1 MiB of items before WHERE
and projection, even when the request specifies Limit. The next page starts
with the item that did not fit. Follow NextToken, even after an empty page.
Send a NextToken only with the same statement and the same Parameters in
the same order. A valid SELECT with changed statement text or bound values
fails with ValidationException (Invalid NextToken). The token binds each
parameter's original representation. So N 1 instead of 1.0 also fails,
and so does a set with its members in another order, although the values are
equal.
Resend the original parameter representations in the same order. Map member
order is normalized and does not matter.
Transactions¶
See the transaction request checks, token validation and retention and FoundationDB transaction age and size.
| Limit | Value | When exceeded |
|---|---|---|
| Actions | 100 per Transact, Transact or Execute |
Rejected. |
| Write request data | 4 MiB: put items, keys and expression values | Rejected with Transaction size cannot exceed 4194304 bytes. |
| Read response data | 4 MiB of returned items | Rejected. |
| FoundationDB transaction size | 10,000,000 affected bytes: writes and conflict keys/ranges, including index and stream mutations | Rejected. A transaction is never split. |
| FoundationDB transaction lifetime | 5 s per attempt, from the first read | fdyno retries within the request time budget. |
Client |
Omit the field for no token; otherwise 1 to 36 UTF-8 bytes. Remembered for 10 minutes by the serving process's clock (shorter when clocks differ; see clock synchronization) | Rejected with Validation, a present empty string included. After 10 minutes, the same token is a new request. |
The request-data check does not include stored copies. Each item is written
once for the base item, each ALL or INCLUDE index entry, each stream
image and the PITR old image. So a request under 4 MiB can still be
rejected. In the November 18, 2026 test,
about 9.75 MB divided by the copies per item approximated the tested
sizes that fit, not a general bound.
Payload sizes in the index and stream test
| Copies per item | Example | Payload sum at largest successful action count |
|---|---|---|
| 1 or 2 | No indexes, with no stream or a NEW_IMAGE stream; or one ALL GSI and no stream |
4,100,000 B |
| 3 | Two ALL GSIs |
About 3.2 MB |
| 4 | Two ALL GSIs and a NEW_IMAGE stream |
About 2.4 MB |
| 21 | Twenty ALL GSIs |
About 0.4 MB |
The transaction envelope test varies item size, the write operation, ALL indexes and stream view. The configured request-data cap is 4 MiB. The largest successful put or overwrite payload sum across all 72 recorded rows was 4,100,000 B. The test counts payload strings, not keys or other attributes; it did not measure wire bytes. These results are not a second FoundationDB limit.
An UPDATE stores a small delta as its stream old image. A request that is too
large fails with ValidationException naming its size and the copies per item
for each table. Test your largest writes with your indexes and stream view.
Indexes¶
See the table and index checks and composite GSI key validation.
| Limit | Value | When exceeded |
|---|---|---|
| GSIs per table | 20, not adjustable | Rejected. |
| LSIs per table | 5 | Rejected. |
| GSI key attributes | 1 to 4 partition, 0 to 4 sort | Rejected. |
INCLUDE attributes |
20 per index; 100 across all indexes | Rejected. |
| LSI item collection | No limit | fdyno does not return Item. |
Streams¶
| Limit | Value | When exceeded |
|---|---|---|
| Shards per generation | 1 to 100; splits grow by a whole multiple | Rejected. |
| Retired generations | 8 per table | Re-enabling returns Limit until the trimmer removes one. |
Get page |
1,000 records and 1 MiB of stored record bytes | The page ends early; the first record always returns. |
| Shard iterator | 15 minutes | Expired. |
| Retention | 24 h plus 5 min margin, when the trimmer runs | A read behind the trim point returns Trimmed. |
Get wait |
None: an empty read returns at once, as in DynamoDB | Poll again. |
See the stream page and retention code, iterator lifetime.
With DYNODB_CDC_TRIM_INTERVAL=off, stream records are never trimmed.
TTL and backups¶
For the whole TTL path, see Time to live. See the TTL value and sweep rules, async PITR page sizes and restore batch budget.
| Limit | Value | When exceeded |
|---|---|---|
| TTL value | A Number of epoch seconds, at most five years in the past | Other values never expire. |
| TTL expiry | An item is hidden and deleted only after its expiry time plus DYNODB_ (1 minute) by the local clock |
Until then, reads return the item and conditions see it. |
| TTL deletes per sweep | No count cap. The work budget is half of DYNODB_: 30 seconds at the default one-minute interval. |
Remaining eligible entries can be processed by later passes. Reads hide expired items independently of cleanup. |
| Backup size | No fixed limit | A backup that outlives FoundationDB's 5-second read window completes as ROLLING, consistent per item. |
| Restored item | Each item with its index entries must fit one FoundationDB transaction | Restore fails without publishing partial data. |
| Point-in-time restore work | Grows with item changes after the restore point, not only table size | A busy table restored far back can take much longer; see the single-host check. |
| Async PITR page cap | 200 log records for cut search or undo; 200 map keys in the initial apply read. Internal, not configurable. | The worker checkpoints progress and continues on the next page. Separate 4 MiB payload or write budgets can end a page sooner. |
| Backup and point-in-time restore | Asynchronous; target stays CREATING until done |
The request budget does not bound the full background restore. See restore behavior. |
Table statistics¶
DescribeTable's ItemCount, TableSizeBytes, and each index's ItemCount
and IndexSizeBytes come from a background measurement, as in DynamoDB. Do
not use them to check that a copy is complete; use Scan with
Select=COUNT. See the measurement and refresh rules.
| Limit | Value | Effect |
|---|---|---|
| Staleness | Eligible for refresh after six hours | A new table reads 0 until its first measurement. The worker checks every minute by default; a busy pass can delay the refresh. |
| Accuracy below 64 MiB | Exact items and bytes, as each page is read | none |
| Accuracy above 64 MiB | Bytes from a FoundationDB estimate; items from samples | Approximate; error depends on the data. |
| Bytes | Stored bytes with fdyno's key encoding | Not DynamoDB's item-size formula. |
Background worker ceilings¶
A cluster-wide lease lets one process run each singleton worker. Adding API processes provides another potential owner, not another concurrent pass. The budgets and rates below come from the linked code and startup defaults. A rate divides nominal accounted work by the interval; it is not measured throughput or a durable-delete bound. Time, contention and page contents can lower progress. Lost commit replies can hide durable work from the count, and whole-range removal can bypass a row budget.
Both workers run by default (CDC trim every 5 min, token GC every 10 min).
Production mode refuses off for either. The rates below use the
deployment example.
| Cluster-wide lease | Nominal cadence and accounting budget | What drives it; nominal ceiling | Main setting |
|---|---|---|---|
txn-token-gc |
Every 10 minutes by default. Half the interval for work, 1,000 token rows per transaction, up to 1,000,000 counted deletions per pass with the default cap. | Each new write token is one record; live tokens also cost scan time. At a 10-minute interval: about 1,667 counted deletes/s at most. | DYNODB_; page and tick caps are fixed. |
ttl-sweeper |
Every minute; 30 s for the pass. Legacy rows get one page per reached table, up to 1,000 rows by default, within half the remaining pass time after discovery. | Existing rows when you enable TTL: about 16.7 examined rows/s per reached table at most on the ordinary path. This is not the expiry drain rate. | DYNODB_; page target is fixed. |
cdc-trimmer |
Every 5 minutes by default. Half the interval for work, 1,000 records per page, up to 2,000,000 counted trims per pass with the default cap. | Stream records from item changes, including TTL deletes. At a two-minute interval: about 16,667 counted trims/s at most. Dropping a retired generation whole is separate from the row count. | DYNODB_; page and tick caps are fixed. |
pitr-trim |
Every minute; 30 s of work. Expired streams of deleted tables get the first turn, up to 5 s. Undo trim uses the remaining time, with a 1,000-record page target and no pass-wide record cap. A page never splits a commit. | Old undo records on PITR-enabled tables. The trim rate depends on how many pages can commit before the deadline. The first page of each table visit checkpoints its name under the existing lease. The next pass starts after that name, even if the table was removed, and wraps at the end. Older binaries ignore the advisory cursor. An unrecognized cursor leaves cleanup in table-name order without replacing the cursor. In the stable three-table model, a due table is reached within three committed first-page visits when ticks succeed and no visits are skipped. This is a rotation bound, not a time deadline. Deleted-stream cleanup still fetches up to 10,000 retirement records and drops up to 64 per transaction. Its durable, lease-fenced cursor survives takeover and wraps after reaching the end. Neither drain changes retention. | Fixed cadence and page targets. |
backup-staging-gc |
Every 10 minutes; the operation timeout (30 s by default) for the pass. Lists and sorts all backup names, then selects up to 100 through a persisted cursor and checks them one per transaction. | Abandoned staging and expired SYSTEM backups; healthy names still use visits. Up to 600 selected-name checks/h. The selection cap does not bound the initial listing or sort. | DYNODB_; the 100-name limit is fixed. |
table-stats |
Every minute by default; 30 s of work. Visit up to 100,000 distinct catalog or saved-stat names per pass. Exact counting reads up to 10,000 item rows per page with a 4 MiB target. Sample pages read up to 256 rows. | New or stale table and index statistics. A durable, lease-fenced cursor resumes after the last checkpointed name and wraps at the end. For a stable catalog of N tables, with no saved-stat-only names or early stops, ceil(N / passes from the start visit all tables. If the last pass fills the budget exactly, the next pass detects the end and resets the cursor. Tables beyond the first 100,000 are no longer skipped because of their position, but ItemCount and Table can still be zero until the worker saves a measurement. The upgraded worker leaves measurements outside its current page alone and verifies that a table is absent before clearing its measurement. During a rolling upgrade, an older lease holder can still clear measurements beyond its fixed prefix. There is no fixed refresh rate. |
Fixed worker cadence and refresh age. |
stream-autosplit |
When enabled, every 30 s; 15 s of work. One load check and at most one automatic split per visited table in a pass. | Stream write bytes per shard; automatic splits stop at a default cap of 64 shards. No fixed fleet-wide measurement rate. Adding shards can help readers but does not parallelize this worker. | DYNODB_, DYNODB_, DYNODB_ |
index-backfill |
At startup, on wake, or on a 5 s timer. Serial jobs; no whole-pass deadline. Up to 64 items per page with a 4 MiB planning target; an oversized first item can be attempted alone. | Existing rows for new GSIs, plus concurrent writes and projection size. No fixed rate: a job takes as many pages as it needs and can delay the next job. | DYNODB_; jobs and pages still run serially. |
restore-recovery |
At startup, on wake, or on a 15 s timer; the operation timeout (30 s by default) for the pass. Async PITR attempts up to 128 pages per job visit. The read and write budgets can each end a page early. | Async PITR, incomplete staged restores and cleanup of terminal jobs, including legacy payloads. No fixed jobs/s or rows/s. The timer is not a periodic quota because a job can wake the worker. | DYNODB_; the async page cap is internal. |
Range and job leases¶
| Lease scope | Demand and nominal budget | Does adding processes help? | Main setting |
|---|---|---|---|
ttl-sweeper/ |
Expiry-index entries. Up to 16 ranges, four concurrent per process, 30 s for the default pass. A transaction looks at up to 500 entries and can stop sooner at its item-work budget. No count cap per pass or fixed rows/s. | Yes, with independent populated ranges and FoundationDB capacity. Not within a single range. | DYNODB_. |
| One lease per export | Table data, undo history and output work. Each process scans for jobs, then runs them serially. Renewable 3-minute job lease; no whole-pass deadline or fixed bytes/s. | Eligible processes can take different jobs, not split one job. | DYNODB_ controls discovery cadence, not transfer rate. |
| One lease per import | Listing and loading source objects. Each process runs jobs serially. Renewable 3-minute job lease; 500 pins per listing batch; no whole-pass deadline or fixed items/s. | Eligible processes can take different jobs, not split one job. | DYNODB_ controls discovery cadence. |
| One lease per restore | Backup and PITR restore pages. Renewable 3-minute job lease; no independent per-job tick rate. | Every restore runs in the singleton restore-recovery worker after its admission. |
Job lease is internal. |
The legacy catalog registry migration shares a persisted cursor across its callers, not a separate worker lease.
Before changing a budget, check the backlog measurement and stop reason. A larger count cap does not help a pass already stopped by its deadline.
Compared with DynamoDB¶
One row per API limit, on the current main. Enforcement points are in
internal/dynodb. Most DynamoDB values come from its
constraints page.
| Limit | fdyno | DynamoDB | Enforced in |
|---|---|---|---|
| Item size | 48,000 bytes by the formula above, and 48,000 encoded bytes | 400 KB | validation. validate; validate |
| Partition key value | 1 to 2,048 bytes for String and Binary keys | 1 to 2,048 bytes | validation. validate (maximum); validate; index_ validate (empty) |
| Sort key value | 1 to 1,024 bytes for String and Binary keys | 1 to 1,024 bytes | validation. validate (maximum); validate; index_ validate (empty) |
| Attribute name | 1 to 65,535 bytes, nested map keys included | Generally 1 character to 64 KB; shorter limits for some index attributes | validation. validate |
| Key schema and attribute definition names | At most 255 bytes | 255 maximum length for key schema names and attribute definition names | validation. key |
| Table and index names | 3 to 255 characters from a-z A-Z 0-9 _ |
Same | validation. validate, validate |
| Nesting depth | 32 levels, in items and expression values | 32 levels | validation. validate, validate |
| Document path | 32 steps | At most 32 dereference operators | update_ bind; expressions. resolve; projection. validate |
| Number | 38 significant digits; nonzero magnitude 1E-130 to under 1E+126 |
Same | validation. validate |
| Expression string | 4,096 bytes before aliases expand. Enforced for item operations, Query, Scan, the condition and update expressions of Transact members, and the projections of Batch and Transact |
4 KB, any expression | validation. validate; txn_ validate (condition), validate (update) |
Alias (#name, :value) |
255 bytes each | 255 bytes each | validation. validate; expressions. check, check |
| All substitution names and values | 2 MiB per expression. Each distinct #name or :value the expression references counts once: the UTF-8 bytes of the attribute name that the #name stands for, or the logical size of the value; JSON and base64 overhead do not count. Expressions in one request that share the maps each get their own 2 MiB. Each value is also at most 400 KiB |
2 MB per expression | validation. validate, validate |
| Operators and functions | 300 per condition, filter, key-condition or update expression; projections are not counted. Counted: AND, OR, NOT, IN, BETWEEN (its own AND counts too), each comparison (=, <>, <, <=, >, >=) and each function call. In an update expression: +, - and each function call; the = of a SET is not counted. Above 300, Validation The expression contains too many operators. Separately, a Condition is rejected above 300 levels of parentheses or 300 NOTs |
300 per expression | expressions. check, validate |
IN operands |
100 | 100 | expressions. evaluate; partiql. parse |
| PartiQL statement | 8,192 UTF-16 units | 8,192 maximum statement length | partiql_ partiql |
Batch |
100 keys; the 16 MiB projected-item bound cannot be reached under the item cap | 100 items, 16 MB; also partial at other bounds | batch_ Batch, bound |
Batch |
25 writes; 16 MiB request body | 25 writes, 16 MB request | batch_ Batch; service. max |
Batch |
25 statements | 25 | partiql_ Batch |
| Transaction actions | 100 per Transact, Transact or Execute |
100 unique items; up to 100 PartiQL statements | txn_ validate; txn_ Transact; partiql_ plan |
| Transaction data | 4 MiB of write request payload: items, keys and expression values (how it is counted), not stored bytes; 4 MiB of returned items after projection | 4 MB | txn_ validate; txn_ transact; partiql_ plan, Execute |
Client |
Omit the field for no token; otherwise 1 to 36 UTF-8 bytes. A present empty string returns Validation |
1 to 36 for TransactWriteItems and ExecuteTransaction | types.go client; txn_ validate; partiql_ plan |
Query and Scan page |
A page budget of 1 MiB of items read and 100,000 examined rows, checked after each row, so a page can end slightly past it; a parallel Scan can continue to a row in its segment |
1 MB | fdb_ request |
PartiQL SELECT page |
1 MiB read before WHERE and projection |
1 MB | fdb_ scan; partiql_ pq |
Scan Total |
At most 1,000,000 | 1,000,000 | query_ validate |
List page |
1 to 100 names, default 100. Pass Last as the next Exclusive |
1 to 100, default 100 | table_ List |
List, Describe page |
1 to 100 | 1 to 100 for ListStreams and DescribeStream | streams. List, Describe |
List, List page |
1 to 25 | 1 to 25 for ListExports and ListImports | controlplane_ List, List |
| GSIs, LSIs | 20 GSIs, not adjustable; 5 LSIs per table | 20 GSIs by default quota; 5 LSIs | table_ new, Update |
Projected INCLUDE attributes |
20 per index, 100 across all indexes; names at most 255 bytes | 100 across all indexes | table_ validate, validate |
| Tags per resource | 50 | 50 | controlplane_ validate |
| Tag key, value | Key 1 to 128 characters, value up to 256 | 128 and 256 Unicode characters | controlplane_ validate |
| Total table tag size | 10,240 UTF-8 key and value bytes after replacements. Untag and Tag can shrink an existing oversize set. |
Tagging restrictions: “The maximum size supported for all the tags in a table is 10 KB.” The guide does not specify the byte formula. | controlplane_ validate |
Capacity¶
fdyno publishes no throughput, table count or database size limit. Capacity
comes from your FoundationDB cluster. DescribeLimits returns fixed
DynamoDB-shaped values; fdyno does not enforce them. Consumed capacity in
responses is reported only; fdyno does
not debit or throttle on it.
DYNODB_MAX_INFLIGHT and per-key rate limits apply per process. The
error table shows what a
refused request returns.
FoundationDB transaction limits¶
FoundationDB counts written keys, values and ranges, plus conflict keys and
ranges, toward the transaction limit. Read values do not count toward that
limit, but they still cost I/O and can count toward fdyno's page or response
limits. Snapshot reads do not add read conflicts. The
FoundationDB guidance
advises staying under 1 MB of affected data. This is guidance, not a second
rejection threshold. Size errors map to ValidationException.
How we know: conformance and edge checks. The bounds exception register lists implementation limits that do not exist, such as a hard cap on the names collected and sorted during backup cleanup. These exceptions are not API limits.