Code Space
Code in an Understandable way.
2024
Build Cache from Scratch: 6. observe our service
·602 words·3 mins
If we meet some performance issue, we need some information of our server to help us improve.
Build Cache from Scratch: 5. TCP cache server
·517 words·3 mins
Different from HTTP protocol, we build TCP service from scratch without any framework
Build Cache from Scratch: 4. HTTP cache server
·181 words·1 min
There are different ways to expose HTTP API in golang
Build Cache from Scratch: 3. Cache core implementation
·595 words·3 mins
cache is somewhere we can store data. We usually find data by its ID, or key
Build Cache from Scratch: 2. initialize project
·205 words·1 min
build a high performance cache from scratch.
2023
Build Cache from Scratch: 1. introduction
·127 words·1 min
before we start, we should figure out our final requirements and prepare the environment.
Storage Engine: from Primitives to Implementation
Draft
·445 words·3 mins
work in progress
Queue: Nats, Connectivity and Edge
Draft
·135 words·1 min
Message Queue is a separate server to store message with FIFO sequence. Nats is a high performance message queue written in golang, it introduces some interesting ideas like connectivity, edge
Kubernetes: Controller
·257 words·2 mins
Deployment controller is used to specify replicas, rollback
Kubernetes: API Server
Draft
·2 words·1 min
placeholder
Kubernetes: Scheduler
·87 words·1 min
Scheduler 在 affinity,taints,resource,os 的基础上,从一组 nodes 中,选择最合适的 node,运行 pod
2021
有趣的算法题: 嵌套字段解析
·458 words·3 mins
解析消息,消息按逗号分割,一重引号里套两重引号表示转义
DDIA 读书笔记
·131 words·1 min
一本讲数据系统的很好的书,CRUD 时可以多翻翻,这里梳理了重点
Vim 及其配置
·736 words·4 mins
vim 是一种编辑方式,编辑唯一的要求是定位光标,比如调到某函数,修改该函数的参数
Docker 命令速查
·255 words·2 mins
Docker 构建和测试镜像工作流: 编写 Dockerfile -> 构建新镜像 build -> run -> stop -> rm
HTTPS/SSL/TLS
·131 words·1 min
HTTPS 证书申请,编码调用证书和 nginx 配置