Openresty 动态2017.8,openresty2017.8


更早

NGINX 公司把我去年在 nginx.conf 2016 大会上的关于 OpenResty DSL 的演讲听写成了两篇博客文章,还用我当时的幻灯片作为配图,很给力啊。第一部分:https://www.nginx.com/blog/building-business-systems-with-domain-specific-languages-for-nginx-openresty-part-1/ 第二部分:https://www.nginx.com/blog/building-business-systems-with-domain-specific-languages-for-nginx-openresty-part-2/ 我帮他们简单看了一眼,找了几个明显的错别字。

8.25

借一个哥们提问的机会,我刚刚在 luajit 官方邮件列表里简单分享了一下我们是如何提高 LuaJIT fuzz test
的随机性和有效性的:https://www.freelists.org/post/luajit/VM-stress-increase,1 最后力荐了一下 Mozilla rr 这个神器 [嘻嘻] 捉虫也是一门学问,是大学问。

8.27

agentzh:

Mashape 公司最近赞助了我们 OpenResty Inc 公司把 ngx_stream_lua 模块重写了一遍。现在我们迁移到了 nginx 1.13.3 核心的新的 stream 子系统上面,现在 Lua 驱动的 nginx TCP 服务器也支持 nginx 变量等更多特性了。GitHub 仓库地址是:https://github.com/openresty/stream-lua-nginx-module/

新版的 ngx_stream_lua 模块和我们的 ngx_http_lua 模块现在也通过 ngx_meta_lua 模块共享几乎全部的代码。这意味着未来 stream 和 http 两个子系统的代码同步将不会成为问题,因为它们本质上共享的是同一份代码。这里大量地使用了 perl 的 TT2 模版技术(当然,我们的工具链目前用的是 Lemplate)

这个新版的 ngx_stream_lua 模块其实是从我们全新的 ngx_meta_lua 模块自动生成的。meta lua 模块的开源仓库在这里:https://github.com/openresty/meta-lua-nginx-module/ 当然后者也能自动生成 ngx_http_lua 模块。这是我们避免代码重复的秘密:使用模版技术来自动生成代码,以及使用共享子模块。C 代码自然是可以让机器来生成的。

感谢我们美国团队的孙大同同学承担了这两个项目的核心开发工作。最近还有新的两期针对 ngx_stream_lua 模块的更多新特性的开发工作,也将是美国的 Mashape 公司赞助的。

网络上的动态

  • london也有很多 openrety的爱好者,还组织了meetup https://www.meetup.com/en-AU/NGINX-Lua-Openresty-Meetup-London/
  • 澳洲一家叫做 Sniip 的公司(移动支付),分享了他们的技术栈,以及Openresty的经验心得 https://www.slideshare.net/DeveloperSteve/apidays-australia-openresty-for-scale (干货不是很多。。)
  • https://www.cryptobells.com/resty-core-the-good-the-bad-and-the-jit-y/ luajit的一些知识
  • https://help.dreamhost.com/hc/en-us/articles/228576547-How-to-install-OpenResty-lua-resty-waf-on-Ubuntu-14-04 这样搭建waf的教程
  • https://scalingo.com/articles/2017/03/24/future-proof-traffic-router-openresty.html 国外的一家 pass平台(类似新浪云) 使用openresty来改造接入网关的文章,大量并且频发的配置重启让他们的系统遇到了瓶颈,openresty帮他们解决了几个痛点,大量ssl配置问题,动态路由,流式日志处理,reload无法关闭长连接导致资源占用问题
  • https://engineering.shopify.com/232843151-surviving-flashes-of-high-write-traffic-using-scriptable-load-balancers-part-ii
  • https://engineering.shopify.com/232808527-from-super-bowl-to-kylie-cosmetics-how-we-handle-massive-traffic-using-scriptable-load-balancers-part-i 国外的电商平台采用openresty 做限流,解决秒杀限流的问题
  • https://blog.imaginea.com/stateless-authentication-implementation-using-jwt-nginxlua-and-memcached/ 介绍怎样使用openresty,jwt, memcached 来构建无状态的认证服务。统一认证网关

最近有身边的朋友使用 orange 这个api网关,下面是几个可以找到资料的地方,总的来说非常简单和易用,有nginx使用经验可以很快的搭建出来个gateway, 花上一会就能配置使用了。(like kong, but simpler, easier)

  • https://github.com/sumory/orange 项目地址
  • http://orange.sumory.com/ 项目文档地址
  • http://www.itdks.com/course/382 饭总演讲的地址,orange的设计理念
  • http://resty.b0.upaiyun.com/orange.pdf 演讲的ppt
  • https://orchina.org/user/linger1216/index 一个群友源码解析的文章

相关内容

    暂无相关文章