Re:Ask HN: What's your favorite way of getting a web app up ...
by trcollinson on Monday June 04, 2018 @11:33AM
(#17228777)
Sorry to fact check here but on my Rails app I am getting 200ms return times. This is running a web application and a few hybrid mobile applications. Are you saying that basically out of the box with Elixir/Phoenix I would get 20ms return times? That would be amazing but I find that highly unlikely.
Re:Ask HN: What's your favorite way of getting a web app up ...
by cpursley on Monday June 04, 2018 @01:36PM
(#17230104)
Yes, and likely faster.
http://www.akitaonrails.com/2015/10/27/how-fast-is-elixir-ph...
Re:Ask HN: What's your favorite way of getting a web app up ...
by trcollinson on Monday June 04, 2018 @07:41PM
(#17233687)
That’s quite interesting. I’m going to have to give this a try under real world condition. This gives a pretty good argument for massive improvement.
Re:Ask HN: What's your favorite way of getting a web app up ...
by regulation_d on Monday June 04, 2018 @02:13PM
(#17230464)
For my load balancer heartbeat checks, I'm returning responses in 200µs.
Re:Ask HN: What's your favorite way of getting a web app up ...
by trcollinson on Monday June 04, 2018 @07:40PM
(#17233681)
That’s a highly unrealistic real world scenario. I’d like to see a page under load with actual queries. Heartbeat checks are far from actual real world examples of much of anything.
Re:Ask HN: What's your favorite way of getting a web app up ...
by regulation_d on Tuesday June 05, 2018 @08:44PM
(#17243490)
I guess my point was: that’s the baseline. It’s an order of magnitude faster the 20ms your saying is unlikely. That leaves a lot of headroom for hitting the db and things done. The api I’m working on isn’t currently being hit super hard, but for most of my endpoints 25ms is pretty average.
Re:Ask HN: What's your favorite way of getting a web app up ...
by rishav_sharan on Sunday June 03, 2018 @08:04AM
(#17219154)
And if the next order of magnitude of performance is needed, there's always Crystal
Re:Ask HN: What's your favorite way of getting a web app up ...
by blunte on Tuesday June 05, 2018 @05:21PM
(#17242199)
But since it is much newer, the docs and examples are much thinner than Phoenix.
Plus, except for unoptimized database actions (which would equally affect Crystal), Phoenix responses are usually sub 200ms. Some are sub 1ms. So it really isn't in need of performance increase.
Ecto, however, is really not pleasant imo.
I disagree. Elixir/Phoenix is as simple as Ruby/Rails and an order of magnitude more performant out of the box. Especially if you already know Ruby and the basics of functional programming. Plus, unlike Rails, you probably won't need separate servers for background jobs, websockets and caching.