AWS + Amplify + Step Function + Lambda - Simple example tutorial

  Рет қаралды 1,645

ForDevelopers

ForDevelopers

Күн бұрын

Пікірлер
@FoundationForLawandG
@FoundationForLawandG Жыл бұрын
From a friend who found your video helpful: "That video sent made me almost cry. The guy on that video. May Allah give him hidaya because he helped me; may he go to paradise. Ameen. If you watch the video he does exactly what we are trying to do." We are a small non-profit attempting to provide a free service to senior citizens. Thank You.
@parrou3
@parrou3 Жыл бұрын
Hi, thank you for this awesome Video, I have a qyestion plz, I am developing a public event app using AWS amplify, data are stored in a dynamoDB table and connection between data and application is done with appsync/graphQl, an authenticated user can create a public event, but if no one is interested in it, after 24 hours the status (field in dynamo table) of the event must be switched to 'Expired' and a notification will be sent to the owner of event, Since I am newbie to AWS and amplify, is Lambda function is best service to implement this feature and How? thanks
@ForDevelopers
@ForDevelopers Жыл бұрын
Hi, technically you could use TTL on the table, but most probably this is not what you want - to delete item. So then the solution could be really based on the Lambda function which can use the DynamoDbStream and listen for the Insert event, when the new item is inserted you always have some creation timestamp and base of that you can calculate the 24hours event. In my example I was using the Step Function and wait there, because step function can last long time and the execution is cheap. From that step function you could then trigger the notification (I think the example I showed in the video you can use as well). Another approach would be to have only one Lambda function, which would periodically check the dynamodb table, and if createTimestamp of the item is beyond the 24hours then if could change the state and send the notification. This of course means you need to decide on your schedule interval? 1 hour? 15min? Will the lambda function finish until the timeout? It depends how many items you have in the table, which fullfill the condition. The first approach is more reliable but there are many others, it really depends of the complexity, what you want to build, how fast it should be ...
@parrou3
@parrou3 Жыл бұрын
@@ForDevelopers Thank you a lot, I appreciate all the time and effort you put in to answer me :)
Serverless Functions in Depth with AWS Amplify
1:08:33
Nader Dabit
Рет қаралды 46 М.
Serverless Framework with AWS Lambda Crash Course
1:29:11
Laith Academy
Рет қаралды 113 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 699 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 29 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 100 МЛН
AWS Step Functions Crash Course | Step by Step Tutorial
1:16:28
Enlear Academy
Рет қаралды 62 М.
I think I was wrong about AWS Amplify
30:39
Web Dev Cody
Рет қаралды 62 М.
Authentication in React Native using AWS Amplify V6 | DEVember Day 9
1:58:31
Build a Serverless Workflow with AWS Step Functions
39:42
Be A Better Dev
Рет қаралды 52 М.
Deploy FastAPI on AWS Lambda ⚡ Serverless hosting!
22:24
pixegami
Рет қаралды 41 М.
Develop Lambdas Locally in VS Code Using AWS SAM | AWS Lambda Tutorial
15:50
Developing AWS Lambda Functions Locally in VS Code
20:22
Travis Media
Рет қаралды 130 М.
AWS Amplify: Adding a RESTful backend to reactjs
21:34
Focus Otter
Рет қаралды 35 М.