DynamoDB Streams
Dynoxide supports DynamoDB Streams with all four view types: NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES, and KEYS_ONLY.
Enabling streams
Streams are enabled per table through StreamSpecification on CreateTable or UpdateTable, exactly as on real DynamoDB:
aws dynamodb create-table \
--endpoint-url http://localhost:8000 \
--table-name Events \
--key-schema AttributeName=pk,KeyType=HASH \
--attribute-definitions AttributeName=pk,AttributeType=S \
--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES
On an existing table:
aws dynamodb update-table \
--endpoint-url http://localhost:8000 \
--table-name Events \
--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES
Over MCP, pass stream_specification to create_table or update_table.
One thing CreateTable rejects: setting StreamEnabled: false while also supplying a StreamViewType. A view type only means something when the stream is on, so the two can't be combined, and Dynoxide returns the same ValidationException DynamoDB does.
Reading records
The dynamodbstreams API works against the same endpoint:
# List streams
aws dynamodbstreams list-streams --endpoint-url http://localhost:8000
# Describe one to get its shard IDs
aws dynamodbstreams describe-stream \
--endpoint-url http://localhost:8000 \
--stream-arn <stream-arn>
# Get an iterator and read
aws dynamodbstreams get-shard-iterator \
--endpoint-url http://localhost:8000 \
--stream-arn <stream-arn> \
--shard-id <shard-id> \
--shard-iterator-type TRIM_HORIZON
Stream records
From 1.5.0, each record's eventID is a random 32-character hex id, stored with the record so every read returns the same one. It used to be the sequence number, so an in-memory server issued 1, 2, 3 again after every restart, and a consumer that skips eventIDs it has already seen dropped new events. Records already in a database file keep the eventIDs they had.
SequenceNumber is 21 digits, within DynamoDB's 21 to 40, and records already in a database file are shown in the same 21-digit form. Each table's next number is at least the current time in microseconds, so an in-memory server doesn't normally reissue numbers an earlier run gave out.
GetShardIterator checks the number as DynamoDB does. AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER need one between 21 and 40 characters that names a record that could have been issued; TRIM_HORIZON and LATEST refuse one. Each case is a ValidationException. Earlier builds read the stream from its start instead, and their shorter numbers now fail the length check, so a consumer holding one has to restart from TRIM_HORIZON.
Going back to an earlier release replays the stream. A number saved under 1.5.0 doesn't resolve there, and records written under 1.5.0 report a different eventID, so a consumer resuming or de-duplicating after a downgrade processes them again.
Limits worth knowing
Streams expose a single shard. DescribeStream returns one shard, and its ExclusiveStartShardId and Limit paging parameters are accepted but ignored. If your code walks a multi-shard topology or tests shard splitting, that behaviour has no local equivalent here.
The CLI import does not generate stream records. dynoxide import bypasses stream recording for speed, so an import into a stream-enabled table produces no records. Recording starts for writes made after the import finishes. Bulk inserts from code can opt in: Database::import_items with ImportOptions { record_streams: true, .. }, or the MCP bulk_put_items tool with record_streams, write a record per item. From 1.5.0 those records land on the shard DescribeStream lists, follow the table's StreamViewType, and an item that overwrites a key is recorded as a MODIFY with the item it replaced. The CLI import does carry the stream configuration across: if the --schema file's DescribeTable JSON contains a StreamSpecification, streams are enabled on the imported table with no extra flags.
Streams are not wired in the browser build. The WebAssembly build reports its capability set at boot; streams are not in it. A CreateTable carrying an enabled StreamSpecification, or an UpdateTable carrying one at all, is refused before anything is created or changed, so a refusal doesn't leave a half-made table behind. Gate on what the engine reports rather than assuming parity with the native build.
Over MCP
Four tools cover the stream API: list_streams, describe_stream, get_shard_iterator, and get_records. See the MCP docs.