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

Smoke Your Server Using Goroutines

by Mohammed Gadiwala3mNovember 2nd, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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

@mohammed-gadiwala

Backend engineer | Golang

Learn More
LEARN MORE ABOUT @MOHAMMED-GADIWALA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mohammed Gadiwala HackerNoon profile picture
Mohammed Gadiwala@mohammed-gadiwala
Backend engineer | Golang

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite