Utilizing Real Time Technologies in Ruby Web Applications

  • Ulanov A
N/ACitations
Citations of this article
10Readers
Mendeley users who have this article in their library.

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.

Cite

CITATION STYLE

APA

Ulanov, A. (2022). Utilizing Real Time Technologies in Ruby Web Applications. International Journal of Computer Science and Mobile Computing, 11(12), 34–45. https://doi.org/10.47760/ijcsmc.2022.v11i12.002

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free