When I was getting deeper into backend engineering, one question kept hitting my mind : What actually happens when a server get a thousand requests at the same time ?
Does the server creates a thousand thread? Does it queues them and handles one by one ? How the server magically handles all those requests ?
This blog is the result of chasing that curiosity, trying to answer those questions with clear mentals models and examples.
Go :
Go creates a new goroutine for every request that comes. A goroutine is a virtual thread. Each goroutine is responsible for handling the request. So to handle 10,000 concurrent request, Go creates 10,000 goroutines and resolves them concurrently.
Read full Medium Blog Hear -> How Go and NodeJs handles 10000 concurrent request simultaneously ?
More...
Does the server creates a thousand thread? Does it queues them and handles one by one ? How the server magically handles all those requests ?
This blog is the result of chasing that curiosity, trying to answer those questions with clear mentals models and examples.
Go :
Go creates a new goroutine for every request that comes. A goroutine is a virtual thread. Each goroutine is responsible for handling the request. So to handle 10,000 concurrent request, Go creates 10,000 goroutines and resolves them concurrently.
Read full Medium Blog Hear -> How Go and NodeJs handles 10000 concurrent request simultaneously ?
More...