Handle 1,000,000 Threads with Java and Spring Boot !!!

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 75

  • @yugandharreddynalabolu
    @yugandharreddynalabolu 4 місяці тому +1

    I have done data migration from one system to another system by transferring 10 lakhs documents along with metadata recently using fixed thread pool service with 8 threads. I am hearing this virtual threads first time and good thing learned from you. Thank you so much for this video. Appreciating you

  • @rajumurugesan6927
    @rajumurugesan6927 4 місяці тому +3

    Nice comparison between executor service and virtual threads.

  • @sumanthmuttuvalli4931
    @sumanthmuttuvalli4931 5 місяців тому +1

    Easy Explanation ,Watched many videos to Understand Virtual Threads This video made me clear about it. Thank you so much 🙏 .

  • @matrixlnmi169
    @matrixlnmi169 5 місяців тому

    Abhee accha say mutache bhee aaya hai..but knowledge confidence level is awesome. 👍

  • @ehson191
    @ehson191 5 місяців тому

    Articulation to Execution and demonstration, Full marks!!

  • @abhinavkumar2038
    @abhinavkumar2038 5 місяців тому

    Awesome explanation!!
    Please make a video on multithreading!

  • @vamseevery
    @vamseevery 5 місяців тому +2

    4:10 - bro there will be waiting time if all the threads are CPU bounded and not I/O bounded. Even if they are I/O bounded there will be waiting time.

  • @pranaymunshi1
    @pranaymunshi1 Місяць тому

    Really helpful. Thanks a lot bro.

  • @tribhuvannarain
    @tribhuvannarain 5 місяців тому +1

    Very helpful video. can you create a video covering completable future with multithreading using virtual threads? I know that you briefly touched upon it in this video. A detailed video will be very helpful.

    • @DailyCodeBuffer
      @DailyCodeBuffer  5 місяців тому

      I will plan on it

    • @primegurjar
      @primegurjar 5 місяців тому +1

      What stopping you to explore it by yourself?

    • @avalagum7957
      @avalagum7957 5 місяців тому

      Why do you want to use completablefuture with virtual thread?
      IMO, completablefuture was written to not block a thread (e.g. we send a request to a DB, then that thread is released, when the data comes back, another thread will work with that data).
      We can confidently block a virtual thread. Then no need of completablefuture.
      Ask some AI to see what it says.

  • @shaktigoyal6713
    @shaktigoyal6713 2 місяці тому

    great explanation..! thank you

  • @realadityaparida
    @realadityaparida 5 місяців тому +1

    It is quite helpful for our current scenario in developing some applications.

    • @DailyCodeBuffer
      @DailyCodeBuffer  5 місяців тому

      Awesome, Glat to be helpful

    • @pranaymunshi1
      @pranaymunshi1 Місяць тому

      Yes, after hearing this lecture it is utmost needed.

  • @phanikumar817
    @phanikumar817 4 місяці тому

    Very simple and easy to understand. good effort to share your knowledge.
    Which video editor you are using, its very cool and impressive.

  • @djricky89999
    @djricky89999 2 місяці тому

    Ciao! Io ho un notebook con cpu intel 2 core 4 threads, quando lavoro con il pc virtuale rallenta! Ho 16gb di RAM DDR3. Con questo metodo di virtual thraed riesco a velocizzare?. Translate to Italian and English

  • @suryasikharej8116
    @suryasikharej8116 4 місяці тому

    Hey I have a confusion. As per my knowledge platform threads are mapped to number of cpu cores/kthreads. If i have 100 Java.lang thread then the JVM thread scheduler will not wait for the first 4 threads to complete then next 4 threads . The platform thread will be shared between all java.lang.Thread in a time slicing manner or the thread with more priority. Am i correct? If not please correct me.
    If you are talking about threadpool like in tomcat servers where we can mention max_threads then I can make max_threads as 200 and run in a 4 core maching with preemption.
    According to you if i have a million concurrent request then i need million core cpu?

  • @VenkateshM-w9r
    @VenkateshM-w9r 4 місяці тому

    We enabled virtual threads in first service only which in turn making call to second service where virtual threads is not enabled so how did it work?

  • @YounasPA-d8r
    @YounasPA-d8r 29 днів тому

    wonderful content.
    thanks.

  • @santuc1990
    @santuc1990 5 місяців тому

    Nicely explained and I will definitely encourage to my team members to start implementing this. While we are already using Reactive Programing, is there any additional benefits VT will yield on top of what we have?

  • @apackes4363
    @apackes4363 5 місяців тому +3

    You enabled virtual thread in team-app but how player-bloc is able to handle 32 requests at a time?

    • @avanishpatel4936
      @avanishpatel4936 4 місяці тому

      There isn’t any limitations on on player-app it’s just wait for 2sec to serve the request but not limited that it can only handle 10 req at a time as team-app

    • @MrYass24
      @MrYass24 Місяць тому

      The "player-bloc" tomcat settings didn't change so the api can handle up to 200 requests simultaneously.

  • @giovannisardisco4541
    @giovannisardisco4541 4 місяці тому

    What about the memory used?

  • @chintunikhil1695
    @chintunikhil1695 5 місяців тому +3

    Make a dedicated video on multi threading instead of directly jumping into virtual threads. No one makes proper videos and can’t explain multithreading concepts properly and that’s the reason most of them don’t have much idea on them.

    • @DailyCodeBuffer
      @DailyCodeBuffer  5 місяців тому +1

      Thank you for suggestions
      I will plan on creating a video on that

  • @KAPILKUMAR-pq9ue
    @KAPILKUMAR-pq9ue 5 місяців тому

    Please bring a full tutorial on executor for virtual thread and so we can implement in some real project

  • @vinodreddymalapati
    @vinodreddymalapati 5 місяців тому

    can we use spring.threads.virtual.enabled in spring boot 2.X ..?

  • @rajumurugesan6927
    @rajumurugesan6927 4 місяці тому

    How to implement before spring boot version 3.2.0

  • @amitsethi1489
    @amitsethi1489 2 місяці тому

    By your explanation, we should not be able to create a fixed thread pool of more than 8 platform threads. However we know that we certainly can. There is a difference between parallelism and concurrency. So saying that a normal application would be able to handle only 8 requests at the same time is not correct. Why would weBservers would be built to handle 200 requests at the same time then. Virtual threads do help with the throughput but not latency, so again saying that it will make things quicker is flawed, it might appear things are happening fast if the application has a throughput issue. but if there is no throughput issue, then virtual threads are no way going to complete the tasks any faster than the platform threads.

  • @NivedSuresh-e9h
    @NivedSuresh-e9h 5 місяців тому

    8 cpu cores means 8 tasks can be executed parallelly, if more requests come they'll be executed concurrently right?

  • @harikishore4
    @harikishore4 5 місяців тому

    I do not want this used for all the app level only for few blockers then is there any possibility

  • @avalagum7957
    @avalagum7957 5 місяців тому +1

    At the beginning of the video: a machine with a 4-core cpu has only 4 (or 8) threads? I think that there's a misunderstanding of cpu thread and os thread.

    • @eswararaoravada2895
      @eswararaoravada2895 3 місяці тому

      Ya, same doubt, mentioned 8 threads and as per diagram it's 4 threads

  • @aadithyagopalan2684
    @aadithyagopalan2684 5 місяців тому

    Thanks. Helpful to begin with

  • @rashmiranjanmohanty4420
    @rashmiranjanmohanty4420 5 місяців тому

    Could you please create more videos on quarkus

    • @DailyCodeBuffer
      @DailyCodeBuffer  5 місяців тому

      Yes, I had lost that train.
      I had planned a couple of videos but was not able to record those.
      I will surely work on those

  • @ratikantapradhan1537
    @ratikantapradhan1537 3 місяці тому

    How many virtual threads spring can create per platform thread ?
    Suppose my server can now serve 1000 concurrent requests. I have told customer 1000 users can access my dashboard api concurrently.
    After implementing virtual thread, can I tell my customer, now unlimited users can access dashboard api concurrently?

    • @mahee96
      @mahee96 Місяць тому

      Depends on the HW resources, since the scalability per jvm instance is still tied to computing power of the host system…unless a mesh or large distributed instances such as K8 are involved to have unlimited horizontal scaling.
      The virtual threads should in theory almost come to a halt due to busy wait in winning the scheduler contention else there will be significant delays due to the queued up virtual threads, awaiting cpu cycles
      So theoretically they should scale infinitely but they are designed to carry out short lived light weight tasks and not a computationally intensive task which can be run directly using platform threads

  • @vinaysingh3443
    @vinaysingh3443 5 місяців тому

    Could you please create separate video about threads and multithreading from scratch.

  • @adityapathak9442
    @adityapathak9442 5 місяців тому

    Thanks for to the point, fast and clear explanation 🙏

  • @arun6106
    @arun6106 5 місяців тому

    Very informative video Shabbir! keep it up

  • @ramasamyramasamy2423
    @ramasamyramasamy2423 5 місяців тому

    Really superb....🎉❤

  • @raghuvardhansaripalli9636
    @raghuvardhansaripalli9636 5 місяців тому

    Bi, you mentioned that the data will be kept inn heap memory and then gets executed. But storing large data in heap memory leads to performance issue right. So how java takes care of thisvissue?

  • @murugesan5393
    @murugesan5393 5 місяців тому

    Great info thanks

  • @yebundb-bbd
    @yebundb-bbd 5 місяців тому +1

    Hi Sir, coupon code is not working while checkout

  • @deepmodi9354
    @deepmodi9354 5 місяців тому

    Great Explanation 👍

  • @ninadmahalle1647
    @ninadmahalle1647 5 місяців тому

    Thanks bhai

  • @shasha6538
    @shasha6538 4 місяці тому

    So, reactive programming will be dead in coming years?

  • @NitishKumar-er7qe
    @NitishKumar-er7qe 5 місяців тому

    Good !!

  • @bandlavenkatahemanth302
    @bandlavenkatahemanth302 5 місяців тому

    Excellent 🔥

  • @munawarabbas1636
    @munawarabbas1636 5 місяців тому +12

    It's not mastering. The title should be an easy and basic concept about virtual threads

    • @simon8284
      @simon8284 5 місяців тому

      Bro can you share you java journey? Like what modules of spring framework you learnt, from where did you learnt, etc...

    • @DailyCodeBuffer
      @DailyCodeBuffer  5 місяців тому +1

      Sure, I can plan a video on that

  • @deepcool5497
    @deepcool5497 2 місяці тому

    What is non blocking bro. 😂😂

  • @ganeshbabu8263
    @ganeshbabu8263 5 місяців тому +1

    Nice, You copied this from dan vega's UA-cam channel! 😂

  • @razatech22
    @razatech22 5 місяців тому +1

    Develop a full fledged application using multi threading, executors framework and virtual threads. These hello world videos are of no help.

    • @DailyCodeBuffer
      @DailyCodeBuffer  5 місяців тому +1

      Hey, Thanks for suggestions
      I will plan something on that.
      These videos are to clear the concepts, hope you understand