Webrick as production server vs. Thin or Unicorn?

前端 未结 5 1095
一生所求
一生所求 2020-12-07 10:09

It seems like it\'s taken for granted that you must not use Webrick as production server, but I can\'t really find anywhere mentioning why. The consensus seems to be: \"Webr

5条回答
  •  死守一世寂寞
    2020-12-07 10:51

    I don't really like complicating simple things and premature optimization. WEBrick can be used in production provided it's rather a low-traffic website. Most of the applications are.

    If your site does something that takes time, e.g. sends e-mails or generates PDF files, you should make WEBrick multi-threaded. You want to handle multiple requests at a time.

提交回复
热议问题