Larry He

Results 11 comments of Larry He

@lvtu0316 python是跨平台的,应用不需要考虑os,把错误贴一下 ?

## Circuit breaker - https://microservices.io/patterns/reliability/circuit-breaker.html - https://tyk.io/docs/ensure-high-availability/circuit-breakers/ - https://github.com/Netflix/Hystrix/wiki/How-it-Works - https://www.nginx.com/blog/microservices-reference-architecture-nginx-circuit-breaker-pattern/ - https://godoc.org/github.com/vulcand/oxy/cbreaker (configure example: https://docs.traefik.io/basics/#circuit-breakers) - https://github.com/go-kit/kit/tree/master/circuitbreaker - https://docs.microsoft.com/en-us/previous-versions/msp-n-p/dn589784(v=pandp.10)

https://github.com/baidu/bfe-book/blob/version1/frontend_principle/load_balance/load_balance.md

supported etcd now

consul vs zookeeper, etcd https://www.consul.io/intro/vs/zookeeper.html https://technologyconversations.com/2015/09/08/service-discovery-zookeeper-vs-etcd-vs-consul/

> There are two main service discovery patterns: client‑side discovery and server‑side discovery. Let’s first look at client‑side discovery. -- https://www.nginx.com/blog/service-discovery-in-a-microservices-architecture/ ![client-side](https://cdn-1.wp.nginx.com/wp-content/uploads/2016/04/Richardson-microservices-part4-2_client-side-pattern.png) ![server-side](https://cdn-1.wp.nginx.com/wp-content/uploads/2016/04/Richardson-microservices-part4-3_server-side-pattern.png)

Yes, we shouldn't disclose backend server to client. And we should also avoid giving client possibility to select backend server. Cookie is used to map the backend server, simple hash...

@emilevauge Yes, we cannot trust client IP, it's just increase the difficult to control of accessing backend server. Currently I don't have verified it, but I will work more on...

@emilevauge You're right. I have checked [Tengine session sticky module](https://github.com/alibaba/tengine/blob/master/src/http/modules/ngx_http_upstream_session_sticky_module.c), which is based on Nginx, it has an option using server name's md5 value as cookie. We can hide the...

http://man7.org/linux/man-pages/man7/socket.7.html - event 对应的 POLL flag - socket各项参数