Larry He
Larry He
有没有思路、计划
> Use SCAN for announcing and garbage collection, or whenever else it's possible. I just did some benchmarks real quick and GC times go into the seconds with a few...
LB 学习索引
1. 集中式 vs 分布式 部署形式上的分类,集中式:网关代理形式,分布式:同一集群各实例分别进行负载均衡(也有叫软LB) 2. 集中式的代表 硬件 F5 软件 LVS / HAPorxy / Nginx (Tengine/OpenResty) 3. 4层 vs 7层 按TCP/IP协议栈层次划分 4层:tcp/udp 7层:http 4. 算法 round robin consistent hash ip...
links
- [Uber's leaky-bucket ratelimit](https://github.com/uber-go/ratelimit) - [Netflix zuul's features](https://github.com/Netflix/zuul/wiki) - [Kong - Nginx/Openresty](https://github.com/Kong/kong) - [Tyk - Go](https://github.com/TykTechnologies/tyk) - [Traefik](https://github.com/containous/traefik)
To use service discovery  https://enginyoyen.com/distributed-load-balancing/ https://events.static.linuxfound.org/sites/events/files/slides/DLB-LinuxConf-Berlin.pdf
When I use buffer and reverseproxy to handle failover, I found that `buffer` can not handle the case that [reverseproxy.go return 502](https://github.com/golang/go/blob/master/src/net/http/httputil/reverseproxy.go#L199) if client canceled the request (maybe the connection...
httputil.ReverseProxy will return 502 BadGateway error if client cancel the request. buffer middleware will retry if we configured retry with IsNetworkError() which capture 502 code. If this 502 code is...
Malicious user can access the specific server forever by setting backend server in cookie, it's very dangerous if the project is used in API gateway. I will show how to...
资料
[如何写一个web server](http://lifeofzjs.com/blog/2015/05/16/how-to-write-a-server/) 使用epoll + nonblocking I/O + thread pool(事件循环+ non-blocking I/O + 线程池),类似本repo,文章最后列举作者开发过程中遇到的问题及解决方案,值得学习。