Live data from Hacker News

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

news.ycombinator.com

191–200 of 327 posts

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

#191
I've got a few sites (trying to make money), all using the more or less same stack:

* Frontend: Svelte using SvelteKit (and one Sapper), TailwindCSS / TailwindUI, hosted on Vercel

* Backend: Rails API, hosted on Heroku

* Database: PostgreSQL

* Queues: Sidekiq

* Caching: Redis

* Mobile: Flutter

* AWS S3 for things like images.

Sites:

* https://www.listenaddict.com/

* https://www.programmingtil.com/

* https://www.camerapricetracker.com/

* https://www.useproducer.com/

And business site / blog:

* https://www.codenameparker.com/

* https://www.davidwparker.com/

Edit: formatting

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

#192
post #50

Knowledge management for organization (Confluence/Notion competitor) https://dokkument.com Backend: Django + Django Rest Framework + Celery + Postgres Frontend: Vanilla Js + prosemirror Deployment: Manually on rented servers Picked that because this is probably the fastest way to code for me, no bullshit. I know that if I add any new tech that will slow me down, because I'll have to learn and master it and that takes…

I have a pretty basic Flask boilerplate I have used, but have been very curious about Django. It would probably be a better option for me in some cases.

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

#193

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…

Hi! I had never heard of your service, so I googled it and accidentally misspelled "Pixel" as I often do as "Pixle". The first result was a reddit thread and the second seemed to be a full-length rip of Becoming Royal that had some really malicious ads which were clickjacking and covering the content. Just thought you might like to know. :)

That page is the second organic result for "pixledrain" for me.

The url is https://pixeldrain.com/u/823R39Sc

And it is full of popups, redirects, etc. And maybe acting differently per-referer.

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

#195

Earlier quoted context omitted.

> So do the user-facing servers act as reverse proxies for the storage servers, or do you simply serve a redirect? Yes, my user-facing servers are proxying the files to the users. > I'd expect that the file access patterns are power-law distributions Exactly. On each server I have a sorted slice in-memory which keeps track of how often files are being requested. The most popular files are cached and files which drop…

Thanks for satisfying my curiosity! Also, congrats on your success! > Yes, my user-facing servers are proxying the files to the users. I've never operated a service as large as yours, so take my question with a grain of salt: I'm wondering whether it would make sense to split off the actual file front-end servers from the user-facing servers (going for a redirect approach instead of proxying), since the requirements…

Proxying the files has a number of benefits.

- The first is that I can have all my API endpoints under one domain. This simplifies downloading as you don't need to make a separate request to figure out where the file is stored.

- The storage servers that Hetzner sells only have 1 Gbps bandwidth. That runs out very quickly when a file goes viral. The 10 Gbps caching servers do a lot of heavy lifting here, this makes sure the disks in the storage nodes last longer.

- I can also decide to switch to a different storage system on my storage nodes when I want. I have been considering to deploy reed-solomon encoding for a while. That would make it impossible to link directly to a single storage server as a single file would also be distributed.

- Sending out this much data uses a lot of RAM for TCP send buffers. Installing this RAM on a single content delivery node is cheaper than installing it on every storage server.

To prevent the bandwidth load from affecting the UI speed I have a rate limiter on the download API which slows down when the uplink reaches 95% capacity. This way there is always some bandwidth left for the HTML and database communications.

With regards to content delivery: I want to use pixeldrain to serve static files. Nothing like the fancy site-wrapping tech that cloudflare uses. The idea is that users can have a file tree on pixeldrain somewhat like dropbox. They can copy the direct download link to that file and use it to embed videos, audio and pictures in their own websites. Because this is a lot simpler than other CDN services I can offer it at a very competitive price.

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

#197
post #193

Earlier quoted context omitted.

Hi! I had never heard of your service, so I googled it and accidentally misspelled "Pixel" as I often do as "Pixle". The first result was a reddit thread and the second seemed to be a full-length rip of Becoming Royal that had some really malicious ads which were clickjacking and covering the content. Just thought you might like to know. :)

That page is the second organic result for "pixledrain" for me. The url is https://pixeldrain.com/u/823R39Sc And it is full of popups, redirects, etc. And maybe acting differently per-referer.

Do you happen to be using an iphone? The malicious ads seem to be targeting iphones specifically. I can't reproduce it myself but I have told my advertiser about it.

I have some leverage here since I'm one of their largest publishers.

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

#198
post #193

Earlier quoted context omitted.

That page is the second organic result for "pixledrain" for me. The url is https://pixeldrain.com/u/823R39Sc And it is full of popups, redirects, etc. And maybe acting differently per-referer.

Do you happen to be using an iphone? The malicious ads seem to be targeting iphones specifically. I can't reproduce it myself but I have told my advertiser about it. I have some leverage here since I'm one of their largest publishers.

Nope, Android. I tried reloading a few times, and the page is normal most of time. So it must be only when a specific ad runs?

Edit: Played around with it a bit. I think (not sure), some of the stuff is coming from this in the page source, near the bottom.

  
  

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

#199
Back end: Go

Front end: Go

Database: Postgres

Proxy+SSL: Caddy

Extremely fast, dead-simple to troubleshoot issues, and no javascript required.

Most users are mobile, so speed and reliability are the priorities. This setup works well and it's simple to notice when there are any issues or any non-2xx responses to any server or database calls.

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

#200

Earlier quoted context omitted.

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 start…

How do you keep yourself motivated to work on a product if it does not turn profit for years?
Post reply on HN