πŸƒ Spring Boot & AWS RDS with Spring Cloud AWS

ΠŸΠΎΠ΄Π΅Π»ΠΈΡ‚ΡŒΡΡ
HTML-ΠΊΠΎΠ΄
  • ΠžΠΏΡƒΠ±Π»ΠΈΠΊΠΎΠ²Π°Π½ΠΎ: 27 июл 2024
  • Wow this video got quite long! It cover lots of things and you'll find it especially valuable if you are new to AWS RDS or if you have never used Spring Cloud AWS to connect to RDS.
    Follow me on twitter for more tips, links, articles and just random thoughts about Spring and Java / maciejwalkowiak πŸ˜‰
    0:00 What this video is about?
    0:53 What is AWS RDS?
    2:27 How to create PostgreSQL instance on RDS
    6:51 Connecting to RDS from localhost (don't do it for prod!)
    9:00 Connecting to RDS from Spring Boot application
    14:10 What are the benefits of RDS integration in Spring Cloud AWS?
    16:13 Connecting to RDS from Spring Boot application with Spring Cloud AWS
    21:19 Adding read replicas to RDS database
    23:24 Connecting to RDS read replicas from Spring Cloud AWS
    24:43 When not to use RDS read replicas?
  • КиноКино

ΠšΠΎΠΌΠΌΠ΅Π½Ρ‚Π°Ρ€ΠΈΠΈ • 24

  • @lts8683
    @lts8683 8 мСсяцСв Π½Π°Π·Π°Π΄ +1

    You explain very well the topics, could you please make more tutorials.
    thank you

  • @partyscoutereurope2586
    @partyscoutereurope2586 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄ +1

    Another great video πŸ‘πŸ»
    Thanks

  • @prime8krish
    @prime8krish 2 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄ +1

    Your video is the most clearest source, even compared to Spring docs. Aurora Engine is not supported in spring aws cloud, If you use Aurora with read replicas it "looks works" but the read replica is never used and all queries are sent to the writer instance.

  • @Anbu_Sampath
    @Anbu_Sampath 4 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

    As usual great content. Thanks

  • @pabloezequielsantiagorecag5015
    @pabloezequielsantiagorecag5015 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

    Awesome video!.Thanks a lot!.

  • @najimahmed8923
    @najimahmed8923 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

    cool demo!

  • @learningskills9249
    @learningskills9249 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

    Great content.ThanksπŸ‘πŸΌ

    • @SpringAcademy
      @SpringAcademy  3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

      Thanks for feedback! Glad you liked it!

  • @ernanibatista1806
    @ernanibatista1806 7 мСсяцСв Π½Π°Π·Π°Π΄

    TKS BRO AMAZING

  • @treeeep
    @treeeep Π“ΠΎΠ΄ Π½Π°Π·Π°Π΄

    cool man , thank you

  • @hyunsoolsong5563
    @hyunsoolsong5563 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

    I've been looking for datasource url format a couple of days. Thanks!

  • @kappaj01
    @kappaj01 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄ +1

    Great feature explanation. Like!
    Will there be anything different when using Aurora other than go for the MySQL driver lib vs PostgreSQL lib?

  • @asdfasdfasdfasdf219
    @asdfasdfasdfasdf219 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

    Nice video! Can I set different repository classes pointing to different read replicas?

  • @kamalhm-dev
    @kamalhm-dev 4 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄ +1

    Thanks for this, if I could request, please do reactive repository on relational dbms

    • @SpringAcademy
      @SpringAcademy  4 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

      Thanks! Added to a list

  • @samarthurs8000
    @samarthurs8000 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄ +4

    Very informative. SpringCloud AWS provides most of the features out-of-the-box. Btw, where is the connection details to your AWS Account? Did you configure the AWS AccountId and Key, Region in the SpringBoot application.properties file? Thank you so much!

    • @cloud4java
      @cloud4java 7 мСсяцСв Π½Π°Π·Π°Π΄

      You donΒ΄t need to care about these details about RDS. Once you configure it, you have an endpoint, then you can treat the connection as any other kind of database, connection by endpoint url.

  • @divyaprakashmishra9545
    @divyaprakashmishra9545 5 мСсяцСв Π½Π°Π·Π°Π΄ +1

    Great Video! Just a query for my use case, if I am using secrets manager for db credential how can I make connection for read and write replica using the aws-cloud-sdk dependency because I will not be able to add the details in properties file, Can we acheive this using config or bean?

  • @pawsdev
    @pawsdev 3 мСсяца Π½Π°Π·Π°Π΄

    In local env like compose or local network read replicas downgrades perfomance, so with single db perfomance is higer
    so i make spring app with two datasources for reads and writes
    i tried up to 12 instances of app and 12 instances of postgres, and tried different configs
    12X12 one replica per instance, ot 1X4 and other, but no perfomance improvement
    used haproxy and pgpool for load balancing and RW segregation
    still single DB perfoms faster in common LAN or compose

  • @FabioXen
    @FabioXen Π“ΠΎΠ΄ Π½Π°Π·Π°Π΄

    hello great video.
    The version 2.4 works in the same way?
    Thx!

  • @aronchristensen7792
    @aronchristensen7792 2 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

    Would be interesting how to use Spring Cloud AWS with AWS IAM.

    • @SpringAcademy
      @SpringAcademy  2 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄

      Hmmm like what for example?

  • @cristiannechita2032
    @cristiannechita2032 3 Π³ΠΎΠ΄Π° Π½Π°Π·Π°Π΄ +1

    Won't make a difference, but, you could setup an ingress rule from your local machine IP with a /32 CIDR towards that SG. This way, at least, you won't expose it to the whole world ;) - ofc, you still should not do it in production.