Skip to content

MemoryDB ​

Parity grade: A · SDK aws-sdk-go-v2/service/memorydb@v1.42.3 · last audited 2026-10-12 (b4c2391e7)

Category: Database · View PARITY.md on GitHub · All Services

Parity & Coverage ​

MetricValue
PARITY entries audited45 (43 ok, 2 partial)
Feature families9 (9 ok)
Known gaps3
Structural gaps (can't be emulated)2
Deferred items3
Resource leaksclean

Known Gaps ​

  • Data plane (--memorydb-engine=embedded, default): one in-process miniredis per cluster; every shard and node endpoint reports that single host:port, plaintext only (TLSEnabled is reported but not terminated), and data is not slot-sharded, replicated or persisted (Restore restarts empty servers on new ports). CreateSnapshot, CopySnapshot and the final snapshot on DeleteCluster capture the keyspace (strings, hashes, lists, sets, sorted sets, streams, TTLs) in a private gzip/gob blob stored on the snapshot, and CreateCluster SnapshotName restores it; the blob is persisted with the snapshot, so large datasets grow the persisted state. A sharded embedded model needs one server per shard, slot-aware routing with MOVED replies and CLUSTER SLOTS/SHARDS answers, and a replication link for replicas; miniredis has no cluster mode and pkgs/redisengine provides none of these. The docker engine runs real Redis; see the docker entries below.
  • Docker engine (--memorydb-engine=docker): UpdateCluster ReplicaConfiguration adds and removes replica containers and FailoverShard promotes a replica (pkgs/redisdocker resize.go), but UpdateCluster ShardConfiguration does not migrate slots between containers (Group has no slot-migration step; the shard count changes only the reported topology) and node-type changes have no container resource to resize; IAM-auth users cannot log in (Redis cannot validate IAM tokens); restored (persisted) clusters relaunch empty containers; a snapshot taken in embedded mode restores only into a one-shard cluster; node endpoints report the advertised host (MEMORYDB_HOST, default 127.0.0.1) with distinct ports, and node TLS certificates cover that host, localhost and the cluster endpoint name.
  • Embedded-engine IAM-auth users cannot log in: the embedded server has no SigV4 token validator (IAM evaluation is out of scope); ACL/user changes re-sync running clusters only on UpdateACL, UpdateUser and UpdateCluster.

Structural Gaps ​

These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.

  • CreateCluster.SnapshotArns (S3 RDB files) is accepted and ignored: no S3 integration exists and no data backs an externally uploaded RDB, so there is nothing to import. The in-account SnapshotName restore path is implemented, including key data.
  • ShardDetail.Size (per-shard snapshot size) is never returned: no data is stored in the emulated shards, so there is no size to report.

Deferred Items ​

  • Slot distribution in nested shardObject/nodeObject uses an even 16384-slot split that was not verified against live AWS.
  • RegionalCluster.Status mirrors the regional cluster's own Status; whether AWS reports a separate Region-membership status is unverified.
  • Reserved-node RecurringCharges amounts and frequencies are mock placeholders, not from a real AWS price list.

Audited Operations ​

45 audited operations
OperationWireErrorsStatePersist
CreateClusterokokokok
DescribeClustersokokokok
DeleteClusterokokokok
UpdateClusterfixedokfixedok
BatchUpdateClusterokokokok
FailoverShardokokokok
ListAllowedNodeTypeUpdatesokokokn/a
CreateACLokokokok
DescribeACLsokokokok
DeleteACLokokokok
UpdateACLokokokok
CreateSubnetGroupokokokok
DescribeSubnetGroupsokokokok
DeleteSubnetGroupokokokok
UpdateSubnetGroupokokokok
CreateUserokokokok
DescribeUsersfixedokokok
DeleteUserokokokok
UpdateUserfixedokokn/a
CreateParameterGroupokokokok
DescribeParameterGroupsokokokok
DeleteParameterGroupokokokok
UpdateParameterGroupokokokok
DescribeParametersokokokn/a
ResetParameterGroupokokokok
ListTagsokokokn/a
TagResourceokokokok
UntagResourceokokokok
CreateSnapshotokokokok
DescribeSnapshotsokokokok
CopySnapshotokokokok
DeleteSnapshotokokokok
DescribeEngineVersionsokokokn/a
DescribeEventsokokokok
CreateMultiRegionClusterokokokok
DeleteMultiRegionClusterokokokok
DescribeMultiRegionClustersokokokok
UpdateMultiRegionClusterpartialokokok
ListAllowedMultiRegionClusterUpdatesokokokn/a
DescribeMultiRegionParameterGroupsokokokok
DescribeMultiRegionParametersokokpartialn/a
DescribeReservedNodesokokokok
DescribeReservedNodesOfferingsokokokn/a
PurchaseReservedNodesOfferingokokokok
DescribeServiceUpdatesokokokok

Audited Feature Families ​

Feature FamilyStatus
errorsok
http_status_codesok
fabricated_fieldsok
lifecycleok
timestampsok
pointer_aliasingok
persistenceok
route_matcherok
paginationok

Released under the MIT License.