All Projects → rfyiamcool → pool

rfyiamcool / pool

Licence: other
🍭🍭🍭 golang advanced connect pool !!!

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to pool

Rainbowminer
GPU/CPU Mining script with intelligent profit-switching between miningpools, algorithms, miners, using all possible combinations of devices (NVIDIA, AMD, CPU). Features: actively maintained, uses the top actual miner programs (Bminer, Ccminer, Claymore, Dstm, EnemyZ, Sgminer, T-rex and more) easy setup wizard, webinterface, auto update.
Stars: ✭ 158 (+777.78%)
Mutual labels:  pool
python-PooledProcessMixIn
Fast Concurrent Pool of preforked-processes and threads MixIn for python's socket server
Stars: ✭ 31 (+72.22%)
Mutual labels:  pool
Satana-Android-Debug-Bridge
Удаленное подключение к android устройству, по средствам adb подключений.
Stars: ✭ 27 (+50%)
Mutual labels:  connect
Fastdep
Fast integration dependencies in spring boot.是一个快速集成依赖的框架,集成了一些常用公共的依赖。例:多数据源,Redis,JWT...
Stars: ✭ 178 (+888.89%)
Mutual labels:  pool
Sfpowerkit
A Salesforce DX Plugin with multiple functionalities aimed at improving development and operational workflows
Stars: ✭ 214 (+1088.89%)
Mutual labels:  pool
neth-proxy
Stratum <-> Stratum Proxy and optimizer for ethminer
Stars: ✭ 35 (+94.44%)
Mutual labels:  pool
Mobc
A generic connection pool for Rust with async/await support
Stars: ✭ 141 (+683.33%)
Mutual labels:  pool
finance-project-ddd
Projeto financeiro usando domain driven design, tdd, arquitetura hexagonal e solid
Stars: ✭ 67 (+272.22%)
Mutual labels:  pool
Worker pool
Erlang worker pool
Stars: ✭ 239 (+1227.78%)
Mutual labels:  pool
CryptoProfitSwitcher
Extensible profit switcher for crypto coins and algorithms
Stars: ✭ 49 (+172.22%)
Mutual labels:  pool
Opq
A simple, in-memory queue with worker pooling and rate limiting in Elixir.
Stars: ✭ 178 (+888.89%)
Mutual labels:  pool
Ok ip proxy pool
🍿爬虫代理IP池(proxy pool) python🍟一个还ok的IP代理池
Stars: ✭ 196 (+988.89%)
Mutual labels:  pool
ramos
Generic backend pool
Stars: ✭ 30 (+66.67%)
Mutual labels:  pool
Classic Pool Game
Classic 8 Ball pool game written in JavaScript
Stars: ✭ 177 (+883.33%)
Mutual labels:  pool
kylin-jdbc-pool
better performance for kylin query
Stars: ✭ 15 (-16.67%)
Mutual labels:  pool
Puppeteer Cluster
Puppeteer Pool, run a cluster of instances in parallel
Stars: ✭ 2,175 (+11983.33%)
Mutual labels:  pool
ESPHome-Devices
A collection of ESPHome custom components, configuration files, and custom code for my various ESP8266/ESP32 devices that integrate with Home Assistant.
Stars: ✭ 83 (+361.11%)
Mutual labels:  pool
go-pool
A better Generic Pool (sync.Pool)
Stars: ✭ 42 (+133.33%)
Mutual labels:  pool
workerpool
A workerpool that can get expanded & shrink dynamically.
Stars: ✭ 55 (+205.56%)
Mutual labels:  pool
L3-37
Yet another Tokio connection pooler. May cause robot uprising.
Stars: ✭ 53 (+194.44%)
Mutual labels:  pool

pool

common connnect pool, difference with fatih/pool

  • More adaptation
  • Add MaxIdle threshold
  • ActiveCheck()
  • CurConnCount Lock

some code from https://github.com/silenceper/pool

Usage

factory := func() (interface{}, error) { return net.Dial("tcp", "127.0.0.1:4000") }

close := func(v interface{}) error { return v.(net.Conn).Close() }

//ping := func(v interface{}) error { return nil }

poolConfig := &pool.PoolConfig{
	InitialCap: 5,
	MaxActive:  200, // max open conn
	MaxIdle:    50,  // after idle timeout expired, keep idle conn
	Factory:    factory,
	Close:      close,

	IdleTimeout:   30 * time.Second,
	CheckInterval: 10 * time.Second,
}
p, err := pool.NewChannelPool(poolConfig)
if err != nil {
	fmt.Println("err=", err)
}

v, err := p.Get()

//conn=v.(net.Conn)

p.Put(v)

p.Release()

current := p.Len()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].