| You seem to be familiar with Elixir. May I ask you some questions? . What kind of web applications are you building with it? I'm asking what kind of web apps or scenarios do you think Elixir is particularly well suited for? I saw a thread on Elixir a couple of days ago and it piqued my interest and I saw a couple of videos that were posted there, one from some Ruby Conf that claimed that Elixir was giving better results (in request time) than rails. He never explained how that was posible or what would have been the results if he would have been using a cache (it's always faster to hit an in memory cache than hitting a db that has to touch disks, so if he speeded things up without a cache he would speed things even more with a cache). Then I watched another videos from some conference in Oslo or something, and from what I could understand he was doing away with the db completely. . So I have another question, how do you architect your application in Elixir to keep application state though multiple requests (sessions) on multiple boxes without using something like memcached or redis (or a network disk)? . Even if it's running on only one Box? Where does data reside if you are not using a db? I have a basic understanding of Erlang processes (what's explained here: http://stackoverflow.com/questions/2708033/technically-why-a...) and how it's particularly well suited for concurrency. My questions are about Web Apps and Elixir and scaling. |
select * from visits, plus conversion to JSON and delivery to a client on local loop. About 5000 records.
* Phoenix 140 ms
* Rails 248 ms
* Ruby without AR 219 ms
* PostgreSQL 2.97 ms, with no JSON generation and no delivery
select started_at, duration from visits -- JSON and delivery
* Phoenix 74 ms
* Rails 116 ms
* Ruby without AR 88 ms
* PostgreSQL 3.47 ms, no JSON no delivery
Single process, so maybe Phonix could get a larger advantage as the number of processes/requests increase. For the typical none to low traffic site there is little difference, the tool the programmer is more familiar with wins.
Edit: improved formatting.