feat(dynamodb): add basic DynamoDB service implementation#191
Merged
Conversation
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.
Contributor
📊 Coverage ReportTotal Coverage: 0.0% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Operations Implemented
Table Operations
Item Operations
Features
Test plan
make test-integrationmake lintCloses #6