| The rapid technical development of Internet of Things(IoT)promotes the research and development of intelligent home appliances.Traditional home appliances get access to the Internet through varies communication technologies,but this is just the first step to control home appliances by IoT.Intelligent home appliances are gradually controlled by remote mobile phone APP through a server.In order to make the communication between mobile phone APP and intelligent home appliances reliable,and improve the communication performance,this project tried for the first time to combine some technical solutions,designed and implemented a new intelligent home control and management service system.On the basis of analyzing the current civil and international progress of intelligent home appliances system,this paper discusses some shortcomings of current intelligent home service system.Three major progresses are made in this thesis as follows.Firstly,considering that there are often read and write databases in an intelligent home appliances,a database operation optimization strategy is designed and realized.Dubbo remote call service,Kafka news subscription and distribution service,Redis data cache service are combined in the optimization strategy.Secondly,based on the Netty network communication framework,a new communication protocol is constructed,the data frame structure are defined,function modules of the service system are designed and realized,database operation optimization strategy is implemented to improve system stability.Thirdly,a cluster service system based on LVS is designed and realized,which make it reliable to share data and to communicate between cluster nodes,and the cluster service system greatly enlarges the load capacity of the intelligent home service system.The function and performance of the intelligent home service system are tested in the last part.The test results show that,all the function modules work well,the system can handle 20,000 user requests and reply in one second with one server,just as expected as predetermined.This intelligent home service system has been put into practical commercial service online for several months. |