Devoxx Greece 2024 - Butcher Virtual Threads like a pro! by PIOTR PRZYBYL

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Java™ 21 is real now. And so are virtual threads.
    Everyone got excited about them, yet you prefer to keep your Java 8 job forever and you already have a nice plan to "accidentally" derail the migration to 21 by using virtual threads in a very, very unfortunate way. What a pity...
    So you decided to come for this talk to look for some inspiration 😉
    Okay, please join us to learn how NOT to use virtual threads, and see the potential performance pitfalls of using them the wrong way.

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

  • @lm.moreira
    @lm.moreira 4 месяца назад

    Is async log appender from log4j useful to mitigate this situation of a virtual thread mounting it after the log IO?

  • @mediahost2243
    @mediahost2243 3 месяца назад

    Good Talk

  • @Tony-dp1rl
    @Tony-dp1rl 5 месяцев назад

    Virtual Threads in Java are such a terrible implementation. I wonder why they didn't look at other languages first.

    • @ekadet7882
      @ekadet7882 5 месяцев назад +2

      What is the 'better' implementation in your opinion?

    • @MrKar18
      @MrKar18 3 месяца назад

      In which way? Any article to elaborate? We can mail java mailer group with your findings.

    • @arpitrathore4914
      @arpitrathore4914 7 дней назад

      The answer is in this talk. The plan was to keep the virtual threads API consistent with regular threads API.
      Also the other languages with better APIs (say async/await) are all single threaded.