Kinesis
Parity grade: A · SDK aws-sdk-go-v2/service/kinesis@v1.56.4 · last audited 2026-10-11 (49cff86c4)
Category: Analytics · View PARITY.md on GitHub · All Services
In-memory Kinesis Data Streams with shard split and merge, enhanced fan-out consumers, retention and encryption settings.
Quick start
bash
export AWS_ENDPOINT_URL=http://localhost:8000
aws kinesis create-stream --stream-name my-stream --shard-count 2
aws kinesis put-record --stream-name my-stream --data "SGVsbG8gV29ybGQ=" --partition-key partition-1
IT=$(aws kinesis get-shard-iterator --stream-name my-stream \
--shard-id shardId-000000000000 --shard-iterator-type TRIM_HORIZON \
--query ShardIterator --output text)
aws kinesis get-records --shard-iterator "$IT"
aws kinesis list-shards --stream-name my-streamSupported operations
| Area | Operations |
|---|---|
| Streams | CreateStream, DeleteStream, DescribeStream, DescribeStreamSummary, ListStreams, UpdateStreamMode, UpdateStreamWarmThroughput, UpdateMaxRecordSize |
| Records | PutRecord, PutRecords, GetShardIterator, GetRecords |
| Shards | ListShards, SplitShard, MergeShards, UpdateShardCount |
| Consumers | RegisterStreamConsumer, DescribeStreamConsumer, ListStreamConsumers, DeregisterStreamConsumer, SubscribeToShard |
| Retention and encryption | IncreaseStreamRetentionPeriod, DecreaseStreamRetentionPeriod, StartStreamEncryption, StopStreamEncryption |
| Monitoring and limits | EnableEnhancedMonitoring, DisableEnhancedMonitoring, DescribeLimits, DescribeAccountSettings, UpdateAccountSettings |
| Resource policies | PutResourcePolicy, GetResourcePolicy, DeleteResourcePolicy |
| Tags | AddTagsToStream, RemoveTagsFromStream, ListTagsForStream, TagResource, UntagResource, ListTagsForResource |
| Channels | CreateChannel, DescribeChannel, ListChannels, UpdateChannel, DeleteChannel |
A janitor evicts records older than the stream's retention period.
Configuration
| Flag | Env | Default | Purpose |
|---|---|---|---|
--kinesis-latency | KINESIS_RESPONSE_LATENCY | 0s | Artificial delay before each API response |
--kinesis-shard-limit | KINESIS_ACCOUNT_SHARD_LIMIT | 0 | Open shard limit. 0 is the AWS default of 500, negative is unlimited |
--kinesis-on-demand-stream-count-limit | KINESIS_ACCOUNT_ON_DEMAND_STREAM_LIMIT | 0 | On-demand stream limit. 0 is the AWS default of 10, negative is unlimited |
| none | KINESIS_JANITOR_INTERVAL | 1m | Janitor tick |
Differences from AWS
NOTE
A channel with an S3 Tables (Iceberg) destination accepts PutRecord but never buffers or flushes. Plain S3 delivery works.
ReadProvisionedThroughputExceededandWriteProvisionedThroughputExceededoccur only through the FIS throughput fault. There is no per-shard throughput model.- Channel control-plane throttling (
LimitExceededException) is not applied. KMSAccessDeniedExceptiononStartStreamEncryptionandStopStreamEncryptionis never raised: there is no KMS key-grant model.
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 39 (39 ok) |
| Feature families | 9 (9 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 5 |
| Deferred items | 0 |
| Resource leaks | clean |
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.
- Read/WriteProvisionedThroughputExceeded counts outside the FIS throughput fault, and SubscribeToShard.* metrics: no per-shard throughput model.
- Channel S3Tables (Iceberg) delivery is unmodeled (no services/s3tables data-file write path): such a channel accepts PutRecord but never buffers or flushes. Plain S3 delivery is real. (gopherstack-s781r)
- Channel control-plane 5 TPS throttle (LimitExceededException) and S3Tables PartitionSpec verification: no rate limiting and no Iceberg partitioning backend.
- KMSAccessDeniedException (Start/StopStreamEncryption) is wire-mapped but has no trigger: no KMS key-grant model. UpdateMaxRecordSize applies synchronously (SDK docs state no UPDATING transition for it). (gopherstack-ud2, gopherstack-nbg8)
- StreamId is 'Not Implemented. Reserved for future use.' in the SDK.
Audited Operations
39 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
IncreaseStreamRetentionPeriod | fixed | ok | ok | ok |
DecreaseStreamRetentionPeriod | fixed | ok | ok | ok |
CreateStream | fixed | ok | fixed | ok |
DeleteStream | fixed | fixed | fixed | ok |
DescribeStream | ok | ok | ok | ok |
DescribeStreamSummary | fixed | ok | ok | ok |
ListStreams | fixed | ok | ok | ok |
PutRecord | ok | ok | ok | ok |
PutRecords | ok | ok | ok | ok |
GetShardIterator | ok | ok | fixed | n/a |
GetRecords | fixed | ok | ok | n/a |
ListShards | fixed | ok | ok | n/a |
RegisterStreamConsumer | fixed | ok | ok | ok |
DescribeStreamConsumer | ok | ok | ok | ok |
ListStreamConsumers | fixed | ok | ok | ok |
DeregisterStreamConsumer | ok | ok | ok | ok |
SubscribeToShard | fixed | ok | fixed | n/a |
UpdateShardCount | fixed | ok | fixed | ok |
EnableEnhancedMonitoring | fixed | ok | ok | ok |
DisableEnhancedMonitoring | fixed | ok | ok | ok |
DescribeLimits | fixed | ok | ok | n/a |
DescribeAccountSettings | fixed | ok | ok | ok |
UpdateAccountSettings | fixed | ok | ok | ok |
UpdateMaxRecordSize | fixed | ok | fixed | ok |
UpdateStreamWarmThroughput | fixed | ok | fixed | ok |
MergeShards | ok | ok | fixed | ok |
SplitShard | ok | ok | fixed | ok |
StartStreamEncryption | ok | ok | fixed | ok |
StopStreamEncryption | ok | ok | fixed | ok |
DeleteResourcePolicy | ok | ok | ok | n/a |
GetResourcePolicy | ok | ok | ok | n/a |
PutResourcePolicy | ok | ok | ok | n/a |
ListTagsForResource | ok | ok | ok | ok |
AddTagsToStream | fixed | ok | ok | ok |
RemoveTagsFromStream | fixed | ok | ok | ok |
ListTagsForStream | fixed | ok | ok | ok |
TagResource | ok | ok | ok | ok |
UntagResource | ok | ok | ok | ok |
UpdateStreamMode | fixed | ok | fixed | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
hash_key_routing | ok |
sequence_numbers | ok |
reshard_lineage | ok |
error_codes | ok |
CreateChannel | — |
DeleteChannel | — |
DescribeChannel | — |
ListChannels | — |
UpdateChannel | — |
