Load, Save, Query, Delete, with DynamoDB Mapper | Step by Step Tutorial
HTML-код
- Опубликовано: 7 сен 2024
- In this video, I show you how to perform load, save, query and delete operations using DynamoDB Mapper in Java.
Looking to get hands on experience building on AWS with a REAL project? Check out my course - The AWS Learning Accelerator! courses.beabet...
📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚
Clean Code - amzn.to/37T7xdP
Clean Architecture - amzn.to/3sCEGCe
Head First Design Patterns - amzn.to/37WXAMy
Domain Driver Design - amzn.to/3aWSW2W
Code Complete - amzn.to/3ksQDrB
The Pragmatic Programmer - amzn.to/3uH4kaQ
Algorithms - amzn.to/3syvyP5
Working Effectively with Legacy Code - amzn.to/3kvMza7
Refactoring - amzn.to/3r6FQ8U
🎙 MY RECORDING EQUIPMENT 🎙
Shure SM58 Microphone - amzn.to/3r5Hrf9
Behringer UM2 Audio Interface - amzn.to/2MuEllM
XLR Cable - amzn.to/3uGyZFx
Acoustic Sound Absorbing Foam Panels - amzn.to/3ktIrY6
Desk Microphone Mount - amzn.to/3qXMVIO
Logitech C920s Webcam - amzn.to/303zGu9
Fujilm XS10 Camera - amzn.to/3uGa30E
Fujifilm XF 35mm F2 Lens - amzn.to/3rentPe
Neewer 2 Piece Studio Lights - amzn.to/3uyoa8p
💻 MY DESKTOP EQUIPMENT 💻
Dell 34 inch Ultrawide Monitor - amzn.to/2NJwph6
Autonomous ErgoChair 2 - bit.ly/2YzomEm
Autonomous SmartDesk 2 Standing Desk - bit.ly/2YzomEm
MX Master 3 Productivity Mouse - amzn.to/3aYwKVZ
Das Keyboard Prime 13 MX Brown Mechanical- amzn.to/3uH6VBF
Veikk A15 Drawing Tablet - amzn.to/3uBRWsN
📚 References:
My DynamoDB Playlist - • AWS DynamoDB Guides - ...
DynamoDB Schema Design - • AWS DynamoDB Schema De...
DynamoDB Global Secondary Index (GSI) - • What is a DynamoDB GSI...
DynamoDB Local Secondary Index (LSI) - • What is a DynamoDB LSI...
Getting started with AWS: • Introduction to AWS | ...
☁Topics covered include:
DynamoDB Save
DynamoDB Load
DynamoDB Query
DynamoDB Delete
DynamoDB Attribute
DynamoDB TypeConverter
DynamoDB Marshalling
DynamoDB Query
🌎 Find me here:
Twitter - / beabetterdevv
Instagram - / beabetterdevv
Patreon - Donations help fund additional content - / beabetterdev
#AWS
#DynamoDB
#Dynamo
#Serverless
Thank you so much. You are saving my Amazon internship right here ;)
You're very welcome Cesare and good luck on your internship! Don't forget to Learn and Be Curious!
Was looking for this comment.
This tutorial was amazing! I was stuck on trying to write a query and you literally spared me alot of time. Not only that I learned alot. Very clean code, awesome explanations, thank you!
Great to hear!
Thia tutorial is soo dope!!!! Thank u so much.
Glad you like it!
This is just another level! So easy! So simple! Thanks for this tutorial! It's funny that when I really want to understand how something works, languages like Java and C# help me a lot to understand every single detail. Nodejs and python have to much sugar.
Great video that deserves much more views. Unfortunately, it is only relevant to a rather small audience group. Hope it ages well though. Subscribed to your channel. Keep up the good work. Again, thanks for the video!!
Thanks Ejaz!
I do agree this topic is quite niche. But thanks for watching and I appreciate the kind words.
Daniel
What an amazing amazing explanation. Thanks for such a GREAT tutorial :)
Thank you so much Priyanka, I'm very glad you enjoyed!
Great tutorial. Kindly provide the Github link for the code or share the project.
Thank you! Very well explained. :D
Bless you for this video
Amazing video. Thanks for the great explanation. Please try to upload a similar video for Lambda in java and also CloudFormation to create aws resources in yaml.
Great video, can we get a video with cdk pipeline on how to build a ci/cd pipeline on how to build and deploy both the code and infrastructure please
Hi Najeed, I am coming out with a video on this exact topic in the next week or so. Stay tuned and thanks for a great video idea!
@@BeABetterDev cdk Java would be great :)
What if we need to fetch data for multiple inputs like fetch data where transactionId in("t1","t2","t3") and amount in ("50","67").
One way is to use java for-loop but I dont think that would be a good option. Is there any method available in DynamoDBMapper or any other lib for fetching such data?
Thank you for the amazing tutorial by the way!
Hey thanks for this video, enjoyed it thoroughly , can we have 2 Dynamo db connections in single app? If yes how to configure them? If possible can you make video on this
Thank you for this tutorial! Is it possible to map my incoming jsons, when each json is a different length and has a different number of classes?
Great tutorial mate. I am new to dynamo db , your explanation is very crisp and clear.
I have a small question when we query the records. Does adding the .withLimit(5) in the query expression restrict the read units which we have to configure during the creation of the table. Like will only 5 units will be used in this case irrespective of the number of matching records for the query ?
Hi, Could you please provide the git link for the code shown in the video.
Thank you.
Best explanation.. But I have a doubt here .. can we have more than one range attribute?
well explained. thanks
Your'e very welcome!
Very well explained ... Do you know how would I serialize a load output for having it as a file output ?
Is there another way to write the query expression for GSI without the withHashKey call? Can I do a withKeyConditionExpression too instead?
How can we fetch data from dyanamodb by indexname??
Thank you, this was helpful
Hi Vinay, you're very welcome!
Thank you for your nice video! at 16:30, I am getting an error called DynamoDB Mapping Exception: "expected S in value {M: {customerId={S: c1,}, customerName={S: AWS Simplified,}},}".
Could you tell me why I am getting this error? Also, could I have a link for github page or sth that has this code? I tried to find it on the description, but I could not find one...
Should I use enhancedDynamoDb client or dynamomapper?
instead of converting the customer object you can simple annotate the customer class with @DynamoDBDocument on the customer class will l do the job.
Thank you!
How to get Transaction for a specific customer id?
Hi there! You would need a GSI (Global Secondary Index) on customerId in order to do this. I actually have a video on the topic here: ruclips.net/video/ihMOlb8EZKE/видео.html
Cheers
where can i download this code from ?
Even If i put @DynamoDbTYpeCOnverted im getting error requires @DynamoDbTypeConverted
At 25:44 when using query expression while searching with GSI can I search for two different dates simultaneously, for example, you searched with one date "2020-03-01", I want to search with "2020-03-01" and "2020-03-02" simultaneously i.e. in a single query, please let me know if it's possible?
yes its possible
Akash Patel Can you plz tell me how?Trying to do it since a week, but no success.
Can we have a typescript video
can anybody post the git link?
how to store list of object
could you do the same for javascript aws sdk?
Hi Martin, using javascript is something I may look into the future. But as of now I'm pretty focused on predominantly python with a bit of java.
Please Uploas the files.Thanks :)
Hi! Where can I find this code?
Hi Ingrid. I checked through my folders and must have accidentally deleted this code. I'm so sorry! Hopefully there is enough detail in the video to copy it out. Sorry about that.
node is so much easier :). I guess in the java world, we just have to get used to it.