个推平台研发部总监 俞锋锋 - 基于 OpenResty 和 Node.js 的微服务架构实践
2020-02-27 186浏览
- 1.OpenResty Node.js 2017-04-16
- 2.SDK 2012 2013 2014 2015 2016 SDK 2017
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.A B C D A B Api C D
- 9./A B Api Api Api / A B
- 10.A F E B C D ACF B DG EH
- 11./ 1 DB DB/Redis 2 MQ MQ 0 DB/Redis 3
- 12.
- 13.
- 14.Web
- 15.A JS Web java B Web BI AB
- 16.Api OpenResty Nginx+Lua HTTP REST JSON HTTP REST JSON ZK Lua Node.js Java Nginx Lua web Java
- 17.OpenResty Nginx Lua Web Lua Web Web OpenResty
- 18.LVS+HaProxy API OpenResty (Nginx+Lua) OpenResty (Nginx+Lua) PM2 Node.js Jetty Java OpenResty (Nginx+Lua) PM2 Node.js Jetty Java ZooKeeper etcd/consul
- 19.WebLua AB C lua lib library conf - OpenResty Nginx+lua upstream WebNode ab c express+co lib library conf upstream Java Jetty XY
- 20.WebLua AB C lua lib library conf - OpenResty Nginx+lua upstream WebNode ab c express+co lib library conf upstream Java Jetty XY
- 21.OpenResty WebLua WebNode upstream node { server 127.0.0.1:3000; } server { listen 6080; server_name localhost *.a.com *.b.com *.c.com; location ^~/auth { rewrite ^/(\w+)/(\w+)/(\w+)?(.*)$ /?app=$1&action=$2&func=$3&$4 break; content_by_lua_file weblua/lua/content/index.lua; } location /tdesk { rewrite ^/(\w+)/(\w+)/(\w+)?(.*)$ /api/?app=$1&action=$2&func=$3&$4 break; access_by_lua_file weblua/lua/access/index.lua; proxy_passhttp://node'>http://node