Web Workers, Memory, and Network Calls
Explore how Rails handles web workers and network calls using Puma server and background jobs. Understand how deferring work to jobs improves resource use and manages slow or failing third-party API calls. Learn strategies to handle retries and reduce blocking in Rails applications.
We'll cover the following...
In development, our Rails app uses the
When the response is rendered, the worker can work on another request. Puma keeps these workers in a pool, and that pool has a finite limit. This is because each worker consumes memory and CPU (even if it’s not doing anything), and because ...
It depends. In some configurations, the new request will be denied and the browser will receive an HTTP 503 (resource ...