ants
🐜🐜🐜 ants is a high-performance and low-cost goroutine pool in Go./ ants 是一个高性能且低损耗的 goroutine 池。 (by panjf2000)
goworker
goworker is a Go-based background worker that runs 10 to 100,000* times faster than Ruby-based workers. (by benmanns)
Our great sponsors
ants | goworker | |
---|---|---|
8 | 3 | |
11,925 | 2,767 | |
- | - | |
7.1 | 0.0 | |
about 22 hours ago | over 1 year ago | |
Go | Go | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ants
Posts with mentions or reviews of ants.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-04.
-
Rust vs Go Issue
I remember doing something similar to OP recently. Goroutines also incur a bit of overhead (have to be GC'd and so on), and the same worker pool technique can be applied to them in much the same way, as seen in popular libraries like https://github.com/panjf2000/ants
-
Beginner ~ Intermediate Go programmer, how can I get better in go and get out of the "beginner" phase?
The best example I can give you is https://github.com/nutsdb/nutsdb it’s great project that got me started, one thing one should know is Go is different “yep” so there’re some coding habits that may bite you in Go and the Go compiler won’t correct you, you wanna learn about optimizations, unsafe usage check out https://github.com/valyala/fasthttp (note this is deep the rabbit hole), wanna learn concurrency check out ants https://github.com/panjf2000/ants with a little aid from “Go by example” you’re good to go
-
Conc: Better Structured Concurrency for Go
conc seem similar to ant lib (https://github.com/panjf2000/ants). Is there any considerable difference between them?
-
Dynamic number of Goroutines based on load?
You can try use this one https://github.com/panjf2000/ants We are using that as well for that purpose
-
Itogami, the best golang thread-pool till date
Benchmarking was performed against existing golang threadpool implementations Ants and Gamma-Zero-Worker-Pool and unlimited goroutines
-
Parapipe - FIFO paralleling pipeline with concurrent job processing
Looks interesting, but what new concepts/features does it bring to the table compared to the already battletested ants library? Link: https://github.com/panjf2000/ants
goworker
Posts with mentions or reviews of goworker.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-06.
- Python/Django to Golang questions
-
Implementing Worker Pools in Go - Go Concurrency
This is a good starting point. As a next step you could introduce some already existing library, for example these ones: https://github.com/benmanns/goworker https://github.com/vardius/worker-pool https://github.com/xxjwxc/gowp
What are some alternatives?
When comparing ants and goworker you can also consider the following projects:
tunny - A goroutine pool for Go
workerpool - Go simple async worker pool
pond - 🔘 Minimalistic and High-performance goroutine worker pool written in Go
threadpool - Golang simple thread pool implementation
go-waitgroup - A sync.WaitGroup with error handling and concurrency control
WorkerGo - A worker pool implementation for Go
semaphore - 🚦 Semaphore pattern implementation with timeout of lock/unlock operations.
Goflow - Simply way to control goroutines execution order based on dependencies
grpool - Lightweight Goroutine pool
conc - Better structured concurrency for go