百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dynamodb-transactions

> 编程语言
开源

Amazon DynamoDB 的事务 [重要] 自 2018 年 11 月起, DynamoDB 提供事务 API,简化了开发者的体验…

358 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Amazon DynamoDB 的事务 [重要] 自 2018 年 11 月起, DynamoDB 提供事务 API,简化了开发者的体验…

Transactions for Amazon DynamoDB

[IMPORTANT] Since November 2018, DynamoDB offers transactional APIs, simplifying the developer experience of making coordinated, all-or-nothing changes to multiple items both within and across tables. DynamoDB Transactions provide atomicity, consistency, isolation, and durability (ACID) in DynamoDB, enabling you to maintain data correctness in your applications more easily. We strongly recommend all developers to use DynamoDB’s built-in, servers-side transactions instead of this client-side library. To learn more about DynamoDB Transactions, see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transactions.html.

Amazon DynamoDB Client-Side Transactions enables Java developers to easily perform atomic writes and isolated reads across multiple items and tables when building high scale applications on Amazon DynamoDB. You can get started in minutes using Maven.

  • Transactions Details & Design
  • DynamoDB Forum
  • Transactions Library Issues

The Amazon DynamoDB Client-Side Transactions library is built on top of the low-level Amazon DynamoDB client in the AWS SDK for Java. For support in using and installing the AWS SDK for Java, see:

  • API Docs
  • SDK Developer Guide
  • AWS SDK Forum
  • SDK Homepage
  • Java Development AWS Blog

Features

  • Atomic writes: Write operations to multiple items are either all go through, or none go through.
  • Isolated reads: Read operations to multiple items are not interfered with by other transactions.
  • Sweepers: In-flight transaction state is stored in a separate table, and convenience methods are provided to "sweep" this table for "stuck" transactions.
  • Easy to use: Mimics the Amazon DynamoDB API by using the request and response objects from the low-level APIs, including PutItem, UpdateItem, DeleteItem, and GetItem.
  • Table helpers: Includes useful methods for creating tables such as and waiting for them to become ACTIVE.

Getting Started

  1. Sign up for AWS - Before you begin, you need an AWS account. Please see the AWS Account and Credentials section of the developer guide for information about how to create an AWS account and retrieve your AWS credentials.
  2. Minimum requirements - To run the SDK you will need Java 1.6+. For more information about the requirements and optimum settings for the SDK, please see the Java Development Environment section of the developer guide.
  3. Install the Amazon DynamoDB Transactions Library - Using Maven is the recommended way to install the Amazon DynamoDB Transactions Library and its dependencies, including the AWS SDK for Java. To download the code from GitHub, simply clone the repository by typing: git clone https://github.com/awslabs/dynamodb-transactions, and run the Maven command described below in "Building From Source".
  4. Run the examples - The included TransactionExamples automatically creates the necessary transactions tables, an example table for data and executes several operations with transactions. You can run the examples using Maven by:
  5. Ensure you have already built the library using Maven (see "Building From Source" below)
  6. Change into the examples directory of the project
  7. Add your AWS Credentials to the file: src/main/resources/com/amazonaws/services/dynamodbv2/transactions/examples/AwsCredentials.properties
  8. Compile the subproject by typing: mvn clean install
  9. Run the examples by typing: mvn exec:java -Dexec.mainClass="com.amazonaws.services.dynamodbv2.transactions.examples.TransactionExamples"

Building From Source

Once you check out the code from GitHub, you can build it using Maven. To disable the GPG-signing in the build, use: mvn clean install -Dgpg.skip=true

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言