#tcp

What Is Layer 4 Load Balancing? | NGINX Load Balancer

Published at April 26, 2019 ·  1 min read

layer 4 和 layer 7 负载均衡的比较。 layer 4 主要是在 tcp/ip 层根据请求 ip 等进行请求的负载均衡, 而 layer 7 则是在 http 层,偏向应用层,可以通过 http header 等信息进行负载均衡,当然性能相比于 layer 4 会低些,资源消耗也会更多。其中 nginx 和 haproxy 两种模式均有,traefik 则只有 layer 7 一种模式 What Is Layer 4 Load Balancing? | NGINX Load Balancer...


Socket Programming in Python (Guide) – Real Python

Published at April 16, 2019 ·  1 min read

在 Python 中进行 Socket 编程。服务端先行通过 socket(), bind(), listen(), accept() 建立一个 socket 监听链接,等待客户端的数据,客户端则通过 socket,connect 向服务端发起建立链接的请求,一旦链接建立,则服务端与客户端均可向双方发送接受数据,当客户端发送一个 close 的请求给服务端,服务端则关闭相应的链接。 Socket Programming in Python (Guide) – Real Python...


What’s the Difference Between TCP and UDP?

Published at March 18, 2019 ·  1 min read

简单介绍 tcp 和 udp 的不同,一个做校验保证数据可达且有序,另一个则为了传输速度只管发送不关心是否已达,常用在游戏和直播领域,追求较大的传输速度和带宽。 What’s the Difference Between TCP and UDP?...


百万 Go TCP 连接的思考: epoll方式减少资源占用

Published at March 11, 2019 ·  1 min read

百万 TCP 链接的文章,通过 epoll 减少资源开销,在设计思路上与 redis 类似,虽然单线程,但并不是瓶颈。 百万 Go TCP 连接的思考: epoll方式减少资源占用...


Tags

abcs accept acid activemq affinity algorithm allocation android array async aws b+tree b-tree backoff benchmark best-practices bfs big-o bigquery bind bitcount blog break broker bubble buffer cache cap cert cgroups channel citus class classmethod cluster concurrency config consumer container cookie cors crawler cronjob csrf ctr data-science data-structure database datadog dataflow datascience decorator defer dfs distributed django dns docker double-shipping drf ecosia elastic-search enumerate epoll extra facebook-pixel financial-report flask flutter forward-proxy freelance frp garbage-collector gc gcp generator get gil git golang goroutine graphql ha handbook haproxy hash hash-slot hashring hashtable hpa http http-auth http-proxy http_proxy https index innodb instagram intergration interview ios javascript jinja2 jobboard jwt k8s kafka kibana kqueue label lambda layer4 layer7 lean levels.io linked-list linux list listen loadbalancer logs long-tail lru marketing master matplotlib memory merge metaclass metaprogramming metrics metrics-server microservices mitm model mq myisam mysql namespace nat netflix network-extension nginx nodejs nomad nosql npm oodesign openssl optimization orm pandas parallelism parkinglot patroni permission pg pipeline pixelme post postgresql postresql prefetch_related prerender process proxy proxycommand put pvm python queue rabbitmq rbac react-native rebase redis redis-cluster replication resource rest restfulapi retargeting retry revenue reverse-proxy rocketmq saas scaleable search-engine security select seo serverless service session set shadosocks shadowsocks shard sharding shell shopify sigint signal sigterm slack slave slow-query sniper sns socket socks5 source-code spa sql sqlalchemy sqs ssh ssl ssl-pinning stack startup state stateful stateless staticmethod string struct swift switch syscall system-design systemctl tcp tcp-proxy thread tmpreaper token traefik trustkit tunning type typeform udp variable vc vpn vuejs web web-development where yarn zset 削峰 宽索引 异步 窄索引 解耦 跨域 跳板机


Archives

2019 (137)
0001 (1)