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

Комментарии • 52

  • @cesaredecal2230
    @cesaredecal2230 3 года назад +14

    Thank you so much. You are saving my Amazon internship right here ;)

    • @BeABetterDev
      @BeABetterDev  3 года назад +7

      You're very welcome Cesare and good luck on your internship! Don't forget to Learn and Be Curious!

    • @pushkarsoni8927
      @pushkarsoni8927 3 года назад +2

      Was looking for this comment.

  • @hacmia8708
    @hacmia8708 4 года назад +9

    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!

  • @asthamishra2503
    @asthamishra2503 Год назад +2

    Thia tutorial is soo dope!!!! Thank u so much.

  • @jaimemenendezalvarez5796
    @jaimemenendezalvarez5796 2 года назад +1

    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.

  • @ejazahmed5071
    @ejazahmed5071 3 года назад +3

    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!!

    • @BeABetterDev
      @BeABetterDev  3 года назад +1

      Thanks Ejaz!
      I do agree this topic is quite niche. But thanks for watching and I appreciate the kind words.
      Daniel

  • @priyanka.sarkar
    @priyanka.sarkar 4 года назад +1

    What an amazing amazing explanation. Thanks for such a GREAT tutorial :)

    • @BeABetterDev
      @BeABetterDev  4 года назад +1

      Thank you so much Priyanka, I'm very glad you enjoyed!

  • @alkachawda5920
    @alkachawda5920 2 года назад +1

    Great tutorial. Kindly provide the Github link for the code or share the project.

  • @abhijeetprabhu4117
    @abhijeetprabhu4117 3 года назад +1

    Thank you! Very well explained. :D

  • @puchomuc
    @puchomuc Год назад

    Bless you for this video

  • @PoojaSumann
    @PoojaSumann 3 года назад

    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.

  • @najeed23
    @najeed23 2 года назад +1

    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

    • @BeABetterDev
      @BeABetterDev  2 года назад +1

      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!

    • @najeed23
      @najeed23 2 года назад

      @@BeABetterDev cdk Java would be great :)

  • @ujjwalsharma1005
    @ujjwalsharma1005 Год назад

    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!

  • @avinashak3302
    @avinashak3302 2 года назад

    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

  • @tylersnard
    @tylersnard Год назад

    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?

  • @akshaytalpade4399
    @akshaytalpade4399 2 года назад

    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 ?

  • @rajamahanandireddykommabas3206
    @rajamahanandireddykommabas3206 2 года назад +1

    Hi, Could you please provide the git link for the code shown in the video.
    Thank you.

  • @tanishgupta3907
    @tanishgupta3907 3 года назад

    Best explanation.. But I have a doubt here .. can we have more than one range attribute?

  • @chaitu10552
    @chaitu10552 4 года назад +1

    well explained. thanks

  • @ansedd
    @ansedd 4 года назад

    Very well explained ... Do you know how would I serialize a load output for having it as a file output ?

  • @yueli2146
    @yueli2146 4 года назад

    Is there another way to write the query expression for GSI without the withHashKey call? Can I do a withKeyConditionExpression too instead?

  • @jayaprakashmishra3947
    @jayaprakashmishra3947 Год назад

    How can we fetch data from dyanamodb by indexname??

  • @vinaykr3462
    @vinaykr3462 3 года назад

    Thank you, this was helpful

  • @sunwoojeong9996
    @sunwoojeong9996 2 года назад

    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...

  • @afrozshaikh9099
    @afrozshaikh9099 2 года назад

    Should I use enhancedDynamoDb client or dynamomapper?

  • @TulasiramV
    @TulasiramV Год назад +1

    instead of converting the customer object you can simple annotate the customer class with @DynamoDBDocument on the customer class will l do the job.

  • @foodtaxi6846
    @foodtaxi6846 3 года назад +1

    How to get Transaction for a specific customer id?

    • @BeABetterDev
      @BeABetterDev  3 года назад

      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

  • @hoddybhaba6704
    @hoddybhaba6704 Год назад

    where can i download this code from ?

  • @davidsanthoshkumars9856
    @davidsanthoshkumars9856 3 года назад

    Even If i put @DynamoDbTYpeCOnverted im getting error requires @DynamoDbTypeConverted

  • @AtifAli-zv6xb
    @AtifAli-zv6xb 4 года назад

    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?

    • @AkashPatel-ox3nd
      @AkashPatel-ox3nd 4 года назад

      yes its possible

    • @AtifAli-zv6xb
      @AtifAli-zv6xb 4 года назад

      Akash Patel Can you plz tell me how?Trying to do it since a week, but no success.

  • @Red-gw8cx
    @Red-gw8cx 4 года назад

    Can we have a typescript video

  • @mansiverma2211
    @mansiverma2211 2 года назад

    can anybody post the git link?

  • @davidsanthoshkumars9856
    @davidsanthoshkumars9856 3 года назад

    how to store list of object

  • @mtin79
    @mtin79 4 года назад

    could you do the same for javascript aws sdk?

    • @BeABetterDev
      @BeABetterDev  4 года назад

      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.

  • @tarkeshkandregula6559
    @tarkeshkandregula6559 4 года назад +1

    Please Uploas the files.Thanks :)

  • @ingridcruz7095
    @ingridcruz7095 4 года назад

    Hi! Where can I find this code?

    • @BeABetterDev
      @BeABetterDev  4 года назад

      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.

  • @XinWongDigital
    @XinWongDigital 3 года назад

    node is so much easier :). I guess in the java world, we just have to get used to it.