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
| Metric | Value |
|---|---|
| PARITY entries audited | 45 (43 ok, 2 partial) |
| Feature families | 9 (9 ok) |
| Known gaps | 3 |
| Structural gaps (can't be emulated) | 2 |
| Deferred items | 3 |
| Resource leaks | clean |
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
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
CreateCluster | ok | ok | ok | ok |
DescribeClusters | ok | ok | ok | ok |
DeleteCluster | ok | ok | ok | ok |
UpdateCluster | fixed | ok | fixed | ok |
BatchUpdateCluster | ok | ok | ok | ok |
FailoverShard | ok | ok | ok | ok |
ListAllowedNodeTypeUpdates | ok | ok | ok | n/a |
CreateACL | ok | ok | ok | ok |
DescribeACLs | ok | ok | ok | ok |
DeleteACL | ok | ok | ok | ok |
UpdateACL | ok | ok | ok | ok |
CreateSubnetGroup | ok | ok | ok | ok |
DescribeSubnetGroups | ok | ok | ok | ok |
DeleteSubnetGroup | ok | ok | ok | ok |
UpdateSubnetGroup | ok | ok | ok | ok |
CreateUser | ok | ok | ok | ok |
DescribeUsers | fixed | ok | ok | ok |
DeleteUser | ok | ok | ok | ok |
UpdateUser | fixed | ok | ok | n/a |
CreateParameterGroup | ok | ok | ok | ok |
DescribeParameterGroups | ok | ok | ok | ok |
DeleteParameterGroup | ok | ok | ok | ok |
UpdateParameterGroup | ok | ok | ok | ok |
DescribeParameters | ok | ok | ok | n/a |
ResetParameterGroup | ok | ok | ok | ok |
ListTags | ok | ok | ok | n/a |
TagResource | ok | ok | ok | ok |
UntagResource | ok | ok | ok | ok |
CreateSnapshot | ok | ok | ok | ok |
DescribeSnapshots | ok | ok | ok | ok |
CopySnapshot | ok | ok | ok | ok |
DeleteSnapshot | ok | ok | ok | ok |
DescribeEngineVersions | ok | ok | ok | n/a |
DescribeEvents | ok | ok | ok | ok |
CreateMultiRegionCluster | ok | ok | ok | ok |
DeleteMultiRegionCluster | ok | ok | ok | ok |
DescribeMultiRegionClusters | ok | ok | ok | ok |
UpdateMultiRegionCluster | partial | ok | ok | ok |
ListAllowedMultiRegionClusterUpdates | ok | ok | ok | n/a |
DescribeMultiRegionParameterGroups | ok | ok | ok | ok |
DescribeMultiRegionParameters | ok | ok | partial | n/a |
DescribeReservedNodes | ok | ok | ok | ok |
DescribeReservedNodesOfferings | ok | ok | ok | n/a |
PurchaseReservedNodesOffering | ok | ok | ok | ok |
DescribeServiceUpdates | ok | ok | ok | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
errors | ok |
http_status_codes | ok |
fabricated_fields | ok |
lifecycle | ok |
timestamps | ok |
pointer_aliasing | ok |
persistence | ok |
route_matcher | ok |
pagination | ok |
