update docs
This commit is contained in:
@@ -492,7 +492,7 @@
|
||||
|
||||
因为写入依赖于mysql的写入速度,就相当于压mysql了,所以压测只测试了expand接口,相当于从mysql里读取并利用缓存,shorten.lua里随机从db里获取了100个热key来生成压测请求
|
||||
|
||||

|
||||

|
||||
|
||||
可以看出在我的MacBook Pro上能达到3万+的qps。
|
||||
|
||||
|
||||
12
readme.md
12
readme.md
@@ -91,11 +91,15 @@ go get -u github.com/tal-tech/go-zero
|
||||
|
||||
0. 完整示例请查看
|
||||
|
||||
[从0到1快速构建一个高并发的微服务系统](doc/shorturl.md)
|
||||
[快速构建高并发微服务](doc/shorturl.md)
|
||||
|
||||
1. 从[这里](https://github.com/tal-tech/go-zero/releases)下载goctl工具
|
||||
1. 安装goctl工具
|
||||
|
||||
把goctl放到$PATH的目录下,确保goctl可执行
|
||||
```shell
|
||||
export GO111MODULE=on export GOPROXY=https://goproxy.cn/,direct go get github.com/tal-tech/go-zero/tools/goctl
|
||||
```
|
||||
|
||||
确保goctl可执行
|
||||
|
||||
2. 定义API文件,比如greet.api,可以在vs code里安装`goctl`插件,支持api语法
|
||||
|
||||
@@ -191,7 +195,7 @@ Content-Length: 0
|
||||
|
||||
## 8. 文档 (逐步完善中)
|
||||
|
||||
* [从0到1快速构建一个高并发的微服务系统](doc/shorturl.md)
|
||||
* [快速构建高并发微服务](doc/shorturl.md)
|
||||
* [goctl使用帮助](doc/goctl.md)
|
||||
* [关键字替换和敏感词过滤工具](doc/keywords.md)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user