Skip to content

Feature/ddb operations #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Feature/ddb operations #13

merged 3 commits into from
Apr 15, 2024

Conversation

benbpyle
Copy link
Contributor

@benbpyle benbpyle commented Apr 14, 2024

Created new article and sample code wrapped around Basic DynamoDB Operations. #8

PR includes

  • Article
  • Sample template

Everything done but the walk through of the sample
@jeastham1993 jeastham1993 self-requested a review April 14, 2024 18:55

## Introduction

The [AWS SDK for Rust](https://aws.amazon.com/sdk-for-rust/) has been developed to simplify operations with various AWS services including DynamoDB, S3, SQS and many others. More importantly, it comes with sensible and battle-tested defaults that builders can take advantage of such as built-in retries. It has also been developed to minimize resource allocation with wasted copies and clones giving you more resources for your applications. And finally, it's feature aware so you can include just the crates you need to minimize build time and final binary output size.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a hyperlink for the DynamoDB word to the page on the SDK?

Also, what do you think about replacing the word 'builders' with 'you'? Talk directly to the reader?


## Introduction

The [AWS SDK for Rust](../../fundamentals/aws-sdk-rust) has been developed to simplify operations with various AWS services including DynamoDB. By leveraging the SDK, builders can take advantage of the data plane operations exposed over the API like GetItem, PutItem, Scan and the other core DynamoDB operations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Builders -> You


The [AWS SDK for Rust](../../fundamentals/aws-sdk-rust) has been developed to simplify operations with various AWS services including DynamoDB. By leveraging the SDK, builders can take advantage of the data plane operations exposed over the API like GetItem, PutItem, Scan and the other core DynamoDB operations.

This article looks to explore the foundational operations that you will encounter when working with AWS, DynamoDB and Rust. They will be applicable whether you are building and shipping with [Lambda](../../fundamentals/how-lambda-works.md) or with Containers.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You use the 'you' pronoun here :)


Two things worth pointing out in the code below. First up, [the region](focus://2:3) needs to be specified.

The second thing to point out is that this code will allow the client to be [configured locally](focus://5:9). What this enables is the running of DynamoDB locally or in an integration test in a continuious integration pipeline.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the inclusion of DDB local


The key things to note are that you can specify key as a single partition key or you can use a HashMap to use a compound partition key and range key if the table requires.

What is really nice about working with item that are returned from DynamoDB, the very familiar serde concept that is used throughout Rust for working with JSON can be used for this data as well which is also JSON.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just this be 'serve crate' instead of serde concept?

@benbpyle benbpyle merged commit 0b28b64 into main Apr 15, 2024
1 check passed
@benbpyle benbpyle deleted the feature/ddb-operations branch April 15, 2024 00:22
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.

2 participants