Web Development Articles


Ajax forms submission. Switching from rails-ujs to Turbo & Stimulus

This post is about dealing with the Rails's new front-end solutions - Turbo and Stimulus which are also known as the core parts of Hotwire. Particularly, I will show you how you can handle Ajax form submission, compared to the old approach using rails-ujs.
Read more 

Rails. Processing SSE connections without blocking server threads using Rack Hijacking API

Using Server-Sent Events (SSE) technology for establishing a persistent connection between a Rails application and a client. Using Rack Hijacking API to take over the connections and free the application’s web server threads in order to handle more connections using fewer server threads.
Read more