문제

Are you aware of java code samples illustrating usage of Amazon Dynamo DB? If there are any recommended best practices, that would also be very helpful to me.

도움이 되었습니까?

해결책

The AWS SDK for Java has a very simple example for DynamoDB that I used as a jumping off point (direct SDK download link) - the source is available via GitHub as well, see /samples/AmazonDynamoDB/AmazonDynamoDBSample.java.

다른 팁

Check also jcabi-dynamo, which is an object layer on top of AWS DynamoDB Java SDK, for example:

Region region = new Region.Simple(credentials);
Table table = region.table("my-table");
Collection<Item> items = table.frame().where("name", "Jeff");
for (Item item : items) {
  System.out.println(item.get("salary").getS());
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top