The aim of the author of this article is analyze the performance of WebSocket and HTTP protocol and their comparison. For this purpose, was used equipment working in a local network consisting of ...server, two client computers, switch and self-created research web application. Using a test application was measured time of data transfer between clients and server as well server and clients. The tests included transmission 100-character texts in specified number of copies considering speed of hardware (laptops) and software (web browsers). Additionally, was investigated the impact of overhead and TLS encryption to performance. The obtained results have illustrated in the form of charts, discussed and appropriate conclusions drawn.
One of the agricultural products which is an important aspect of the life of Indonesian people is rice. Rice disease has a devastating effect on rice production, while detecting rice diseases in ...real-time is still difficult. Therefore, this study designed a Livestream video system that is equipped with a rice disease Classification system. The Livestream system utilizes 4G network communication and is assisted by the WebSocket protocol to communicate in real-time and for the rice disease Classification system using YOLO algorithm. In addition, Livestream uses the raspberry pi camera V2 to take video stream data. In analyzing the performance of the Livestream system, four tests were carried out, namely: functionality test, connectivity test, classification performance test, and implementation performance test. The test was carried out using the wireshark and conky tools, while the classification training used 5447 images from the Huy Minh do dataset that he provided on the Kaggle website. The results show that all programs run well and get a good QoS value according to the index of the parameter results, it is also found that sending non-base64 can reduce the size of the data to approximately 200,000 bytes/s and the performance of the classification system is good because it has an average accuracy of 80% even though it is quite burdening the raspberry pi. This system can still be optimized and developed further to support research in the field of data transmission and the performance of machine learning in a microcontroller.
Large-scale grid compute projects may use computational capabilities of web browser sessions on numerous client devices to run distributed data processing algorithms. WebSocket protocol is the basis ...of duplex communications between browser worker nodes. Publish/Subscribe pattern defines communication scheme for client-server messaging. The downside of WebSocket-based Publish/Subscribe implementations is the stateful nature of long-living network connections. This aspect makes WebSocket scaling and load balancing a challenging task. In present work, we state that the intelligent balancer needs to consider different behavior types of client connections. We propose the negotiation-like mechanism between client and the load balancing system about the target server to set the client on. Our construction principles of scalable multi-server infrastructure with effective inter-server communications intensively use Redis instances, because Redis is a mature, well-tested, high performance system, rich of functions.
Energy consumption especially electricity is considered one of the most serious problems in households these days. It is because the amount of electricity consumed is more than the amount that people ...actually need. This means that there is an overusing which resulted from the inconvenience of moving to the switch to turn off the light or any appliances and it is often that closing the light is forgettable, for instance; in addition, there are no tools for monitoring how much energy that is consumed in residents. From this, it can be easily seen that people are having a problem in energy usage monitor and control. There are two main objectives of this study including 1) creating the communication framework among server, clients and devices, and 2) developing the prototype system that try to solve the mentioned problems which gives the user an opportunity to know the amount of electricity they have used in their houses and also the ability to turn appliances on and off through the Internet on smart devices such as smart phones and tablets that support Android platform or any web browser. Raspberry Pi is used as a microcontroller and the data is transferred to the smart device by WebSocket protocol which is strongly recommended for real-time communication. The example features on the device's screen are user management, controlling and monitoring of appliances. The result expresses that the system is very effective and not difficult to use from users' satisfaction. However, current sensors may be used for a more accurate electricity measurement and Wi-Fi module for more appliances to calculate its power in the future.