Compatibility¶
fdyno speaks DynamoDB JSON with SigV4. AWS SDKs and the CLI work with a changed endpoint; any Region name works. A route is not full parity: test your exact requests.
aws dynamodb execute-statement \
--endpoint-url http://127.0.0.1:8000 \
--statement 'SELECT * FROM "quickstart-users" WHERE "id" = ?' \
--parameters '[{"S":"user-1"}]'
Clients¶
These pinned clients pass the client matrix.
| Language | Clients and pinned versions |
|---|---|
| Go | AWS SDK v2 service/ 1.74.3 and feature/ 1.10.13 |
| Java | AWS SDK 2.x and the Enhanced Client 2.59.2; DynamoDB Lock Client 1.5.0; AWS SDK 1.x and Dynamo 1.12.797 |
| Kotlin | AWS SDK for Kotlin dynamodb 1.9.48 |
| JavaScript | AWS SDK v3 client-dynamodb and lib-dynamodb 3.1170.0; Dynamoose 4.2.0; ElectroDB 3.9.3; DynamoDB Toolbox 2.11.1 |
| Python | boto3 1.44.4; PynamoDB 6.1.0 |
| PHP | AWS SDK for PHP 3.409.1, with Marshaler |
| Ruby | aws-sdk-dynamodb 1.187.0; aws-record 2.15.3 |
| Rust | aws-sdk-dynamodb 1.139.0 |
| .NET | AWSSDK. 4.1.0.1: the low-level client, Dynamo and the Document model |
| Terraform | Set DYNODB_ to the provider's Region and DYNODB_ to the account it expects: the provider checks the Region in every ARN. aws_: Terraform 1.17.2, AWS provider 6.73.0 and 5.100.0. Covers create, a second plan with no changes, in-place updates (add and remove a GSI, billing mode, throughput, TTL, stream, point-in-time recovery, tags, deletion protection), terraform import and destroy |
| AWS CLI | aws dynamodb and aws dynamodbstreams, AWS CLI 2.38.0 (the host's CLI, not pinned). Covers the same table life through update-table, with the table-exists, table-not-exists and contributor-insights-enabled waiters |
Libraries that depend on exact semantics¶
These libraries rely on exact condition, transaction and index behavior. The client matrix runs each one under contention or tampering (test commit 0a4a921d9, 2026-11-30).
| Library | Pinned version | What the matrix checks |
|---|---|---|
| AWS Database Encryption SDK for DynamoDB (Java) | 4.1.0, Material Providers 1.11.1 | Its key store table is on fdyno. Encrypted and signed items round-trip through single, batch, transaction and paged reads and writes. A beacon GSI query returns only the matching items. A changed ciphertext byte, a changed signed value, an item copied to another key, a removed signed attribute or a wrong key each fail to decrypt. |
| DynamoDB Lock Client | 1.5.0 | 20 processes contend for one lock (3 s lease, 1 s heartbeat), and one holder is killed. No two holders overlap and no update is lost. The next holder waits out the dead holder's lease: it took the lock 2.1 s and 2.8 s after the kill in two runs. |
cirello. (Go) |
2.2.0 | The same race. The next holder took the lock 2.8 s and 2.5 s after the kill in two runs. |
| OneTable | 2.7.7 | 20 concurrent creates of one unique email: 1 user and 19 Unique. 20 concurrent conditional transfers move exactly the balance. |
| Castore DynamoDB event storage adapter | 2.4.2 | Versions have no gap under 20 optimistic writers. Event groups (Transact) are all-or-nothing under contention. list pages through its GSI. |
KMS in these checks is a local KMS emulator (moto), not AWS KMS. With AWS KMS, the key store and the keyring send their KMS calls to AWS. Only the DynamoDB calls go to fdyno.
SDK retries¶
The client matrix sends some requests through a fault proxy (main
1286b475f, 2026-11-30). With its default retry settings, each SDK below
retried one 500 InternalServerError and one 400 ThrottlingException,
and the request then succeeded. For a 500 on every attempt, the SDK
returned its typed InternalServerError after this many attempts:
| SDK | Attempts |
|---|---|
| AWS SDK for Java 1.x 1.12.797 | 4 |
| AWS SDK for Kotlin 1.9.48 | 3 |
| AWS SDK for PHP 3.409.1 | 4 |
| AWS SDK for Ruby 1.187.0 | 4 |
| AWS SDK for Rust 1.139.0 | 4 |
| AWS SDK for .NET 4.1.0.1 | 4 |
Each of these SDKs also returned the typed
ProvisionedThroughputExceededException with retries off, and succeeded with
its retries on, when fdyno rate-limited
its key. The AWS SDK for Ruby defaults to retry_mode standard: to turn
retries off, set max_attempts: 1, because retry_limit applies only to
legacy mode. For how fdyno chooses its error codes, see
SDK retries.
AWS CDK¶
cdk deploy cannot target fdyno: it sends the template to CloudFormation,
which calls DynamoDB in AWS. We checked the next best thing on 2026-11-30
(aws-cdk-lib 2.278.0, main a1cf1de55). We ran cdk synth on TableV2 and
Table stacks. Then we sent fdyno the DynamoDB calls that the
CloudFormation table handlers make for those templates: create, update and
delete.
| Setting | Development profile | Production profile |
|---|---|---|
| Keys, GSIs, LSIs, billing, stream, TTL, point-in-time recovery, table class, deletion protection, tags | Applied. The server view equals the template, before and after an update that swaps a GSI and turns each setting off. | Same |
| Delete while deletion protection is on | 400 Validation, DynamoDB's message |
Same |
| Contributor Insights, KMS key, resource policy, Kinesis destination | Accepted and stored. Nothing runs. | 400 Unsupported. The message names what to use instead. |
Replicas (replicas, replication) |
400 Unsupported: global tables are not supported |
Same |
warm |
Accepted. Describe reports 12,000 and 4,000. |
Same |
Auto scaling (auto) |
Application Auto Scaling, not a DynamoDB API | Same |
For fdyno, remove the settings that production refuses. With CloudFormation, one refused call rolls back the whole stack.
Stream consumers¶
These pinned consumers pass the streams consumer matrix. Each one reads a live workload while the stream splits from 2 to 64 shards, and receives every change exactly once, in order for each key.
| Consumer | Pinned versions | Also checked |
|---|---|---|
| Kinesis Client Library 1.x with the DynamoDB Streams Kinesis Adapter | Adapter 1.6.1, KCL 1.14.9, AWS SDK for Java 1.12.710 | Lease table on fdyno, checkpoints, parent shards before children, worker restart in the middle of a shard |
| boto3 | 1.44.4 | Every iterator type, Limit, iterator expiry and resume, Describe pagination |
AWS SDK for JavaScript v3 client-dynamodb-streams |
3.1170.0 | Shard lineage through Describe pagination |
Data pipeline connectors¶
A one-time pipeline check on 2026-11-30
(main b6427e472) copied 100,000 items with every attribute type through each
connector below. The count and a checksum over every attribute matched,
unless the Notes column says otherwise. With its key rate-limited to 200
requests/s and 4 MiB/s, each working connector still copied every item.
Those that went over the limit retried fdyno's
ProvisionedThroughputExceededException.
| Connector | Pinned versions | What it reads from fdyno | Notes |
|---|---|---|---|
| EMR DynamoDB connector (Hadoop InputFormat/OutputFormat) on Spark | emr-dynamodb-hadoop 5.6.0, Spark 3.5.10 | Describe: on-demand (Billing) means its 40,000-unit default; otherwise Provisioned. It paces later writes from Consumed. |
Outside EMR, set dynamodb./write (or dynamodb.); the default plans 1 mapper. Add the AWS SDK v2 dynamodb and apache-client jars. |
Apache Flink DynamoDB connector: Dynamo, Dynamo |
flink-connector-dynamodb 6.0.1-2.0, Flink 2.0.1 | Nothing from Describe |
The streams source copied every insert once from TRIM_ |
| Confluent Kafka Connect DynamoDB sink | 1.5.10, Apache Kafka 3.9.1 | Describe once per task |
Endpoint: aws.. On Apache Kafka, add confluent-licensing-new to the plugin. JSON numbers are stored exactly. |
| Airbyte DynamoDB source | airbyte/ 0.4.3 |
List, Describe, a sampling Scan |
Endpoint: endpoint |
| Airbyte DynamoDB destination | airbyte/ 0.1.8 |
— | Does not work with any custom endpoint, DynamoDB Local included: its client fails with unknown signer type: AWSDynamodb before it sends a request |
| AWS Glue DynamoDB reader and writer | Glue 6.0 (amazon/) |
Describe on every task, as the EMR connector |
Set AWS_; the writer ignores dynamodb.. Glue reads N as double, so digits beyond double precision are lost on any endpoint. |
AWS Glue DynamoDB export reader (dynamodb.) |
Glue 6.0 | Export, Describe, then the files in S3 |
Needs PITR and an export destination the job can read |
Library test suites¶
These libraries pass their own integration tests against fdyno, at the commit of the pinned release (library test suites). The tests use the library's full API, so they send condition, update and key expressions that no person writes by hand.
| Library | Suite | Result |
|---|---|---|
| PynamoDB 6.1.0 | tests/ |
18 of 18 pass. 3 tests are not run; each needs DynamoDB Local behavior: an index readable at once after Create, its error wording, or separate data for each Region |
| ElectroDB 3.9.3 | test/ with the AWS SDK v2 and v3 clients: 5,401 tests |
5,396 pass. 5 tests expect DynamoDB Local's error wording or its attribute order; DynamoDB fails them too |
| AWS SDK for Java 2.x Enhanced Client 2.59.2 | dynamodb-enhanced functional tests, sync and async: 1,354 tests |
1,288 pass. 46 tests expect DynamoDB Local behavior that DynamoDB does not have. 20 tests write 100 KB items, over fdyno's item limit |
test/sdk/upstream/*-known.tsv lists each test that does not pass, with its reason. A failure that is not in the list fails the row.
SDK integration tests¶
The AWS SDKs' own DynamoDB integration tests also run against fdyno (how). AWS runs these tests against DynamoDB itself. The test files are not changed: only the endpoint and the credentials are. A guard refuses each request to any other host, so a test that needs another AWS service fails and sends nothing to AWS.
| SDK | Suite | Result |
|---|---|---|
| Java 2.x 2.59.2 | services/ and dynamodb-enhanced/: 346 tests |
337 pass. 3 tests write 80 KB items, over the item limit. 3 vector search classes need Search, which fdyno does not have. 3 tests need AWS: 2 send requests to an amazonaws. URL that they build, and 1 expects each call to take longer than 5 ms over the network |
| boto3 and botocore 1.44.4 | boto3 tests/; the botocore integration tests for DynamoDB and DynamoDB Streams: 32 tests |
32 pass |
Go v2 (service/ v1.74.3) |
service/ and the feature/ tests: 454 tests |
451 pass. The SDK skips 3 |
| JavaScript v3 3.1170.0 | lib-dynamodb and client-dynamodb end-to-end tests: 93 tests |
93 pass |
| .NET (AWSSDK.DynamoDBv2 4.1.0.3) | sdk/: 186 tests |
172 pass. 8 vector search tests need Search. 5 tests store an S3Link and need S3. 1 test writes 65 KB items |
The .NET test TestMultiTableTransactionsReturnConsumedCapacity found one fdyno defect, now fixed. TransactWriteItems with ReturnConsumedCapacity doubled the write units of each index as well as the table's. DynamoDB doubles only the table's units, and so does fdyno now.
The client matrix also checks helpers that write expressions for the application. In Go, these are feature/dynamodb/expression, attributevalue and the paginators. In Python, these are the boto3 resource Table, batch_writer and the Key/Attr conditions builder.
It also checks object mappers. These are DynamoDBMapper (Java 1.x), aws-record (Ruby), and DynamoDBContext and the Document model (.NET). Each one saves and loads a model, and uses optimistic locking or a conditional save, batches, paged and filtered queries, a GSI query, and transactions. Three of their limits come from the SDK, not from fdyno:
- A .NET
DynamoDBContextbatch write refuses a type with a[DynamoDBVersion]property, unlessSkipVersionCheckis on. - aws-record sends one
Batch.writeblock as oneBatchWriteItemrequest. With more than 25 writes, fdyno returnsValidationException, as DynamoDB does. Aws::Record::Transactionsuses its own default client unless the call passesclient:, so it ignores the endpoint of the model's client.
Sets: DynamoDB does not promise an order for the members of a set. In practice, it returns string and binary sets sorted by bytes, and number sets sorted by value, and fdyno does the same. Tests that compare whole items, as some ElectroDB tests do, depend on this order.
Implemented workflows¶
| Area | Actions | Status |
|---|---|---|
| Tables | Create, Describe, Update, Delete, List |
Supported. A throughput-only Update on a provisioned table rejects unchanged units. |
| Items | GetItem, PutItem, Update, Delete with conditions and every Return mode |
Supported |
| Queries | Query, Scan (with parallel segments), filters, projections, pagination |
Supported |
| Expressions | Condition, update, filter and projection expressions; nested paths; if_, list_, arithmetic |
Supported |
| Legacy parameters | Expected, Attribute, Key, Query, Scan, Attributes |
Supported |
| Secondary indexes | GSI and LSI with ALL, KEYS_ONLY and INCLUDE; online GSI add and delete; GSI keys of up to four partition and four sort attributes |
Supported. INCLUDE requires nonempty projected attribute names. |
| Batches | Batch, Batch |
Supported |
| Transactions | Transact, Transact with Client |
Supported |
| PartiQL | Execute, Batch, Execute |
Partial: a tested subset |
| Streams | List, Describe, Get, Get; all view and iterator types |
Supported, with differences |
| TTL | Update, Describe |
Supported, with differences |
| Backups | Create, Describe, List, Delete, Restore |
Supported; see backup & restore |
| Tags | Tag, Untag, List |
Supported. Untag requires TagKeys. After an unknown tag update outcome, check the table identity and current tags before resending. An internal retry cannot change a replacement table. |
| Resource policies | Put, Get, Delete; Resource on Create |
Not enforced. Production: Put and Create with Resource return Unsupported; Get returns Policy even if development stored a policy; Delete removes a stored policy. Development stores the policy text. Its Revision is the SHA-256 hex of that text, and Expected (including NO_POLICY) is checked on put and delete |
| Discovery and limits | Describe, Describe |
Supported; limits are informational |
| Kinesis destinations | Describe, Enable, Disable, Update |
Not implemented: no records are delivered; read changes with DynamoDB Streams. Production: enable and update return Unsupported, disable works, and describe returns an empty list. Development stores each destination: enable and update set it ACTIVE, disable keeps it listed as DISABLED, and update of an unknown stream returns Resource |
| Contributor Insights | Describe, Update, List |
Not implemented: no rule runs and Contributor is always empty; use the per-table hot-spot metrics. Production: ENABLE returns Unsupported, DISABLE works, and every table reports DISABLED. Development stores one table-level status and mode; an IndexName is echoed in the response but does not get its own setting. See list pages for paging |
| Replica auto scaling | Describe, Update |
Partial: both return Table with the table name, status and an empty Replicas list. The update reads only TableName; it does not store the scaling settings or change the table |
| Point-in-time recovery | Describe, Update, Restore |
Supported, opt-in per table; see point-in-time recovery |
| Global tables (MRSC) | Create and Update Replica, Global, Multi |
Unsupported in this version: Unsupported; see global tables |
| Global tables (legacy 2017.11.29) | List |
Returns an empty Global list. |
| Global tables (legacy 2017.11.29) | Create |
Unsupported. Returns Limit for an existing source table or Table for a missing source table. |
| Global tables (legacy 2017.11.29) | Describe, Describe, Update, Update |
Unsupported. Returns Global for a valid table name. |
| Bulk writes | Start, Describe, List, Cancel |
Unsupported. Returns Unknown. Import creates a new table; it does not write to an existing table. |
| Vector search | Search; Create Vector; Update Vector |
Unsupported. Search returns Unknown. A Create or Update that asks for a vector index returns Unsupported; null or an empty list asks for nothing. |
| S3 export | Export, Describe, List |
Partial: FULL_ and INCREMENTAL_ in DYNAMODB_ or ION, to listed destinations; no export filters; see export to S3 |
| S3 import | Import, Describe, List |
Partial: DYNAMODB_, ION and CSV with GZIP or no compression, from listed sources; no ZSTD or CloudWatch logs; see import from S3 |
The errors above assume valid requests and unrestricted credentials.
An unknown action can return AccessDeniedException with a scoped credential.
A settings-only action stores its settings; they have no external effect. The production profile rejects enabling
unimplemented features with UnsupportedOperationException; disable/delete
work. It reports them off even if development stored settings.
Updates cannot set/remove key attributes. Parenthesized arithmetic permits
one pair around a path and value: SET c = (c - :v).
A field in the response is not an enforced feature¶
| If your application depends on… | Check the effect, not just the response |
|---|---|
| Item collection size | With Return on a table with an LSI, single-item and batch writes and Transact return Size, when they return the metrics, as a fixed [0, 1]. It is a placeholder, not a measured size. fdyno sets no item-collection size cap; FoundationDB capacity is the limit. |
| Capacity controls | Warm is response metadata. Development accepts and reports table-level On limits but does not enforce them. A GSI limit from Create or a GSI Create or Update is stored and reported in Describe, and not enforced; a GSI Update may carry only On or Warm, as in DynamoDB. Production rejects positive limits; removing a limit is allowed. |
| Provisioned throughput history | Describe reports the last recorded increase and decrease and an advisory UTC-day decrease count for the table and each GSI. The count uses the server clock and does not enforce decrease quotas. An older process that rewrites table metadata during a rolling upgrade can reset the timestamps and count. |
| Table class history | A class change sets Table. |
| Resource policies or KMS | A stored development setting does not authorize requests or encrypt stored values. Use fdyno's credential scopes and protect FoundationDB separately. |
| Kinesis or Contributor Insights | Development can return stored settings without delivering records or running an insights rule. Production rejects enablement and does not report the stored feature as active. |
Test infrastructure code against the production profile before switching an
application. Remove requests for AWS-only side effects rather than treating a
successful development response as evidence they happened. The committed
production feature tests
cover all five features: KMS, OnDemandThroughput limits, resource policies,
Kinesis destinations and Contributor Insights. The tests check production
refusals, masking without erasing stored development settings, and allowed
removals or disables. They do not test the external features themselves.
Internal retries of Kinesis destination and Contributor Insights changes
cannot update a replacement table.
Differences from DynamoDB¶
| Area | fdyno | Amazon DynamoDB |
|---|---|---|
| Default reads | Current. Reads without Consistent see every completed write. |
Eventually consistent. |
| GSI reads | Eventually consistent, as in DynamoDB. While the table's GSIs are more than 5 s behind, a write that changes a GSI fails with Throttling before it commits; in a Batch that commits in parts, a throttled part comes back in Unprocessed (indexes). Consistent on a GSI is rejected, as in DynamoDB. |
Eventually consistent. A GSI without enough write capacity throttles writes to its table. |
Batch over 25 requests |
The Validation text echoes each request as Put or Delete. |
The text echoes each request as a Java object dump (Write). The rest of the message, the status and the error type match. |
| Validation messages | PutItem, Update, Delete, GetItem, Query, Scan, Batch, Transact, Transact and PartiQL use DynamoDB's status, error type and message for their common validation errors, as measured in three AWS Regions on 2026-11-30. A list over its length limit (more than 25 Batch statements, more than 100 Execute statements) is worded without DynamoDB's dump of internal Java objects. |
The same messages. DynamoDB changes its wording from time to time; for example, write errors gained the 1 validation error detected: prefix and lost the : Condition suffix. |
| Expression syntax errors | Condition, Filter, Key and Projection name the token and nearby text (Syntax error; token: "=) for two comparison operators in a row and an empty projection element. Other syntax errors in these expressions can word or omit the token and near text differently. |
Names the offending token and nearby text for every syntax error. The status and the error type match. |
Attribute JSON |
Read with DynamoDB's rules, as measured on DynamoDB: type names are case-sensitive; other members are ignored; a repeated type name is a Serialization; BOOL and NULL also take DynamoDB's boolean words as strings (true, t, yes, y, 1, false, f, no, n, 0, in any case); B and BS take unpadded base64 of 2 or 3 characters. A request body is read as a whole before any value's structure is checked, so a later Serialization wins over an empty value's Validation. Malformed JSON is a Serialization with no message; data after the first JSON value is ignored. A lone UTF-16 surrogate escape (\ud800 with no low half) is read as ?, as in DynamoDB, in every request string: values, names, map keys and keys. |
Same |
| Write conflicts | For PutItem, Update, Delete, Transact and Execute, fdyno retries conflicts internally. If conflicts use up the request budget and fdyno knows the write did not commit, a single-item write returns Transaction. A transaction returns Transaction with reason Transaction at every action, because FoundationDB reports the conflict for the whole transaction. If the budget went to the same-item queue, the answer is Provisioned with reason Table. |
An ongoing transaction can cause a single-item write to fail with Transaction, or another transaction to fail with Transaction and reason Transaction at the conflicting items. |
Client on Transact |
The first commit binds the token. A later call can commit first. If a valid call finds the live token, it returns success without writing again if its request parameters match. If they differ, it returns Idempotent. While a request with the token runs on the same fdyno process, another returns Transaction, as in DynamoDB; on another process it replays or fails with Idempotent once the first commits. See tokened transactions. |
Can return Transaction. |
| Capacity | Not metered; capacity fields are accepted and returned. Throttling errors carry Throttling. A table reason is TableRead or Table followed by Key for same-item contention (Provisioned), Account for FoundationDB throttling and the in-flight limit (Throttling), or Max for a key's rate limit, with the table ARN. The GSI backlog throttle gives Index with the index ARN. |
Metered and throttled per table. |
Changes while a GSI is CREATING |
Delete is accepted and cancels the backfill. Update cannot create or delete another GSI (Limit) or change the table class (Resource), as in DynamoDB; it can delete the CREATING GSI. See how an online GSI becomes active. |
Cannot delete the table or create or delete another GSI while the new index is being created. |
Delete on a CREATING table |
Allowed for the target of a restore or import, so an operator can cancel the job. It removes the target and cancels its restore job. A restore target keeps the deletion protection of its source. Delete refuses a deletion-protected target while its restore job can still run, and removes it once that job has failed, including after cleanup has removed the failed job's record (at least 24 hours after the failure). A pinned import still listing or loading is marked FAILED (Table) when the worker sees the target is gone; an import already in its cleanup phase keeps the original failure. Data operations on the target and a Create with its name are still refused. See restore and import. |
Resource (HTTP 400). |
Batch partial results |
The 16 MiB projected-item bound cannot be reached under the item cap. Throttling and read volume per storage partition do not cause a partial result. | Can return HTTP 200 with Unprocessed at 16 MB, when throughput is exceeded, when more than 1 MB is requested from one internal storage partition, or on an internal processing failure. Retry the unprocessed keys. |
Parallel Scan segments |
Assigned by a hash of each item's full base-table primary key (partition key and any sort key), also on an index Scan, so items with one partition key can fall in different segments. For one Total value, each item belongs to exactly one segment. A complete, unfiltered parallel scan of unchanged data returns each visible item once. A scan does not provide a single snapshot across pages. |
Assigned by a hash of the partition key: all items with the same partition key are always assigned to the same Segment for a given Total. |
| Expired TTL items | Hidden after TTL plus a clock margin from base-table reads and from indexes that project the TTL attribute. A KEYS_ONLY index, or an INCLUDE index without it, returns the item until it is deleted. See TTL. |
Visible until a background delete. |
| TTL changes | Apply at once. No ENABLING state and no one-hour limit between changes. |
Asynchronous, at most once per hour. |
Streams on Delete |
Readable through the old ARN, and List lists it, by the table name or without one. The stream enabled at deletion is kept for 24 hours from the deletion, and so is the table's latest stream if it is disabled with no recorded disable time; an already-disabled generation with a recorded disable time keeps its own 24-hour clock from that time. A later worker pass removes the kept streams after the latest expiry plus the clock-skew margin; 24 hours is not a deletion deadline. See deleted tables. |
Readable for 24 hours. |
| Stream shards | Split automatically when a shard writes more than 1 MiB/s, up to 64 by default. Shards never merge. | Managed automatically. |
| Authentication | Static SigV4 keys with optional table, read-only and control-plane scopes. A wrong signature returns Unrecognized. |
IAM; a wrong signature returns Invalid. |
| Warm throughput | Describe reports DynamoDB's defaults (12,000 reads and 4,000 writes per second, or provisioned capacity if higher); a requested Warm is ignored, as there is nothing to pre-warm. |
Pre-warmed capacity. |
| Encryption | No KMS: production rejects KMS requests; development stores them and encrypts nothing. Encrypt in FoundationDB. | KMS-managed. |
| ARNs | arn:<partition>:dynamodb:<region>:<account>:table/..., one Region and one account per deployment: DYNODB_ (default local) and DYNODB_ (default 000000000000). A request may name a table, backup, export, import or stream by its ARN in that form. An ARN of another account gets Access, as in DynamoDB. An ARN of another Region or partition, of another service, or with a bad resource part gets DynamoDB's error for that operation: a Validation or the resource's not-found error. fdyno stores no Region or account: after a change, every ARN it returns, old resources included, has the new form. A KMS key ARN you set is returned as you set it. A shard iterator holds its stream ARN, so iterators open at a change stop working, as after 15 minutes; an export's summary file keeps the form of its time. Credential scopes use table names, so a change does not change who can do what. |
Account and Region scoped. |
PartiQL¶
PartiQL is a tested subset, not the full language:
SELECT,INSERT,UPDATEandDELETE, with?parameters.- Key and non-key
WHEREconditions,IN,BETWEEN, nested paths and set literals (<<'a', 'b'>>). SELECTfrom an index (FROM "table"."index") andORDER BYon key attributes.RETURNINGonUPDATEandDELETEinExecuteStatementandBatchExecuteStatement.ReturnValuesOnConditionCheckFailureonUPDATEandDELETEin all three operations:ALL_OLDreturns the item in the error or cancellation reason.SETwith literals, paths, arithmetic,list_append,if_not_exists,set_addandset_delete;REMOVE.EXISTS(SELECT …)as a condition check inExecuteTransaction.ClientRequestTokenon write transactions.
UPDATE and DELETE require the full primary key. Non-key WHERE is a
condition, as in DynamoDB. UPDATE is not an upsert. Writes use item-API
validation. ExecuteStatement rejects NextToken on a write, even when the
string is empty. Omit the field for a write.
The example above queries the quickstart table.
How a SELECT reads¶
A standalone ExecuteStatement SELECT on a single-attribute partition key
can read key ranges instead of the whole table. The table below gives each
WHERE shape. Every other such SELECT reads the whole table or the whole
index, one page at a time, and applies WHERE to each item it reads. A GSI with a composite key, and a SELECT in
BatchExecuteStatement or ExecuteTransaction, follow their own rows in the
target table below.
ExecuteStatement SELECT, single-attribute partition key: WHERE has, at the top level and without NOT |
Read |
|---|---|
pk = v, no OR |
One partition. The first sort-key condition (=, <, <=, >, >=, BETWEEN, begins_) narrows it. |
(pk = |
One partition: a pk = inside a parenthesised group that is ANDed with the rest counts. |
pk = |
One partition: an OR inside such a group is not at the top level. |
pk IN [... |
Table: those partitions, up to 100 distinct; a value that is not a valid key is rejected with Validation. Index: the same, for the index partition key. |
pk = |
Table: those partitions, up to 100 distinct; a value that is not a valid key makes the table read whole. Index: the same, for the index partition key. |
No pk condition |
The whole table or index. |
The
DynamoDB SELECT reference
says an equality or IN condition on the partition key avoids a full table
scan. Its examples are OrderID = 100 or OrderID = 200 and
OrderID IN [100, 300, 234]. On a table, fdyno reads only those
partitions, in key order, as one paged read. Limit, the 1 MiB page and
capacity count only their items, and capacity is charged as for Scan. If
the selected branch conditions name more than 100 distinct partitions (the
IN limit; OR branches can add more), fdyno reads the table instead.
| Target | Key range | Source |
|---|---|---|
| Table | The partition, narrowed by the first sort-key condition, when WHERE has pk = v and no top-level OR. The named partitions, when every top-level OR branch has pk = v or pk IN [.... Otherwise the whole table. An IN on the partition key still checks each value's type against the key schema. |
partiql_ |
| GSI or LSI | The partition, narrowed by the first sort-key condition, when WHERE has = on the index's partition key and no top-level OR. The named partitions, when every top-level OR branch has = or IN [...] on the index's partition key. Otherwise the whole index. |
partiql_ |
| GSI with a composite key | None: any statement on the index fails with Validation "PartiQL statements cannot be executed on tables with multi-attribute HASH keys or multi-attribute RANGE keys.", as in DynamoDB. The base table and its other indexes stay readable. Use Query on the index. |
partiql_ |
SELECT in Batch or Execute |
One item. WHERE must be = on every primary-key attribute and nothing else; any other WHERE fails with Validation. Both refuse an index. |
partiql_ |
A whole-table read is paged like Scan: each page reads up to 1 MiB of items
before WHERE (PartiQL pages). Limit counts the
items read, not the items that match. A selective WHERE can return empty
pages with a NextToken. Capacity is charged for every item read, as for
Scan. A one-partition read is charged as a Query.
Streams, TTL and local backup¶
| Feature | Behavior |
|---|---|
| Streams | AT_ takes epoch seconds. |
| TTL value | Number of epoch seconds, at most five years in the past; other values never expire. |
| Expired item | Base-table reads, reads of an index that projects the TTL attribute, conditions and old images in write responses skip the item. A KEYS_ONLY index, or an INCLUDE index without the TTL attribute, returns it until it is deleted, as DynamoDB does. A successful write that reads the row deletes it first in the same transaction and emits a TTL REMOVE if Streams is enabled. That record can include the expired image. The sweeper reclaims expired rows it finds. Its default interval is one minute, with no deletion deadline (see TTL). |
| TTL clock | Local clock minus DYNODB_ (default one minute). No early expiry while clock skew stays within the margin; visibility can last margin plus clock lag after TTL. |
| TTL in indexes | An index hides an expired item only if it projects the TTL attribute. No index read reads the base item to check expiry. |
| Backups | See backup & restore. |
Alternator compatibility rows¶
The synthetic .scylla.alternator.system.config table holds process-local
settings, such as response compression. Its rows are immutable snapshots:
not durable, no effect on other processes.
Capacity responses¶
ReturnConsumedCapacity uses DynamoDB item-size formulas, not FoundationDB
work. TOTAL aggregates; INDEXES adds per-table/per-index values. Token
replays of TransactWriteItems report read capacity, not original write capacity.
TransactGetItems and each SELECT in PartiQL ExecuteTransaction report
two read units per 4 KiB of each requested item's full logical size. The
size is rounded up per item and counted before any projection. A missing or
TTL-expired item reports 2.
A read-only ExecuteTransaction still returns one ConsumedCapacity entry per
statement; one with writes still reports per table.
BatchGetItem charges each returned item for its whole stored size, whatever
its ProjectionExpression or AttributesToGet returns. The size is rounded
up to 4 KiB per item and halved for an eventually consistent read. A missing or expired
key costs one minimum read.
A Query on a KEYS_ONLY or INCLUDE LSI can ask for ALL_ATTRIBUTES or
for attributes outside the projection. Then it also reads each base item on
the page. The page's index
entries are rounded up together; each base item is rounded up on its own. Both
count before the filter and the projection. INDEXES reports the base reads
under Table and the entries under the index; TOTAL is their sum.
A Query or Scan can read only an index's projection, on a GSI or an LSI.
It then reports its whole charge under that index in INDEXES, with a zero
Table share. A
Scan of an LSI that reads base items reports its whole charge under Table.
This last split is fdyno's own; it is not yet checked against DynamoDB.
Move an application to fdyno¶
- Set the endpoint and a credentials-file key.
See the AWS SDK and CLI guide for service-specific endpoint settings, including
AWS_ENDPOINT_URL_DYNAMODB. - Check the tables above; run your integration tests against fdyno.
dynodb migratecopies schema, items and source stream with a short write pause. For a one-time S3 export copy, useImportTable.- Remove workarounds:
ConsistentRead=truecosts nothing extra; GSI catch-up loops end at once.
Replace DynamoDB Local using fdyno and scripts/fdb-local.sh from the
quickstart. Use the same client code in tests/production;
stale-read tests see current data. See limits and the
read model.
Compare¶
| fdyno | Amazon DynamoDB | ScyllaDB Alternator | |
|---|---|---|---|
| Where it runs | Your hosts, on a FoundationDB cluster | AWS, managed | Your hosts, on a ScyllaDB cluster |
| Global secondary indexes | Eventually consistent | Eventually consistent | — |
| Default reads | Current | Eventually consistent | Eventually consistent (LOCAL_ONE) |
| Multi-item transactions | 100 actions, 4 MB, one FoundationDB transaction (10 MB) | 100 actions, 4 MB | Not supported |
| Conditional updates | Always serialized | Always serialized | Serialized with the always_ write isolation |
| Stream records | Written in the item's transaction | Asynchronous | About 10 s delay by default |
| Expired TTL items | Hidden after TTL plus a clock margin (base reads and indexes that project TTL) | Visible until a background delete | Deleted by a scan, every 24 h by default |
| Backups | On-demand, point-in-time (opt-in, 35 days) and portable archives | On-demand and point-in-time | ScyllaDB snapshots; no DynamoDB backup API |
| Multi-region | FoundationDB region failover; no global tables | Global tables | ScyllaDB multi-datacenter replication |
| Access control | SigV4 with static keys, per-key table scopes and rate limits | IAM | SigV4 with CQL roles, off by default |
Alternator facts: documentation. — means undocumented.
Not guaranteed¶
No full API parity: test exact requests. Global tables (MRSC and MREC) are unsupported. Resource policies, KMS and the external integrations above are not enforced or implemented. Production rejects them; development settings alone do not provide those features.
How we know: the client matrix checks CRUD,
conditions, paginated table/GSI Query, batches with retries,
TransactWriteItems tokens, TTL, streams where clients read them, and waiters.
Conformance suites test request behavior.