Nutshell

Thoughts come and go, words stay eternal

29 Jul 2022

[algorithm] Think Least_Conn In Math

Abstract least_conn is a load balance algorithm, which distributed incoming request to the server with least connected ...
28 Jul 2022

[program] Lock Free Update Data Struct

Abstract Instead of updating date in-place, create new one then update it’s reference, aka pointer It can only arc...
27 Jul 2022

[network] Detect Half Closed Connection

Abstract Two way to detect half closed connection common: read 1-byte with read deadline unix-like: subscribe epoll even...
17 Dec 2019

[SRE] Transaction Ops

Abstract Always backup configuration or data before update it (or use git like tools manage data version) Seperate opera...