Ask HN: What tech stack would you choose for a serious, long-term business app
I own a dev shops and I also write apps for clients big and small (think big 500 to 5 person startups) for a living.<p>I used to advocate Rails a lot, but over just the last year, I realized nothing out there can replace my current stack (Phoenix&#x2F;Elixir&#x2F;Vue) then yet and I think it&#x27;s still true today. And, that&#x27;s a good thing after playing with tons of frameworks out there.<p>So far, I&#x27;ve tried the following - Express (Node), Play&#x2F;Scala, Paython&#x2F;Django&#x2F;Flask, Ruby on Rails, Phoenix&#x2F;Elixir.<p>My pick would be the following (and I&#x27;ll explain my reasoning):<p><pre><code>    DB: Postgres (Google Cloud)
    API: Phoenix&#x2F;Elixir
    Frontend: Vue + Brunch
    Caching: We don&#x27;t use caching (haven&#x27;t had to, will explain a bit)
    Paas: AppEngine (Google Cloud)

</code></pre>
I wrote an app for a startup backed by a large VC firm last year and we chose Phoenix&#x2F;Elixir for it. With Elixir, we were able to find code errors early on, we had the freedom of organizing code in Rails style (think concerns), while not having to fight with opinionated OO.<p>Elixir is drastically different in the sense the piping makes you think way more differently than working with other languages such as Ruby&#x2F;Python. An example, this is production code from our E-commerce platform:<p><pre><code>      def process_order(user, token) do
        user
        |&gt; mark_order_type()
        |&gt; collect_payment(user, token)
        |&gt; fulfill_order(user)
        |&gt; verify_order()
        |&gt; update_order_status()
        |&gt; clear_cart(user)
        |&gt; email_order_confirmation()
      end

</code></pre>
The code is more elegant and really beautiful to write and maintain. As a nice bonus,
about last year, we had so built so many drop in libraries that we&#x27;d just throw in into new projects and we were good to go since they would just &quot;work&quot;.<p>There was one startup that abandoned their project midway after paying a lot of money, but as a courtesy, I told them I&#x27;ll keep it online as long as I can, but promising only minor&#x2F;security fixes to their web app. You&#x27;d be surprised how little effort went into maintaining their app. Once it was all setup, it just worked without any hiccups, (yeah, we do our regular checks).<p>I have fallen in love with Phoenix&#x2F;Elixir ever since.<p>Why Vue? Because, it&#x27;s fast, has a very low learning curve and doesn&#x27;t involve JSX (Mildly related: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;thomasfuchs&#x2F;status&#x2F;810885087214637057" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;thomasfuchs&#x2F;status&#x2F;810885087214637057</a>)<p>Why Google cloud? Before Google cloud, we were on Elastic beanstalk. There was this issue of dockerized setups where instances would randomly shut down and also updating them would take forever. The only solution was to delete and re-create the instances. This issue persisted as early as Jan 2018, I&#x27;m not sure about now. The sole purpose, I repeat, the only reason why you wan&#x27;t to go the Paas route is because you don&#x27;t want to do DevOps. And ElasticBeanstalk got us to a point where we were almost doing DevOps. I don&#x27;t blame Amazon, since Phoenix&#x2F;Elixir is still relatively new, but unfortunately didn&#x27;t work well for us.<p>Between AWS and Google Cloud, AWS has a lot more breadth in terms of the services offered - My favorite is their image processing service. Their (AWS&#x27;s) official SDKs are also usually more stable. But, I prefer to write my own as most of the time Elixir isn&#x27;t supported anyway.<p>Recently Google enabled first class support for Elixir on AppEngine, so it makes it all the more attractive. They also offer a $3000 in credits if you&#x27;re a startup. I don&#x27;t have the links, but I know the program is still live as I got one very recently.<p>Caching: We don&#x27;t use caching for our use-case. We divide our app into high-load parts and low-load parts. The high load parts are usually the static ones, such as your home page, about us page and so forth. We use Jekyll to push up static sites. For some of them, we use Netlify. But, for the rest, we use S3&#x2F;Cloud storage. As scary as that sounds, for most of my use cases, I think caching is pretty much overkill for my clients since they don&#x27;t have their response times as bottlenecks yet (I&#x27;ve only had 6-7 clients who&#x27;ve faced such issues in the last 2 years).<p>Having said all this, I would also factor in the learning curve to develop such an application. IF this is your first time, I&#x27;d rather prefer you stick to something you know already and are familiar with. If this is a mission critical project, I wouldn&#x27;t gamble with a new stack. So, use my advice with caution :)