Building Modern Serverless API's with AWS: DynamoDB, Lambda, and API Gateway(Part 2)
Design the primary key for the DynamoDB table and enable the core access patterns
I love creating and writing about the creation of software.
Search for a command to run...
Design the primary key for the DynamoDB table and enable the core access patterns
I love creating and writing about the creation of software.
Download the class 10th Mathematics solutions free of cost solutions for class 10 maths NCERT . Here this website will provide us complete solutions for the class 10th NCERT book free of cost.
A Technical / Non Technical overview of the dynamoDb for Beginners
Building a serverless API with SAM.
Watch the complete Video on Youtube https://www.youtube.com/watch?v=kKX-8L_R2XM Prerequisites Before proceeding make sure you have these dependencies Docker Python 3.11 and above AWS CLI Full access to a foundation model. For this workshop, we'll...

Introduction In a previous workshop, Building event-driven applications with AWS sam and python we built an e-commerce ordering service using AWS SAM, API Gateway, Lambda and Python. Here's the solutions architecture. In that workshop, whenever a ne...

Github Repository https://github.com/EducloudHQ/introduction_to_gen_ai Skill up with serverless on Educloud https://www.educloud.academy/content/da99ad07-7efa-41e7-ba50-b18e6b89e10d This post is an introductory lesson to building AI-enhanced serverle...

Introduction Serverless computing is a cloud-based approach to application development that eliminates the need for provisioning and managing servers. Instead, developers focus on writing code that is triggered by events such as HTTP requests or data...

https://github.com/trey-rosius/sam_stepfunctions Hey!!! How you doing? In this post, we’ll look at how to build a workflow, using SAM as IaC, Appsync, and python. Prerequisites Install AWS Cli (https://docs.aws.amazon.com/cli/latest/userguide/cli-c...

Part 1(https://phatrabbitapps.com/building-modern-serverless-apis-with-aws-dynamodb-lambda-and-api-gatewaypart-1)
| Entity | Hash | Range |
|---|---|---|
| User | "USER#UserId | #METADATA#UserId |
| Post | USER#UserId | POST#PostId#Timestamp |
| Comment | POST#PostId#Timestamp | COMMENT#CommentsId#Timestamp |
Take note of the Partition and Sort Key
The Partition Key is User#UserId and the Sort key is POST#PostId#Timestamp.

Now, here's an aggregate view of the complete table which I call "data". It contains all 3 entities.

Looking at the table, here are the queries we can make
It'll also be good to get all posts, for a specific status. Our Post entity would support 3 status types.
I'll like to display a list of posts with status created or updated on my home tab.
Presently, the status field isn't a Partition Key. So we can't use it to query any data unless we create a Global Secondary Index (GS1) with it as a Partition Key.
With all that in mind, let's adjust the table to support GSI for status.

Now, we can query all posts for a given status.
Till next time my brothers and sisters.✌🏿