异步IO的威力

what so, what’s the problem? 压测目标有提升 之前的压测没有考虑三方服务慢返回(通常为200ms左右)的问题,如果当前的压测仍用同步worker会死的佷惨 how 结合项

Gin源码分析

github仓库:https://github.com/gin-gonic/gin what Gin is a web framework written in Go (Golang). It features a martini-like API with much better performance, up to 40 times faster thanks to httprouter how 从

database/sql 源码学习

数据结构 ColumnType contains the name and type of a column. 用于表示数据库表字段的基本信息 Conn represents a single database connection rather than a pool of database connections. 只代表一个数据库连接,适用于只能对一个连接操作的场景,比如

job queue in Golang

异步任务,还是蛮常见的 算不上 job queue的形式 go process(job) 这其实算不上一个queue,但简单。同时,少了一些对并发的控制,比如控制同时执行的任务数等