rishigupta9999 / Newton

Other
0 stars 0 forks source link

Upgrade WebServer to Puma #110

Open rishigupta9999 opened 8 years ago

rishigupta9999 commented 8 years ago

We're using WEBrick as the server, which is a pretty basic server. Can only handle one request at a time, which with only a couple active users will make users think the site is laggy.

We should use Puma, which is well supported on Heroku.

We're hardly doing any data manipulation outside of controllers or models instantiated from controllers, so I'm 99% sure our app is thread safe. But as a first pass we might run Puma in single threaded mode with two worker processes (allows two simultaneous web requests to be serviced) for the MVP phase.

phoenixxxx commented 8 years ago

Sound good. Can you tell us what the cost difference will be?

rishigupta9999 commented 8 years ago

None. The cost is only in time, not dollars. Puma, much like our current server is open source and free

phoenixxxx commented 8 years ago

Roger

rishigupta9999 commented 8 years ago

Punting to post-MVP. If bounce rate is an issue, or load times are high, we will upgrade.