Skip to content

Comments

feat(dynamodb): add basic DynamoDB service implementation#191

Merged
sivchari merged 3 commits intomainfrom
feat/dynamodb-basic-implementation
Feb 5, 2026
Merged

feat(dynamodb): add basic DynamoDB service implementation#191
sivchari merged 3 commits intomainfrom
feat/dynamodb-basic-implementation

Conversation

@sivchari
Copy link
Owner

@sivchari sivchari commented Feb 4, 2026

Summary

  • Implement DynamoDB service with in-memory storage using AWS JSON 1.0 protocol
  • Add support for all basic table and item operations
  • Add integration tests using AWS SDK v2

Operations Implemented

Table Operations

  • CreateTable
  • DeleteTable
  • ListTables
  • DescribeTable

Item Operations

  • PutItem
  • GetItem
  • DeleteItem
  • UpdateItem
  • Query
  • Scan

Features

  • Composite key support (HASH + RANGE)
  • Expression attribute names and values
  • Basic filter expression parsing
  • Basic update expression parsing (SET clause)
  • Pagination with LastEvaluatedKey and ExclusiveStartKey

Test plan

  • Integration tests pass with make test-integration
  • Lint passes with make lint
  • Manual testing with AWS CLI

Closes #6

Implement DynamoDB service with in-memory storage using AWS JSON 1.0 protocol.

Operations:
- CreateTable, DeleteTable, ListTables, DescribeTable
- PutItem, GetItem, DeleteItem, UpdateItem
- Query, Scan

Features:
- Composite key support (HASH + RANGE)
- Expression attribute names and values
- Basic filter and update expression parsing
- Pagination with LastEvaluatedKey

Closes #6
Both SQS and DynamoDB use AWS JSON 1.0 protocol with POST /
endpoint, causing route conflicts when both services are registered.

This change introduces:
- JSONProtocolDispatcher: routes requests based on X-Amz-Target header
- JSONProtocolService interface: services implement TargetPrefix() and
  DispatchAction() to use the unified dispatcher
- Updated SQS and DynamoDB to use the dispatcher instead of
  registering routes directly

The dispatcher extracts the service prefix from X-Amz-Target
(e.g., "AmazonSQS" or "DynamoDB_20120810") and routes to the
appropriate service handler.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

📊 Coverage Report

Total Coverage: 0.0%

@sivchari sivchari merged commit ad6de33 into main Feb 5, 2026
3 checks passed
@sivchari sivchari deleted the feat/dynamodb-basic-implementation branch February 5, 2026 05:17
@github-actions github-actions bot mentioned this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DynamoDB: Basic service implementation

1 participant