Giter Site home page Giter Site logo

Readed List about jackyxiong.github.io HOT 1 OPEN

JackyXiong avatar JackyXiong commented on September 25, 2024
Readed List

from jackyxiong.github.io.

Comments (1)

JackyXiong avatar JackyXiong commented on September 25, 2024
  • https://blog.cloudflare.com/graceful-upgrades-in-go/
    类似于 Nginx 这类处理 TCP数据的程序需要平滑更新,因为在新版本开始处理请求和旧版本停止运行之间有时间差,这个时间差内,listen queue 可能会因为队列满而拒绝新的请求。

Nginx 是通过主进程处理重启,主进程收到重启指令后,创建新的主进程和 worker 进程,并不在接受新请求,直到老 worker 处理完成请求退出。

很多处理 http 层面重启的 go 的代码库,但是无法处理 tcp 层面信息。

  • https://stackoverflow.com/questions/45396155/iptables-do-not-block-ip-with-ipset-immediately
    iptables 对加入ipset的 ip 不能马上拦截,因为出于对性能的考虑,iptables对 tcp 包的检查只检查连接状态的包syn、syn+ack、ack,放行已经建立连接的包。若攻击者建立连接后,通过大量的数据包进行 ddos 攻击,iptables 可能不能即时匹配。
    ao

  • https://openacid.github.io/tech/algorithm/slimtrie-design/#

    • 索引构建的2个基本思路:无序的 hash map 型,有序的 tree 结构
      • hash map: 在内存中一次检索定位到数据,O(n)时间复杂度。key 只能等值匹配,不支持<>操作,内存开销大,无序。
      • tree: key 是排序的可以顺序查找,有成熟实现(B, B+, skiplist)。内存开销大。

from jackyxiong.github.io.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.