Ruby on Rails gets better production defaults

Published on:

Ruby on Rails, the two-decades-old net improvement framework, options higher manufacturing defaults and improvement container configuration within the just-released 7.2  model, in response to proponents.

Introduced on August 10, Ruby on Rails 7.2 affords improved manufacturing defaults for constructing more- environment friendly functions. Rails proponents cited a number of modifications. The Ruby language’s JIT compiler, YJIT, is now enabled by default if working Ruby 3.3 or newer, and the variety of default threads within the Puma net server was modified from 5 to a few. This improves latency by decreasing the time Ruby spends ready for the World VM Lock (GVL) to launch when the thread depend is simply too excessive. Moreover, the default Dockerfile generated by Rails now contains the jemalloc allocator.

- Advertisement -

For improvement containers, Rails 7 now can generate a improvement container configuration for an utility. The configuration features a .devcontainer folder with a Dockerfile, a docker-compose.yml file, and a devcontainer.json file. The dev containers have options equivalent to a database (SQLite, Postgres, MySQL, or MariaDB) and a headless Chrome container for system assessments.

See also  How to use Gemini (formerly Google Bard): Everything you should know
- Advertisment -

Related

- Advertisment -

Leave a Reply

Please enter your comment!
Please enter your name here