2019-07-26 21:25:26 +03:00
< p align = "center" >
2020-08-12 07:11:51 +03:00
< img src = "https://raw.githubusercontent.com/panjf2000/logos/master/ants/logo.png" / >
2019-12-15 08:13:59 +03:00
< b > Go 语言的 goroutine 池< / b >
2019-07-26 21:25:26 +03:00
< br / > < br / >
2022-12-20 16:31:47 +03:00
< a title = "Build Status" target = "_blank" href = "https://github.com/panjf2000/ants/actions?query=workflow%3ATests" > < img src = "https://img.shields.io/github/actions/workflow/status/panjf2000/ants/test.yml?branch=master&style=flat-square&logo=github-actions" / > < / a >
2020-08-12 07:11:51 +03:00
< a title = "Codecov" target = "_blank" href = "https://codecov.io/gh/panjf2000/ants" > < img src = "https://img.shields.io/codecov/c/github/panjf2000/ants?style=flat-square&logo=codecov" / > < / a >
< a title = "Release" target = "_blank" href = "https://github.com/panjf2000/ants/releases" > < img src = "https://img.shields.io/github/v/release/panjf2000/ants.svg?color=161823&style=flat-square&logo=smartthings" / > < / a >
< a title = "Tag" target = "_blank" href = "https://github.com/panjf2000/ants/tags" > < img src = "https://img.shields.io/github/v/tag/panjf2000/ants?color=%23ff8936&logo=fitbit&style=flat-square" / > < / a >
2019-07-26 20:25:40 +03:00
< br / >
2020-08-12 07:11:51 +03:00
< a title = "Go Report Card" target = "_blank" href = "https://goreportcard.com/report/github.com/panjf2000/ants" > < img src = "https://goreportcard.com/badge/github.com/panjf2000/ants?style=flat-square" / > < / a >
< a title = "Doc for ants" target = "_blank" href = "https://pkg.go.dev/github.com/panjf2000/ants/v2?tab=doc" > < img src = "https://img.shields.io/badge/go.dev-doc-007d9c?style=flat-square&logo=read-the-docs" / > < / a >
< a title = "Mentioned in Awesome Go" target = "_blank" href = "https://github.com/avelino/awesome-go#goroutines" > < img src = "https://awesome.re/mentioned-badge-flat.svg" / > < / a >
2019-07-26 21:25:26 +03:00
< / p >
2018-06-08 09:50:56 +03:00
2022-08-24 16:17:54 +03:00
[英文 ](README.md ) | 中文
2019-10-13 17:38:15 +03:00
## 📖 简介
2018-06-08 09:50:56 +03:00
2019-11-21 07:24:22 +03:00
`ants` 是一个高性能的 goroutine 池,实现了对大规模 goroutine 的调度管理、goroutine 复用,允许使用者在开发并发程序的时候限制 goroutine 数量,复用资源,达到更高效执行任务的效果。
2018-06-08 09:50:56 +03:00
2019-10-13 17:38:15 +03:00
## 🚀 功能:
2018-06-08 09:50:56 +03:00
2019-10-09 14:42:32 +03:00
- 自动调度海量的 goroutines, 复用 goroutines
2019-12-15 08:13:59 +03:00
- 定期清理过期的 goroutines, 进一步节省资源
2024-10-17 06:16:43 +03:00
- 提供了大量实用的接口:任务提交、获取运行中的 goroutine 数量、动态调整 Pool 大小、释放 Pool、重启 Pool 等
2019-08-21 17:07:19 +03:00
- 优雅处理 panic, 防止程序崩溃
2024-10-17 06:16:43 +03:00
- 资源复用,极大节省内存使用量;在大规模批量并发任务场景下甚至可能比原生 goroutine 并发具有***更高的性能***
2019-09-05 15:31:52 +03:00
- 非阻塞机制
2024-10-17 06:16:43 +03:00
- 预分配内存 (环形队列,可选)
2018-06-08 09:50:56 +03:00
2020-05-24 08:10:08 +03:00
## 💡 `ants` 是如何运行的
### 流程图
2019-10-07 14:31:03 +03:00
< p align = "center" >
2019-10-08 15:49:47 +03:00
< img width = "845" alt = "ants-flowchart-cn" src = "https://user-images.githubusercontent.com/7496278/66396519-7ed66e00-ea0c-11e9-9c1a-5ca54bbd61eb.png" >
2019-10-07 14:31:03 +03:00
< / p >
2020-05-24 08:10:08 +03:00
### 动态图
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-1.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-2.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-3.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-4.png)
2019-10-13 17:38:15 +03:00
## 🧰 安装
2018-06-08 09:50:56 +03:00
2019-10-07 14:50:09 +03:00
### 使用 `ants` v1 版本:
``` powershell
2018-06-08 09:50:56 +03:00
go get -u github.com/panjf2000/ants
```
2019-11-23 06:19:48 +03:00
### 使用 `ants` v2 版本 (开启 GO111MODULE=on):
2019-10-07 14:50:09 +03:00
```powershell
go get -u github.com/panjf2000/ants/v2
```
2019-10-13 17:38:15 +03:00
## 🛠 使用
2019-11-21 07:24:22 +03:00
写 go 并发程序的时候如果程序会启动大量的 goroutine , 势必会消耗大量的系统资源( 内存, CPU) , 通过使用 `ants` ,可以实例化一个 goroutine 池,复用 goroutine ,节省资源,提升性能:
2018-06-08 09:50:56 +03:00
``` go
package main
import (
"fmt"
"sync"
"sync/atomic"
2018-07-02 09:45:25 +03:00
"time"
2018-06-08 09:50:56 +03:00
2019-08-25 09:25:09 +03:00
"github.com/panjf2000/ants/v2"
2018-06-08 09:50:56 +03:00
)
var sum int32
2018-12-03 06:23:37 +03:00
func myFunc(i interface{}) {
2018-07-02 09:45:25 +03:00
n := i.(int32)
atomic.AddInt32(& sum, n)
2018-06-08 09:50:56 +03:00
fmt.Printf("run with %d\n", n)
}
2018-12-03 06:23:37 +03:00
func demoFunc() {
2018-06-08 09:50:56 +03:00
time.Sleep(10 * time.Millisecond)
fmt.Println("Hello World!")
}
func main() {
2018-07-02 09:45:25 +03:00
defer ants.Release()
2018-06-08 09:50:56 +03:00
runTimes := 1000
2019-02-02 05:30:50 +03:00
// Use the common pool.
2018-06-08 09:50:56 +03:00
var wg sync.WaitGroup
2019-02-02 05:30:50 +03:00
syncCalculateSum := func() {
demoFunc()
wg.Done()
}
2018-06-08 09:50:56 +03:00
for i := 0; i < runTimes ; i + + {
wg.Add(1)
2019-08-21 17:07:19 +03:00
_ = ants.Submit(syncCalculateSum)
2018-06-08 09:50:56 +03:00
}
wg.Wait()
fmt.Printf("running goroutines: %d\n", ants.Running())
fmt.Printf("finish all tasks.\n")
2018-12-06 19:33:43 +03:00
// Use the pool with a function,
2019-02-02 05:30:50 +03:00
// set 10 to the capacity of goroutine pool and 1 second for expired duration.
2018-12-01 14:41:02 +03:00
p, _ := ants.NewPoolWithFunc(10, func(i interface{}) {
2018-06-08 09:50:56 +03:00
myFunc(i)
wg.Done()
})
2018-07-02 09:45:25 +03:00
defer p.Release()
2019-02-02 05:30:50 +03:00
// Submit tasks one by one.
2018-06-08 09:50:56 +03:00
for i := 0; i < runTimes ; i + + {
wg.Add(1)
2019-08-21 17:07:19 +03:00
_ = p.Invoke(int32(i))
2018-06-08 09:50:56 +03:00
}
wg.Wait()
fmt.Printf("running goroutines: %d\n", p.Running())
fmt.Printf("finish all tasks, result is %d\n", sum)
2023-11-27 05:56:56 +03:00
if sum != 499500 {
panic("the final result is wrong!!!")
}
// Use the MultiPool and set the capacity of the 10 goroutine pools to unlimited.
// If you use -1 as the pool size parameter, the size will be unlimited.
// There are two load-balancing algorithms for pools: ants.RoundRobin and ants.LeastTasks.
mp, _ := ants.NewMultiPool(10, -1, ants.RoundRobin)
defer mp.ReleaseTimeout(5 * time.Second)
for i := 0; i < runTimes ; i + + {
wg.Add(1)
_ = mp.Submit(syncCalculateSum)
}
wg.Wait()
fmt.Printf("running goroutines: %d\n", mp.Running())
fmt.Printf("finish all tasks.\n")
// Use the MultiPoolFunc and set the capacity of 10 goroutine pools to (runTimes/10).
mpf, _ := ants.NewMultiPoolWithFunc(10, runTimes/10, func(i interface{}) {
myFunc(i)
wg.Done()
}, ants.LeastTasks)
defer mpf.ReleaseTimeout(5 * time.Second)
for i := 0; i < runTimes ; i + + {
wg.Add(1)
_ = mpf.Invoke(int32(i))
}
wg.Wait()
fmt.Printf("running goroutines: %d\n", mpf.Running())
fmt.Printf("finish all tasks, result is %d\n", sum)
if sum != 499500*2 {
panic("the final result is wrong!!!")
}
2018-06-08 09:50:56 +03:00
}
2018-12-05 19:50:33 +03:00
```
2018-12-02 08:48:44 +03:00
2019-10-13 17:38:15 +03:00
### Pool 配置
2019-08-21 17:07:19 +03:00
2018-06-08 09:50:56 +03:00
```go
2019-10-07 15:53:23 +03:00
// Option represents the optional function.
type Option func(opts *Options)
// Options contains all options which will be applied when instantiating a ants pool.
2019-08-21 17:07:19 +03:00
type Options struct {
2020-08-12 07:11:51 +03:00
// ExpiryDuration is a period for the scavenger goroutine to clean up those expired workers,
// the scavenger scans all workers every `ExpiryDuration` and clean up those workers that haven't been
// used for more than `ExpiryDuration` .
2019-08-21 17:07:19 +03:00
ExpiryDuration time.Duration
2020-01-09 12:32:40 +03:00
// PreAlloc indicates whether to make memory pre-allocation when initializing Pool.
2019-08-21 17:07:19 +03:00
PreAlloc bool
// Max number of goroutine blocking on pool.Submit.
// 0 (default value) means no such limit.
MaxBlockingTasks int
// When Nonblocking is true, Pool.Submit will never be blocked.
// ErrPoolOverload will be returned when Pool.Submit cannot be done at once.
// When Nonblocking is true, MaxBlockingTasks is inoperative.
Nonblocking bool
// PanicHandler is used to handle panics from each worker goroutine.
// if nil, panics will be thrown out again from worker goroutines.
PanicHandler func(interface{})
2020-08-12 07:11:51 +03:00
// Logger is the customized logger for logging info, if it is not set,
// default standard logger from log package is used.
Logger Logger
2019-08-21 17:07:19 +03:00
}
2019-10-07 15:53:23 +03:00
// WithOptions accepts the whole options config.
2019-08-21 17:07:19 +03:00
func WithOptions(options Options) Option {
return func(opts *Options) {
*opts = options
}
}
2019-10-07 15:53:23 +03:00
// WithExpiryDuration sets up the interval time of cleaning up goroutines.
2019-08-21 17:07:19 +03:00
func WithExpiryDuration(expiryDuration time.Duration) Option {
return func(opts *Options) {
opts.ExpiryDuration = expiryDuration
}
}
2019-10-07 15:53:23 +03:00
// WithPreAlloc indicates whether it should malloc for workers.
2019-08-21 17:07:19 +03:00
func WithPreAlloc(preAlloc bool) Option {
return func(opts *Options) {
opts.PreAlloc = preAlloc
}
}
2019-10-07 15:53:23 +03:00
// WithMaxBlockingTasks sets up the maximum number of goroutines that are blocked when it reaches the capacity of pool.
2019-08-21 17:07:19 +03:00
func WithMaxBlockingTasks(maxBlockingTasks int) Option {
return func(opts *Options) {
opts.MaxBlockingTasks = maxBlockingTasks
}
}
2019-10-07 15:53:23 +03:00
// WithNonblocking indicates that pool will return nil when there is no available workers.
2019-08-21 17:07:19 +03:00
func WithNonblocking(nonblocking bool) Option {
return func(opts *Options) {
opts.Nonblocking = nonblocking
}
}
2019-10-07 15:53:23 +03:00
// WithPanicHandler sets up panic handler.
2019-08-21 17:07:19 +03:00
func WithPanicHandler(panicHandler func(interface{})) Option {
return func(opts *Options) {
opts.PanicHandler = panicHandler
}
}
2020-08-12 07:11:51 +03:00
// WithLogger sets up a customized logger.
func WithLogger(logger Logger) Option {
return func(opts *Options) {
opts.Logger = logger
}
}
2018-06-08 09:50:56 +03:00
```
2019-08-21 17:07:19 +03:00
通过在调用`NewPool`/`NewPoolWithFunc`之时使用各种 optional function, 可以设置`ants.Options`中各个配置项的值,然后用它来定制化 goroutine pool.
2019-10-13 17:38:15 +03:00
### 自定义池
2018-06-08 09:50:56 +03:00
`ants` 支持实例化使用者自己的一个 Pool ,指定具体的池容量;通过调用 `NewPool` 方法可以实例化一个新的带有指定容量的 Pool ,如下:
``` go
2018-07-24 16:53:34 +03:00
p, _ := ants.NewPool(10000)
2019-08-21 17:07:19 +03:00
```
2019-10-13 17:38:15 +03:00
### 任务提交
2019-08-21 17:07:19 +03:00
提交任务通过调用 `ants.Submit(func())` 方法:
```go
ants.Submit(func(){})
2018-06-08 09:50:56 +03:00
```
2019-11-21 07:24:22 +03:00
### 动态调整 goroutine 池容量
需要动态调整 goroutine 池容量可以通过调用`Tune(int)`:
2018-06-08 09:50:56 +03:00
``` go
2019-01-26 19:05:51 +03:00
pool.Tune(1000) // Tune its capacity to 1000
pool.Tune(100000) // Tune its capacity to 100000
2018-06-08 09:50:56 +03:00
```
该方法是线程安全的。
2019-10-13 17:38:15 +03:00
### 预先分配 goroutine 队列内存
2019-07-26 21:25:26 +03:00
2020-01-25 09:39:27 +03:00
`ants` 允许你预先把整个池的容量分配内存, 这个功能可以在某些特定的场景下提高 goroutine 池的性能。比如, 有一个场景需要一个超大容量的池,而且每个 goroutine 里面的任务都是耗时任务,这种情况下,预先分配 goroutine 队列内存将会减少不必要的内存重新分配。
2019-07-26 21:25:26 +03:00
```go
// ants will pre-malloc the whole capacity of pool when you invoke this function
2019-08-21 17:07:19 +03:00
p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
2019-07-26 21:25:26 +03:00
```
2020-01-25 09:39:27 +03:00
### 释放 Pool
2019-01-26 19:05:51 +03:00
```go
pool.Release()
```
2024-12-11 16:13:42 +03:00
或者
```go
pool.ReleaseTimeout(time.Second * 3)
```
2020-01-25 09:39:27 +03:00
### 重启 Pool
2020-01-17 07:44:00 +03:00
```go
// 只要调用 Reboot() 方法,就可以重新激活一个之前已经被销毁掉的池,并且投入使用。
pool.Reboot()
```
## ⚙️ 关于任务执行顺序
2019-12-14 07:02:35 +03:00
`ants` 并不保证提交的任务被执行的顺序,执行的顺序也不是和提交的顺序保持一致,因为在 `ants` 是并发地处理所有提交的任务,提交的任务会被分派到正在并发运行的 workers 上去,因此那些任务将会被并发且无序地被执行。
2019-10-14 14:31:25 +03:00
## 👏 贡献者
请在提 PR 之前仔细阅读 [Contributing Guidelines ](CONTRIBUTING.md ),感谢那些为 `ants` 贡献过代码的开发者!
2023-05-21 11:00:19 +03:00
< a href = "https://github.com/panjf2000/ants/graphs/contributors" >
< img src = "https://contrib.rocks/image?repo=panjf2000/ants" / >
< / a >
2019-10-14 14:31:25 +03:00
2019-10-13 17:38:15 +03:00
## 📄 证书
2019-09-24 08:35:42 +03:00
2020-08-02 10:56:16 +03:00
`ants` 的源码允许用户在遵循 [MIT 开源证书 ](/LICENSE ) 规则的前提下使用。
2019-09-24 08:35:42 +03:00
2019-10-13 17:38:15 +03:00
## 📚 相关文章
2019-09-24 08:35:42 +03:00
2019-11-21 07:24:22 +03:00
- [Goroutine 并发调度模型深度解析之手撸一个高性能 goroutine 池 ](https://taohuawu.club/high-performance-implementation-of-goroutine-pool )
2020-05-31 14:37:55 +03:00
- [Visually Understanding Worker Pool ](https://medium.com/coinmonks/visually-understanding-worker-pool-48a83b7fc1f5 )
- [The Case For A Go Worker Pool ](https://brandur.org/go-worker-pool )
2021-09-27 05:38:55 +03:00
- [Go Concurrency - GoRoutines, Worker Pools and Throttling Made Simple ](https://twin.sh/articles/39/go-concurrency-goroutines-worker-pools-and-throttling-made-simple )
2019-09-24 08:35:42 +03:00
2020-05-28 12:30:55 +03:00
## 🖥 用户案例
2021-11-24 20:37:39 +03:00
### 商业公司
2021-03-18 15:38:17 +03:00
以下公司/组织在生产环境上使用了 `ants` 。
2019-09-24 08:35:42 +03:00
2024-06-16 10:16:18 +03:00
< table >
< tbody >
< tr >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://www.tencent.com/" >
2024-06-16 10:16:18 +03:00
< img src = "https://res.strikefreedom.top/static_res/logos/tencent_logo.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
< a href = "https://www.bytedance.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/ByteDance_Logo.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
< a href = "https://tieba.baidu.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/baidu-tieba-logo.png" width = "300" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
< a href = "https://weibo.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/weibo-logo.png" width = "300" / >
< / a >
< / td >
< / tr >
< tr >
< td align = "center" valign = "middle" >
< a href = "https://www.tencentmusic.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/tencent-music-logo.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
< a href = "https://www.futuhk.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/futu-logo.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
< a href = "https://www.shopify.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/shopify-logo.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
< a href = "https://weixin.qq.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/wechat-logo.png" width = "250" / >
< / a >
< / td >
< / tr >
< tr >
< td align = "center" valign = "middle" >
< a href = "https://www.baidu.com/" target = "_blank" >
2024-07-05 10:13:23 +03:00
< img src = "https://res.strikefreedom.top/static_res/logos/baidu-mobile-logo.png" width = "250" / >
2024-06-16 10:16:18 +03:00
< / a >
< / td >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://www.360.com/" target = "_blank" >
2024-06-16 10:16:18 +03:00
< img src = "https://res.strikefreedom.top/static_res/logos/360-logo.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://www.huaweicloud.com/" target = "_blank" >
2024-06-16 10:16:18 +03:00
< img src = "https://res-static.hc-cdn.cn/cloudbu-site/china/zh-cn/wangxue/header/logo.svg" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://matrixorigin.cn/" target = "_blank" >
2024-06-16 10:16:18 +03:00
< img src = "https://matrixorigin.cn/_next/static/media/logo-light-zh.a2a8f3c0.svg" width = "250" / >
< / a >
< / td >
< / tr >
< tr >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://adguard-dns.io/" target = "_blank" >
2024-06-16 10:16:18 +03:00
< img src = "https://cdn.adtidy.org/website/images/AdGuardDNS_black.svg" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://bk.tencent.com/" target = "_blank" >
2024-06-16 10:16:18 +03:00
< img src = "https://static.apiseven.com/2022/11/14/6371adab14119.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://cn.aliyun.com/" target = "_blank" >
2024-07-05 10:13:23 +03:00
< img src = "https://res.strikefreedom.top/static_res/logos/aliyun-cn-logo.png" width = "250" / >
2024-06-16 10:16:18 +03:00
< / a >
< / td >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://www.zuoyebang.com/" target = "_blank" >
2024-06-16 10:16:18 +03:00
< img src = "https://res.strikefreedom.top/static_res/logos/zuoyebang-logo.jpeg" width = "300" / >
< / a >
< / td >
< / tr >
2024-06-17 12:56:12 +03:00
< tr >
< td align = "center" valign = "middle" >
2024-07-11 07:16:27 +03:00
< a href = "https://www.antgroup.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/ant-group-logo.png" width = "250" / >
< / a >
< / td >
< td align = "center" valign = "middle" >
< a href = "https://zilliz.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/zilliz-logo.png" width = "250" / >
2024-06-17 12:56:12 +03:00
< / a >
< / td >
2024-07-23 02:02:53 +03:00
< td align = "center" valign = "middle" >
< a href = "https://amap.com/" target = "_blank" >
< img src = "https://res.strikefreedom.top/static_res/logos/amap-logo.png" width = "250" / >
< / a >
< / td >
2024-06-17 12:56:12 +03:00
< / tr >
2024-06-16 10:16:18 +03:00
< / tbody >
< / table >
2021-03-18 15:38:17 +03:00
2024-07-23 02:02:53 +03:00
如果你也正在生产环境上使用 `ants` ,欢迎提 PR 来丰富这份列表。
2024-07-05 10:13:23 +03:00
2021-11-24 20:37:39 +03:00
### 开源软件
2023-07-23 07:05:07 +03:00
这些开源项目借助 `ants` 进行并发编程。
2023-03-07 05:46:27 +03:00
- [gnet ](https://github.com/panjf2000/gnet ): gnet 是一个高性能、轻量级、非阻塞的事件驱动 Go 网络框架。
2023-07-23 07:05:07 +03:00
- [milvus ](https://github.com/milvus-io/milvus ): 一个高度灵活、可靠且速度极快的云原生开源向量数据库。
- [nps ](https://github.com/ehang-io/nps ): 一款轻量级、高性能、功能强大的内网穿透代理服务器。
2024-11-13 06:12:40 +03:00
- [TDengine ](https://github.com/taosdata/TDengine ): TDengine 是一款开源、高性能、云原生的时序数据库 (Time-Series Database, TSDB)。TDengine 能被广泛运用于物联网、工业互联网、车联网、IT 运维、金融等领域。
2023-03-07 05:46:27 +03:00
- [siyuan ](https://github.com/siyuan-note/siyuan ): 思源笔记是一款本地优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。
2022-05-06 14:29:25 +03:00
- [osmedeus ](https://github.com/j3ssie/osmedeus ): A Workflow Engine for Offensive Security.
2023-07-23 07:05:07 +03:00
- [jitsu ](https://github.com/jitsucom/jitsu/tree/master ): An open-source Segment alternative. Fully-scriptable data ingestion engine for modern data teams. Set-up a real-time data pipeline in minutes, not days.
2021-11-24 20:37:39 +03:00
- [triangula ](https://github.com/RH12503/triangula ): Generate high-quality triangulated and polygonal art from images.
2023-03-07 05:46:27 +03:00
- [teler ](https://github.com/kitabisa/teler ): Real-time HTTP Intrusion Detection.
2021-11-24 20:37:39 +03:00
- [bsc ](https://github.com/binance-chain/bsc ): A Binance Smart Chain client based on the go-ethereum fork.
- [jaeles ](https://github.com/jaeles-project/jaeles ): The Swiss Army knife for automated Web Application Testing.
2022-05-13 18:31:30 +03:00
- [devlake ](https://github.com/apache/incubator-devlake ): The open-source dev data platform & dashboard for your DevOps tools.
2023-07-23 07:05:07 +03:00
- [matrixone ](https://github.com/matrixorigin/matrixone ): MatrixOne 是一款面向未来的超融合异构云原生数据库,通过超融合数据引擎支持事务/分析/流处理等混合工作负载,通过异构云原生架构支持跨机房协同/多地协同/云边协同。简化开发运维,消简数据碎片,打破数据的系统、位置和创新边界。
- [bk-bcs ](https://github.com/TencentBlueKing/bk-bcs ): 蓝鲸容器管理平台( Blueking Container Service) 定位于打造云原生技术和业务实际应用场景之间的桥梁; 聚焦于复杂应用场景的容器化部署技术方案的研发、整合和产品化; 致力于为游戏等复杂应用提供一站式、低门槛的容器编排和服务治理服务。
- [trueblocks-core ](https://github.com/TrueBlocks/trueblocks-core ): TrueBlocks improves access to blockchain data for any EVM-compatible chain (particularly Ethereum mainnet) while remaining entirely local.
- [openGemini ](https://github.com/openGemini/openGemini ): openGemini 是华为云开源的一款云原生分布式时序数据库, 可广泛应用于物联网、车联网、运维监控、工业互联网等业务场景, 具备卓越的读写性能和高效的数据分析能力, 采用类SQL查询语言, 无第三方软件依赖、安装简单、部署灵活、运维便捷。
- [AdGuardDNS ](https://github.com/AdguardTeam/AdGuardDNS ): AdGuard DNS is an alternative solution for tracker blocking, privacy protection, and parental control.
- [WatchAD2.0 ](https://github.com/Qihoo360/WatchAD2.0 ): WatchAD2.0 是 360 信息安全中心开发的一款针对域安全的日志分析与监控系统,它可以收集所有域控上的事件日志、网络流量,通过特征匹配、协议分析、历史行为、敏感操作和蜜罐账户等方式来检测各种已知与未知威胁,功能覆盖了大部分目前的常见内网域渗透手法。
- [vanus ](https://github.com/vanus-labs/vanus ): Vanus is a Serverless, event streaming system with processing capabilities. It easily connects SaaS, Cloud Services, and Databases to help users build next-gen Event-driven Applications.
2024-01-26 17:52:50 +03:00
- [trpc-go ](https://github.com/trpc-group/trpc-go ): 一个 Go 实现的可插拔的高性能 RPC 框架。
2024-11-13 06:12:40 +03:00
- [motan-go ](https://github.com/weibocom/motan-go ): Motan 是一套高性能、易于使用的分布式远程服务调用 (RPC) 框架。motan-go 是 motan 的 Go 语言实现。
2021-11-25 18:07:55 +03:00
#### 所有案例:
- [Repositories that depend on ants/v2 ](https://github.com/panjf2000/ants/network/dependents?package_id=UGFja2FnZS0yMjY2ODgxMjg2 )
- [Repositories that depend on ants/v1 ](https://github.com/panjf2000/ants/network/dependents?package_id=UGFja2FnZS0yMjY0ODMzNjEw )
2021-11-24 20:37:39 +03:00
2021-03-18 15:38:17 +03:00
如果你的项目也在使用 `ants` ,欢迎给我提 Pull Request 来更新这份用户案例列表。
2019-10-14 14:31:25 +03:00
2020-05-28 12:30:55 +03:00
## 🔋 JetBrains 开源证书支持
2019-10-24 19:02:01 +03:00
`ants` 项目一直以来都是在 JetBrains 公司旗下的 GoLand 集成开发环境中进行开发,基于 **free JetBrains Open Source license(s)** 正版免费授权,在此表达我的谢意。
2024-09-24 12:13:55 +03:00
< a href = "https://www.jetbrains.com/?from=ants" target = "_blank" > < img src = "https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg" alt = "JetBrains logo." > < / a >
2019-10-24 19:02:01 +03:00
2019-10-14 14:31:25 +03:00
## 💰 支持
如果有意向,可以通过每个月定量的少许捐赠来支持这个项目。
< a href = "https://opencollective.com/ants#backers" target = "_blank" > < img src = "https://opencollective.com/ants/backers.svg" > < / a >
## 💎 赞助
每月定量捐赠 10 刀即可成为本项目的赞助者,届时您的 logo 或者 link 可以展示在本项目的 README 上。
< a href = "https://opencollective.com/ants#sponsors" target = "_blank" > < img src = "https://opencollective.com/ants/sponsors.svg" > < / a >
## ☕️ 打赏
2021-09-13 06:57:25 +03:00
> 当您通过以下方式进行捐赠时, 请务必留下姓名、GitHub 账号或其他社交媒体账号,以便我将其添加到捐赠者名单中,以表谢意。
2020-08-01 05:57:04 +03:00
2019-10-14 17:18:20 +03:00
< img src = "https://raw.githubusercontent.com/panjf2000/illustrations/master/payments/WeChatPay.JPG" width = "250" align = "middle" / >
< img src = "https://raw.githubusercontent.com/panjf2000/illustrations/master/payments/AliPay.JPG" width = "250" align = "middle" / >
2020-07-19 17:59:47 +03:00
< a href = "https://www.paypal.me/R136a1X" target = "_blank" > < img src = "https://raw.githubusercontent.com/panjf2000/illustrations/master/payments/PayPal.JPG" width = "250" align = "middle" / > < / a >
2020-07-31 10:42:38 +03:00
2021-07-29 04:13:32 +03:00
## 🔋 赞助商
< p >
< a href = "https://www.digitalocean.com/" >
< img src = "https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.svg" width = "201px" >
< / a >
< / p >