How One Singleton Bean handles 1000X Requests concurrently in a Spring Boot App?

preview_player
Показать описание
How One Singleton bean handles 1000X requests in a Spring Boot Application without making the application slow?

#spring #interview #learnwithproy

Useful video links:

Top 3 LinkedList Coding problems asked in interview :

Spring MVC - Learn from Scratch (XML and Java Configuration) and be interview ready | Part1 :

Dependency Injection| Inversion Of Control | Spring tutorial| Spring IOC EXPLAINED like never before :

Best FREE Resources To Learn Spring Frameworks and Microservices :

Most Frequently Asked Linked List Coding Problem in Microsoft, Flipkart, SAP, Cisco Interviews :

Best free resources to learn coding video link:
Рекомендации по теме
Комментарии
Автор

that stateless point for a singleton bean was awesome !!

DurgaShiva
Автор

Excellent explanation, I have a query, considering your example instead of creating a singleton bean, what if we create a static utility method

class Test{
public static <returnType> process(int a, int b){
return a+b;
}
}
and call that method using Test.process(10, 20) to perform certain operation and by doing that can we avoid the singleton object creation?
just asking out of curiosity

rajendralella
Автор

a public void method how can return a+b?

abhisoni
Автор

Beautiful explanation.. if you can explain with some diagrams it would be move easy to understand

Rajnish
Автор

Good one could relate to other doubt I had

ashwinkumar
Автор

Perfect explanation with business scenario

davesachin
Автор

great video.

can you tell me how many threads a single core can handle?

thebigchange
Автор

Great video. Please continue this java & spring series

mounika
Автор

We need explanation for these types of miscallaneous topics.


Thanks a lot

mrputin
Автор

any example for prototype ? when and where its used?

ganeshk
Автор

I have a doubt, in class sum Add method has a void return type but u returning a+b, is it correct way, iam new to java

pangulurisaritha
Автор

Thanks
can you just make video about prototype . which scenario we need use what merits and demerits

RN-jozt
Автор

Would it be correct to say, The first snippet would work if we don't use count variable?

srinivasannapureddy
Автор

Is that count increment according to user request

techNik
Автор

What if I want to use a counter variable in my code and all beans are singleton, then we will not get correct output

vinayneelapu
Автор

What's the maximum number of threads that could be created? There must be a limit.

cuybueno
Автор

how to scale spring boot project to handle more requests

lovetyagi
Автор

Thanks for making this video, i remember the explantion u gave last time:)

MiraclePlayzzzz
Автор

At fisrt part you are weong because its not static variable and and there will be new cooy for each request

naveen_Saini_
Автор

How spring singleton bean is different from Java Singleton class ?

shivajibarge