摘要
在智能家居环境中,用户的家庭设备信息保存在智能家居网关,并且可以定制和存储个性化情景模式的设备组合。针对当前云端智能家居网关管理系统在管理所有用户家庭的设备信息时系统越来越庞大和笨重,难以维护和迭代更新的问题,引入微服务架构。从微服务架构的起源与设计理念出发,相比传统的单体架构应用,介绍了微服务架构下系统的优势,并对微服务架构带来的挑战提出了应对措施。根据当前开发和维护的智能家居网关管理系统,结合实际业务情况,采用微服务架构,将系统划分为多个微服务,选用Spring-Cloud开源微服务治理框架,对智能家居网关管理平台进行总体的架构设计和功能设计。功能与性能测试表明,微服务架构下的系统可以满足业务需求并且提升了平台的可拓展性与稳定性。
In the smart home,the user’s home device information is stored in the smart home gateway,and the combination of devices can be customized and stored in personalized scenario mode.Aiming at the problem that the current cloud smart home gateway management system is increasingly large and bulky when managing the device information of all users’homes,and is difficult to maintain and update iteratively,we introduce the micro-service architecture.Starting from the origin and design concept of micro-service architecture,we introduce the system advantages under the micro-service architecture compared with the traditional single-frame architecture,and propose countermeasures for the challenges brought by the micro-service architecture.According to the current smart home gateway management system developed and maintained,and combined with the actual business situation,the system is divided into several micro-services by adopting micro-service architecture.The Spring-Cloud open source micro-service governance framework is selected to carry out overall architecture design and functional design of the smart home gateway management platform.After functional and performance testing,the system under the micro-service architecture can meet the business needs and improve the scalability and stability of the platform.
作者
吴磊
湛健
宋丽华
WU Lei;ZHAN Jian;SONG Li-hua(School of Computer Science,North China University of Technology,Beijing 100144,China)
出处
《计算机技术与发展》
2019年第11期200-205,共6页
Computer Technology and Development
基金
北京市社会科学基金(18JYB015)
北京市自然基金委-市教委联合重点项目(KZ201810009011)