0

The rails application I work on makes many 3rd party requests to get data. This often makes the development server slow because those requests takes a while to resolve and they block the other requests.

So far I used WEBrick, thin, puma and unicorn-rails.

WEBrick seems to be good with speed when I benchmarked by firing 20 parallel requests.

Can I do something better so my dev server is non blocking and fast enough?

PS - we use unicorn as production server

2
  • 2
    This is very opinion-based but I'd use puma and set RAILS_MAX_THREADS in config/puma.rb to something reasonable/high. Commented Dec 23, 2023 at 15:20
  • 1
    If you don't need live data from the 3rd party sites you can use the VCR gem to record/cache the requests Commented Dec 24, 2023 at 2:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.