摘要: 协程 1.例如当获取的数据没有前后依赖关系时,可以使用ngx.thread.spawn和ngx.thread.wait同时从数据库不同的库、表或者不同来源(mysql,redis等)获取数据。 https://github.com/openresty/lua nginx module ngxthre 阅读全文
posted @ 2017-07-19 19:46 mentalidade 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 结果: 具体请看文档:https://github.com/openresty/lua nginx module ngxnow 阅读全文
posted @ 2017-07-19 17:27 mentalidade 阅读(2615) 评论(0) 推荐(1) 编辑