amazon-dynamodb
What should be done when the provisioned throughput is exceeded?
Yes. Every time your application sends a request that exceeds your capacity you get ProvisionedThroughputExceededException message from Dynamo. However your SDK handles this for you and retries. The default Dynamo retry time starts at 50ms, the default number of retries is 10, and backoff is exponential by default. This means you get retries at: 50ms … Read more
SpringBoot – BeanDefinitionOverrideException: Invalid bean definition
Bean overriding has to be enabled since Spring Boot 2.1, https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1-Release-Notes Bean Overriding Bean overriding has been disabled by default to prevent a bean being accidentally overridden. If you are relying on overriding, you will need to set spring.main.allow-bean-definition-overriding to true. Set spring.main.allow-bean-definition-overriding=true or yml, spring: main: allow-bean-definition-overriding: true to enable overriding again. Edit, Bean … Read more
connecting AWS SAM Local with dynamodb in docker
Many thanks to Heitor Lessa who answered me on Twitter with an example repo Which pointed me at the answer… dynamodb’s docker container is on 127.0.0.1 from the context of my machine (which is why I could interact with it) SAM local’s docker container is on 127.0.0.1 from the context of my machine But they … Read more
Dynamodb scan in sorted order
If you know the HashKey, then any query will return the items sorted by Range key. From the documentation: Query results are always sorted by the range key. If the data type of the range key is Number, the results are returned in numeric order. Otherwise, the results are returned in order of UTF-8 bytes. … Read more
How to query DynamoDB by date (range key), with no obvious hash key?
Although a Global Secondary Index seems to fit your requirements, any attempt to include timestamp related information as part of your Hash Key will most likely create what is known as “Hot Partition”, which is extremely undesirable. The uneven access will occur as the most recent items are going to be retrieved with way more … Read more
What is the recommended way to delete a large number of items from DynamoDB?
What I ideally want to do is call LogTable.DeleteItem(user_id) – Without supplying the range, and have it delete everything for me. An understandable request indeed; I can imagine advanced operations like these might get added over time by the AWS team (they have a history of starting with a limited feature set first and evaluate … Read more