摘要
主要研究并实现了使用Vert.x框架将同步非阻塞模式作为Web开发的IO模型,在轻量级Web服务器Nginx上利用高并发技术开发部署学分管理系统。该系统不仅重构了SpringMvc三层架构,而且将原来的3层模型扩充为5层模型,缓解了高并发数据量对系统的压力。在数据安全方面,改变了传统的利用数据库隔离机制来保证数据安全的低效做法,将对数据安全的保证放到持久化层的Server层。在并行数据接收方面,利用线程池,数据缓冲技术,进一步提高了学分管理系统的处理效率。除此之外,又通过创建多路复用的通信通道,着重在百万级并发的通信层面上对传统Web的开发方式进行了优化。最后,通过实验与传统的Web的IO方式作对比,得出异步输入输出在Web的应用中完全能胜任百万级甚至更高的并发量的结论。
We mainly study and implement the use of Vert.x framework to take synchronous non blocking mode as the IO model of Web development,and adopt high concurrency technology to develop and deploy credit management system on the lightweight Web server Nginx.This system not only reconstructs the three-tier structure of SpringMvc,but also expands the original three-tier model to five-tier model,which alleviates the pressure of high concurrent data volume on the system.In terms of data security,the traditional inefficient method of using database isolation mechanism to ensure data security is changed,and the guarantee of data security is put into the Server layer of persistence layer.In terms of parallel data receiving,the processing efficiency of credit management system is further improved by using thread pool and data buffer technology.In addition,by creating a multiplex communication channel,the traditional Web development mode is optimized on the level of millions of concurrent communication.Finally,by comparing the experiment with the traditional IO mode of Web,it is concluded that asynchronous input and output can be used in the application of Web with a concurrency of millions or more.
作者
李思莉
杨井荣
苟强
LI Si-li;YANG Jing-rong;GOU Qiang(Department of Electronic Information and Computer Engineering,The Engineering&Technical College of Chengdu University of Technology,Leshan 614000,China)
出处
《计算机技术与发展》
2020年第10期75-78,85,共5页
Computer Technology and Development
基金
四川省教育自然科学重点项目(18ZA0077)
乐山市科技计划项目(19JRK229)。