Launching excellent solutions is not like riding a bike. Creating a legendary application requires your full dedication and maximum effort. We have discussed how to improve Ruby on Rails app performance, and your road to success includes:
Server optimization:
Increasing Random Access Memory capacity
Replacing HDD with SSD
Using a load-balancing method
Backend optimization:
Keeping your code clean
Work on query problems
Adding indexes
Using background job processors
Caching database and more
Using Ruby GC Tuning
Ensuring the database has enough memory
Frontend optimization:
Using a CDN
Sharing static files
Compressing the files
Using AJAX
https://sloboda-studio.com/blog/how-to-improve-ruby-on-rails-app-performance/