Skip to content

jeffy-mathew/workerpool-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workerpool application


This application uses worker pool with go channels to call urls passed as arguments to the application concurrently.

The number of concurrent workers can be controlled with parallel flag.


Prerequesites:

Steps to run application:

Download / git pull the soure code locally and run following commands from the project root directory

Download dependencies - go mod download

Run unit tests - go test ./...

Build application - go build -o workerpool cmd/main.go

Run application - ./workerpool -parallel 3 adjust.com google.com facebook.com yahoo.com yandex.com twitter.com reddit.com/r/funny reddit.com/r/notfunny baroquemusiclibrary.com


NOTE: The application runs wth default configuration on 5 concurrent workers, it can be overridden with flag parallel.

About

sample app to demo worker pool in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages