摘要:
保证高可用的方法1. 日志2. 链路追踪3. 监控 1. 业务监控(领导层) OPS/DAU/访问状态 http code/业务接口(登陆注册聊天上传留言搜索) 2. system monitoring (运维) operating system: cpu/memory/disk usage/dis 阅读全文
摘要:
1. map一定要初始化,slice可以不用初始化2. pointer一定要初始化var c *Course => must init => c = &Course{} or new(Course)3. for-loop的临时变量是一个值会变化的变量 var out []*int for i:= 0 阅读全文