ENGINEERING 41 upvotes 2021

Ask HN: Do you run apps bare metal?

41 pts
Hacker News Signal
2021 · Shared by @sdevonoes
Ask HN: Do you run apps bare metal? by @sdevonoes

The Founder's Submission

Direct narrative and submission text authored by @sdevonoes on Hacker News:

So, I am working on a side project and the way I deploy my (golang) application is basically:

- build binary

- copy binary, config files and static assets to the production server

- do blue green deployment (with nginx) to get zero-downtime deployment

- profit

(This is automated of course! I use Ansible, and I can easily rollback if needed. I can also deploy the same app to multiple machines if needed).

On my local machine I use Docker to test the Go code, but I don't really see the benefit of deploying my Go app in a container. My colleage told me "it's easier to deploy Docker containers. You just pull the image and voila!". I don't see how my approach could be "more complicated". Also, isn't my approach better in terms of performance? If my golang app runs "bare metal" instead of via a container, then sure the performance should be better, right?

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2021), @sdevonoes shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (73 total discussions):

WH @whalesalad Peer Contributor
AN @andrewstuart2 Peer Contributor
TW @twic Peer Contributor
GN @gnfargbl Peer Contributor
AN @analognoise Peer Contributor
HISTORICAL ERA Pandemic Bubble (2020–2022)
COMMUNITY SCORE 41 points
TOTAL DISCUSSIONS 73 comments
TOPICS & TECH STACK:
More Retrospectives by @sdevonoes