各位前辈好,下载公司的web端技术架构要重构,之前的web端挺乱的,暂时就不评了。
公司的主要技术搜索,商品信息都是c++后台开发的,然后给手机端提供的接口。web端的展现什么的之前都是通过反向代理通过内网获取商品信息、搜索内容然后将获取的json转换成java bean对象。就是简单的http内网请求通过nginx分发到后台的服务器请求数据。现在想对这一块做个重构,请问可以用到什么技术或者开源的框架。请各位指教。多谢了。
PHP中文网2017-04-17 15:53:25
That is to say, the server you directly face to users is tomcat or the like, followed by nginx, and behind nginx is c++.
There are at least 3 layers. If there is a reverse proxy outside tomcat, it will be 4 layers!
There are indeed too many levels and it looks a bit complicated!
First of all, it is probably too difficult to change the C++ at the end. Generally, this is the part of the code that no one wants to touch or dare to touch.
Considering scaling and performance, a reverse proxy is also a must! But you use nginx only as a reverse proxy, which is a bit condescending. . .
I suggest you take a look at openresty, a full-featured web server based on nginx and a bunch of plug-ins. As you said, just convert the json format to openresty, so easy! At the same time, it can maintain the asynchronous and high concurrency characteristics of nginx!
https://openresty.org
大家讲道理2017-04-17 15:53:25
Make a unified access layer, shield the back-end servers of different languages, and present a unified entrance to the web side