Live data from Hacker News

Ask HN: Companies of one, what is your tech stack?

news.ycombinator.com

151–160 of 327 posts

Re: Ask HN: Companies of one, what is your tech stack?

#151

I run a file sharing / content delivery platform called pixeldrain: https://pixeldrain.com The system serves 4 PB of data to 60 million visitors per month. I have served 30 PB and 700 million file views since I started tracking usage somewhere in 2018. I'll go from front to back: - Most of the frontend is plain HTML, CSS and JS. I have started transitioning some pages to Svelte. I like this framework for its speed an…

Thanks for sharing these insight & very impressive stats! Just few questions I have: - What is your total infra cost? A cost split between storage & servers would be an awesome insight - Since how long you have been running this service? - How did you keep up with the infra cost before breaking even?

Thanks

My content delivery servers cost me about €2000 per month. I experiment a lot with different providers to drive cost down here. My storage servers are €800 per month. For that money I get about 500 TB of usable capacity (all my servers run raidz2). And then I spend about €150 on database servers. My Constellix DNS bill is €50 per month, and Mailgun is €5.

So about €3000 / month worth of infrastructure.

I started working on pixeldrain in 2015 during lunch breaks at school. The original version was a Spring Boot app with MariaDB. I had a lot of performance problems here. My use case doesn't really fit in the CRUD API use case. I need tighter control over my connections and threads. That's why I switched to Go.

I run ads to pay for the servers. It's really hard to find advertisers for file sharing services because they don't want to run ads in controversial content, and that's what file sharing sites are mostly used for. I have to resort to working with some really shady companies. Because of this I balance my ads so that they generate just enough revenue to pay for the servers.

Eventually I would like to turn some profit though. That's why I'm trying to shift from file sharing to content delivery.

Re: Ask HN: Companies of one, what is your tech stack?

#152

Earlier quoted context omitted.

Yeah I was evaluating back-end tech stack for a recent side project, most of my work these days is in TypeScript or C++, so a large part of me wanted to have types and go with a TypeScript/Node stack... but on further evaluation, both Django and Rails let you do so much on the back end with so little code, just by following their conventions and using off-the-shelf libraries, that I'm willing to trade off types in ex…

I completely agree about the Django ORM. I used Prisma for a couple projects and that sold the idea of "changing the model and generating the migrations" for me. Now, it feels a bit silly to explicitly define migrations. I'd love to hear some pros of the Rails/Phoenix way though.

Same, I am sure they went with that way for a reason (or perhaps it's just technically easier to implement?). I also found things like many-to-many relationships were trivial in Django, much more manual in Rails.

Re: Ask HN: Companies of one, what is your tech stack?

#153
post #150

https://boxy-svg.com - vector graphics editor similar to Inkscape and Adobe Illustrator. Both client- and server-side code is written with vanilla JavaScript. Since I'm targeting only Electron and modern Chromium-based browsers I can use latest web technologies without any transpilers or preprocessors. I'm using mostly raw DOM APIs without any abstraction layers. Third-party services: - Firebase (database, storage, h…

I don't know a whole lot about Electron and friends, but saw this project the other day that does new builds with a Github action: https://github.com/davidaf3/csgo-tracker/blob/master/.github... maybe it'd be useful to look at?

Thanks, I will check it out. I didn't know GitHub Actions could be configured to run on proprietary operating systems.

Re: Ask HN: Companies of one, what is your tech stack?

#157
So I have two distinct companies

Primcloud - Cloud hosting platform (https://primcloud.com)

- Infra: Kubernetes on AWS

- Backend: Moleculer.js Microservices, Prisma with PostgreSQL

- Frontend: React/Next.js and Tailwind CSS/UI.

NiftyCo - Collection of low-touch SaaS products I am building. (First product: https://prevalidate.com)

- Infra: Deployed on Primcloud

- Backend: Next.js API / Prisma via my package Next-SaaS (https://git.io/next-saas)

- Frontend: React/Next.js and Tailwind CSS/UI.

Re: Ask HN: Companies of one, what is your tech stack?

#158
post #5

Getting very close in my large side projects for everything to just be Go + PostgreSQL. Go is the API, business logic, and very soon the entire web layer. This is all on Linode, there are no containers I just put a binary on an LTS Ubuntu and then iptables to just those ports (with SSH configured in their Cloud Firewall to only be possible from my home IP). I have a long term itch that I want to scratch soon, whether…

Opinion: Don’t put your business data in s3 objects!

It can work if all you will ever need is a key value store, but as soon as you need SQL-like queries (joins, filtering, transactions) you will be stuck reimplementing a sql engine in your app code.

I recommend to try SQLite with some kind of replication (either Linode disk snapshots, Litestream etc).

Having your state observable and local to your application instead of a slow http hop away makes development much easier.

Re: Ask HN: Companies of one, what is your tech stack?

#159
post #108

Take payments in browser extensions: https://extensionpay.com - $5/month Digital Ocean server - HTTP server: pm2 / Node / Express - Database: SQLite (because it's fast and needs fewer resources and less configuration than others) - Front/backend - custom full-stack Svelte framework. - Analytics: GA - Email: Mailgun - Uptime monitoring: Nine9s ( https://nine9s.cloud/ from another solo dev I believe) The Svelte framewo…

This is pretty good. I like the concept where api and ui is in the same file. Different from sapper and nextjs but pretty interesting.

Thanks! Yeah, I wanted a way to simplify/unify the front and back-ends while retaining flexibility to implement anything I need to. And of course it needs to be fast and have a small bundle size (thanks Svelte!). It's pretty close to SvelteKit with a few more assumptions baked in.

Some people balk at having both back and front-end code in the same file but I like it since most of the time the code for both needs to be pretty tightly-woven in my experience. Also you can always put the back-end code in a separate file and import it for cleanliness :)

Post reply on HN