面向超市电子货架标签的高并发服务器系统
发布时间:2018-01-10 05:06
本文关键词:面向超市电子货架标签的高并发服务器系统 出处:《华南理工大学》2015年硕士论文 论文类型:学位论文
更多相关文章: 电子货架标签 高并发 Reactor模式 线程池 数据库连接池
【摘要】:电子货架标签用于标识商品的名称、价格等信息,由于其具有绿色环保、低功耗、寿命长、数据更新便捷、显示内容丰富、数据错误率低等优点,越来越多的超市开始使用电子货架标签替代传统的纸质价格标签,这样不仅提高了超市的管理效率,而且节省了超市的人力成本。由于大型连锁超市的电子货架标签数量庞大,数据通讯频繁,普通的服务器系统往往无法满足电子货架标签高并发的上下行通信,所以,后台的服务器往往成为电子货架标签系统的性能瓶颈。本文针对电子货架标签集群与服务器之间的高并发数据通信问题进行研究,分析了电子货架标签集群以及所使用的Zig Bee协议的通信特点。在对比分析了不同服务器框架的优缺点之后,设计并实现了基于Java.NIO技术的Reactor模式高并发服务器。该服务器系统解决了电子货架标签集群和服务器之间高并发的访问难题,有效地减小了服务器的平均响应时间,增大了最佳并发数,提高了每秒查询率TPS。在设计服务器的同时,本文还设计了基于My SQL的高性能后台数据库,以及人性化的后台管理监控软件。在Reactor模式服务器中,分别设计了应对高并发负载请求的线程池和数据库连接池。在线程池的设计方案中,不仅实现了多任务的并行处理,还提出了基于M/M/1/Q/∞/Dynamic排队模型的任务缓冲队列算法,实现了在线程池容量有限的情况下,最大限度地提升线程池的并发能力,在资源消耗和线程池并发能力之间做了很好的平衡。在数据库连接池的设计方案中,不仅减少了不必要的数据库连接创建与销毁,还提出了自适应的连接池容量调整策略和MRU数据缓冲策略,实现了数据库连接的动态分配和自动回收,提高了对热数据的访问速度。并通过定时刷新缓冲区的方式,保证了缓冲区数据的真实性。
[Abstract]:Electronic shelf label is used to identify the name, price and other information of goods, because of its green environment, low power consumption, long life, convenient data update, rich display content, low data error rate and so on. More and more supermarkets begin to use electronic shelf label instead of traditional paper price label, which not only improves the efficiency of supermarket management. Because of the large number of electronic shelf labels and frequent data communication, the common server system often can not meet the high concurrency of electronic shelf labels up and down communication. Therefore, the backstage server often becomes the bottleneck of the performance of the electronic shelf label system. This paper focuses on the problem of high concurrent data communication between the electronic shelf label cluster and the server. This paper analyzes the communication characteristics of the electronic shelf label cluster and the Zig Bee protocol used. After comparing and analyzing the advantages and disadvantages of different server frameworks. The high concurrency server in Reactor mode based on Java.NIO technology is designed and implemented. This server system solves the problem of high concurrency access between the electronic shelf label cluster and the server. It can effectively reduce the average response time of the server, increase the optimal concurrency number, and increase the query rate per second. At the same time, the server is designed. This paper also designs the high performance background database based on my SQL, and the humanized background management monitoring software in the Reactor mode server. Thread pool and database connection pool are designed to deal with high concurrent load request respectively. In the design of thread pool, not only multi-task parallel processing is realized. A task buffering queue algorithm based on the M / M / 1 / Q / 鈭,
本文编号:1403943
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/1403943.html