Skip to content

PoC about the use of concurrent workers (goroutines) in a "real world" example

License

Notifications You must be signed in to change notification settings

rbadillap/go-workers-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workers

PoC about the use of concurrent workers (goroutines) in a "real world" example

Local Concepts

Tasks

The tasks are the group (or batch) of jobs that we are going to send to the workers to execute. Tasks will be sent one-by-one simulating entrypoints as requests received or builds to execute.

Jobs

Jobs are the process that each existing worker will take to execute. There could be N jobs per task, and workers should be in charge to take one job to execute and return the result of the operation.

Worker

The amount of "agents" that we have available to use to execute each job that a task could has. I am simulating this as the amount of agents that we can assign per client or user in a scenario where we have dynamic amount of agents per user.

Any feedback/suggestion is more than welcome :)

Example

Work Example

About

PoC about the use of concurrent workers (goroutines) in a "real world" example

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages