Ask HN: Go-to web stack today?
I&#x27;ve been in full-stack development for about 10 years (most freelancing, 3 years full-time). I started with HTML&#x2F;CSS, PHP, Ruby which I spent a couple years with before getting a full-time Ruby job. Since quitting my job 12 months ago to work on my own projects (while part-time freelancing), I decided to venture into a bunch of technology I&#x27;d not used.<p>I started to build a service in Elixir but found it lacked support for some crucial aspects (http&#x2F;s tracing in this case). I&#x27;ve found it to be a very enjoyable language to work with (not just the Ruby bias talking), and a great cushion into functional programming.<p>Over there I&#x27;ve seen mention of Drab and Phoenix LiveView which piggyback on excellent websocket multiplexing to create an event channel between Elixir and JavaScript. This essentially means you can interact with the frontend of the application from the backend framework. There is a lot of discussion around performance&#x2F;security implications, of course, but it is a great experience if you&#x27;re backend driven.<p>Where Elixir couldn&#x27;t meet my demands, Go did. It has `http&#x2F;trace` in the standard library. It has static typing, it&#x27;s fast, simple. Go has worked perfectly here as an &quot;agent&quot; of my main service. It is used purely to make requests and spit out results. I&#x27;ve found it much easier to deploy than Elixir (which usually involves distillery). Static typing in Elixir is often done through Dialyzer (annotated type-checking). In short, I&#x27;m saying I need both and that they complement each other.<p>I use a message broker to speak between the main service and the agents. Because I was using Elixir for the core service, I went with RabbitMQ. I&#x27;ve found that working very well on very modest hardware, and it is has been a big help having a well-known messaging standard to work with with available clients in different languages. To note - I only use this internally. Not sure if I&#x27;d expose this publicly in any way.<p>The database is always Postgres :P I use that with wal-e for backing up to s3. Still unsure on clustering. This is on a VPS because RDS and any other managed Postgres service was charging way too much for the hardware. With clients I would use RDS from the beginning.. and I would use Postgres as a document store before reaching for Mongo.<p>For managing servers, I either use the cloud provided cli (gcloud) or ansible on my own. I try to make sure I only ever use ansible to provision and modify them and everything is version controlled. This way I have a record of any changes I&#x27;ve made. I used ansible to setup wal-e backups on my Postgres instance. I&#x27;ll also use it to setup clustering.<p>Other great tools on that may be Chef, Puppet, Terraform. Leaning more towards Terraform as it is agentless and declarative.<p>For application deployment I&#x27;m very much containerised. I&#x27;ve found Docker to have greatly simplified my deployment process once Docker itself is installed. As for clustering, Swarm is simple to setup. I was lured by Nomad, but I&#x27;ve decided to fully invest into Kubernetes instead.<p>I spent a good 4 months trying to setup a Kubernetes federation (cross DC) on a budget. Not easy. It was very painful. Best on my own was through Rancher after trying kubespray. Best in the cloud was through GKE. However, not happy with Google&#x27;s pricing considering what else I can get. Digital Ocean released a Kubernetes offering and I can fire up a one node cluster (with free master plane) for $10&#x2F;m which has 2gb ram on an ssd. For comparison, I think Google were charging me about $20+&#x2F;m for 1.6gb ram with no ssd.<p>Within 10 minutes I can have a new cluster. I can apply my manifests to the cluster which have security policies, environment secrets, deployment strategies, health-checking. I can deploy my applications to it within minutes and easily integrate it with my CI&#x2F;CD pipeline. I&#x27;m sure I could achieve similar with some cloud-native offerings (Google App Engine, etc), too, but I&#x27;d rather invest in something cloud-agnostic.<p>.. that&#x27;s before even touching the frontend.<p>I decided to jump into TypeScript and VueJS. I&#x27;m still looking for that &quot;unified&quot; environment where all the layers and processes just seem to fit together. I&#x27;ve found the frontend ecosystem to be far too fragmented.<p>I don&#x27;t see much point in creating any more complexity than VueJS already has. I use Haml for templating, SASS for extending CSS. Still unsure on a component&#x2F;style framework. I think possibly Vuetify.<p>With all that said, my GO TO stack will eventually look like this:<p>* frontend: TypeScript&#x2F;VueJS<p>* backend: Ruby, Elixir, Go<p>* database: Postgres<p>* message broker: RabbitMQ<p>* packaging: Docker<p>* container orchestration: Kubernetes<p>* CI&#x2F;CD: Gitlab<p>* monitoring: Prometheus&#x2F;Munin&#x2F;Cloud tools<p>* logging: ?<p>* exception management: Sentry<p>* email: SendGrid<p>..man, could probably go on. It is never ending! I also think this is largely dependent on the size of the project. However, I still use those tools above on small projects because it forces me to become more familiar with the tools which I inevitably use on more important projects.