Spring Tips: DataSources

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

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

  • @FredrikRambris
    @FredrikRambris Год назад +28

    No audio on right channel.

  • @d47im5e
    @d47im5e Год назад +3

    Very cool, informative, reasonably deep dived and educational video. Thank you for your efforts Josh, keep it up!

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

    That was very useful, thank you Josh and many thanks to all Spring developers ❤

  • @RickLynn-zm1tr
    @RickLynn-zm1tr 9 месяцев назад

    Great talk! Very informative and touches on some key areas which can be confusing for beginners.

  • @zakb.7108
    @zakb.7108 11 месяцев назад

    Big thanks to your very educational videos. Please note that this add a huge help for easy and fun learning. Keep it up 😊

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

    Waiting 😊

  • @suikast420
    @suikast420 Год назад +4

    Hey the sound is mono 😀

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

    I was looking ages for a "quick" guidance on this topic!

  • @adityaparikh9544
    @adityaparikh9544 11 месяцев назад +1

    How will ThreadLocal work with Virtual Threads for AbstractRoutingDataSource?

    • @muralikrishnasiju
      @muralikrishnasiju 11 месяцев назад

      Did you find any solution?

    • @zombi1034
      @zombi1034 10 месяцев назад

      @@muralikrishnasijuThreadLocal works just fine with virtual threads too. Only thing is it should not be used as a caching solution for expensive to create objects, as every virtual thread and as they are not pooled, also every task, would end up creating their own thread local instance. Maybe ScopedValue would work here? I am not sure, haven’t played around with them yet.

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

    Could you please provide link to GitHub repo of this project

  • @FrankAboagye-x9s
    @FrankAboagye-x9s 4 месяца назад

    cool

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

    hi.. will it be possible for you to add Scala to SpringBoot

  • @orviese
    @orviese 10 месяцев назад

    Hi, What should be the right approach for this scenario:
    Having an application that is tenantcy based with different database for each tenant to manage its data, let say we have more than 1k of tenants meaning 1k different databases, how efficient would be to switch between them if we determine the tenant by the request received, the typical example is to identify the tenant using a request HEADER.
    Thanks for your comments.

  • @muralikrishnasiju
    @muralikrishnasiju 11 месяцев назад

    Do u know how to connect to multiple dbs if the db url we will get only in runtime?I can't find a way

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

    My left ear agrees, but my right ear is not so sure.

    • @ianwanjala8621
      @ianwanjala8621 4 месяца назад

      thanks for this, I actually thought that my earphones were the issue🤣

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

    What IDE are you using

    • @thinhdz-0
      @thinhdz-0 Год назад +1

      It's IntelliJ Idea Ultimate

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

      @@thinhdz-0 Thank you

  • @nickferrara5770
    @nickferrara5770 6 месяцев назад

    It started easy and got too advanced pretty fast

  • @alaintouret6609
    @alaintouret6609 28 дней назад

    Hi Josh, thank you for sharing your knowledge. May I suggest an improvement?
    In the metaprogramming part, the use of the HikariDataSource instead of LazyConnectionDataSourceProxy would be more explicit in order to show the lack of call of the getConnection method.
    Replace:
    if (bean instanceof LazyConnectionDataSourceProxy db) {
    with:
    if (bean instanceof HikariDataSource db) {
    then you get:
    class com.zaxxer.hikari.HikariDataSource.getConnection()
    class com.zaxxer.hikari.pool.HikariProxyConnection
    operation: apac
    no operation:
    The no operation part exhibits no call to the getConnection() method anymore.
    Please note that I added the class of the invoked bean in the message.

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

    There is no sound !!

  • @solysoly89
    @solysoly89 8 месяцев назад

    Not useful for understanding. Too fast and no structure in how to acheiver the goal