Smoke Your Server Using Goroutinesby@mohammed-gadiwala
4,511 reads

Smoke Your Server Using Goroutines

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

The power of goroutines can be easily achieved by leveraging the power of Goroutines. Using concurrent-http library we send requests at different levels of concurrency. This library does not simply allocate equal requests to each thread. Instead each thread picks up a request from the queue and ensures that the load is divided almost equally. As we increase the concurrency we get diminishing returns. Sending more requests would require more clients and an efficient server. Sending requests with a concurrency of 1.3sec as compared to 8.5mins that would have taken in a serial order.

Company Mentioned

Mention Thumbnail
featured image - Smoke Your Server Using Goroutines
Mohammed Gadiwala HackerNoon profile picture

@mohammed-gadiwala

Mohammed Gadiwala


Receive Stories from @mohammed-gadiwala

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa