Utilizing Real Time Technologies in Ruby Web Applications
Journal: International Journal of Computer Science and Mobile Computing - IJCSMC (Vol.11, No. 12)Publication Date: 2022-12-30
Authors : Aleksandr Ulanov;
Page : 34-45
Keywords : Websockets; Long Polling; Server-Sent Events; Ruby; Rack; ActionCable; AnyCable; MessageBus;
Abstract
This research paper is focused on usage of Real Time Technologies specifically with Ruby web applications. Websockets protocol is the most commonly used technology for real time features development, but it is not perfect for all web applications and has its own issues. The study is focusing on comparison of Websockets protocol, Server-Sent Events and Long Polling technique, revealing their pros and cons, and comparing ActionCable, AnyCable, MessageBus libraries for implementing real-time features in Ruby applications. Due to the web framework's stateless nature, long lived connections are blocking web server threads available for regular request-response flow. This is the case for all web servers which are using thread per request model. The study explains how to avoid web server threads blocking in Rack based applications using Rack Hijacking API and what advantages can be obtained when using Long Polling or Server-Sent Events over HTTP/2 protocol instead of using Websockets protocol.
Other Latest Articles
- Analysis of Speech Cryptography Based on Segmentation and Chaotic Logistic Map Keys
- An Assessment of the use of the ISO 50001 Certified Energy Management Systems by Airports
- Livestock Systems and Forage Resources of Small Ruminant Farms in Some Selected Districts in Sierra Leone
- The Epidemiology of Peste des Petits Ruminant of Small Ruminants in Sierra Leone
- The Selectivity of Buton Pot’s Escape Gap in Kotania Bay, Maluku, Indonesia
Last modified: 2022-12-09 23:17:13