技术调研----OpenResty高可用技术初步探索,


文章大纲

  • 简介
  • 安装
  • 搭建网关
  • 网关开源实现
  • 参考文献


简介

OpenResty 介绍
OpenResty(又称:ngx_openresty) 是一个基于 NGINX 的可伸缩的 Web 平台,由中国人章亦春发起,提供了很多高质量的第三方模块。

OpenResty 是一个强大的 Web 应用服务器,Web 开发人员可以使用 Lua 脚本语言调动 Nginx 支持的各种 C 以及 Lua 模块,更主要的是在性能方面,OpenResty可以 快速构造出足以胜任 10K 以上并发连接响应的超高性能 Web 应用系统。

360,UPYUN,阿里云,新浪,腾讯网,去哪儿网,酷狗音乐等都是 OpenResty 的深度用户。
锤子科技在 T2 发布会上将门票收入捐赠给了 OpenResty 开源项目

安装

安装说明
http://www.runoob.com/w3cnote/openresty-intro.html

If you are using Amazon’s EC2 to host OpenResty, remember to install the development tools that are not installed by default because not everyone compiles software.
sudo yum groupinstall "Development Tools"
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/compile-software.html

And since EC2 is based on RedHat…
yum install readline-devel pcre-devel openssl-devel gcc

https://github.com/openresty/openresty/issues/146

Lua 语言的各个版本是不相兼容的。因此本书只介绍 Lua 5.1 语言,这是为标准 Lua 5.1 解释器和 LuaJIT 2 所共同支持的。LuaJIT 支持的对 Lua 5.1 向后兼容的 Lua 5.2 和 Lua 5.3 的特性,我们也会在方便的时候予以介绍。

来自 https://moonbingbing.gitbooks.io/openresty-best-practices/content/lua/main.html

搭建网关

https://www.jianshu.com/p/00849d04114c?from=singlemessage

https://mp.weixin.qq.com/s?__biz=MzAxNzMwOTQ0NA==&mid=2653355281&idx=3&sn=73f965e2db44e5e156b0e5a98f2af2b8&chksm=8035d77ab7425e6c34c661410fa5626cc552761828bca36ac9e871da2121e215c3dbcdf1b460#rd

https://blog.csdn.net/zhangxm_qz/article/details/87939230

https://blog.csdn.net/forezp/article/details/78616779

网关开源实现

http://orange.sumory.com/docs/

参考文献

  • OpenResty 使用介绍

相关内容

    暂无相关文章