Live data from Hacker News

Serving a website on a Raspberry Pi Zero running in RAM

btxx.org

1–10 of 107 posts

Re: Serving a website on a Raspberry Pi Zero running in RAM

#4
post #2

A raspberry zero is more powerful than an enterprise server from the 1990s. A minimalist static website is not impressive. You can fit way more in there.

The website running on the vape was far more interesting than this. I do wonder if anyone has tried to use the microphone in these devices to listen to audio. Backdoored vape

Re: Serving a website on a Raspberry Pi Zero running in RAM

#5
post #2

A raspberry zero is more powerful than an enterprise server from the 1990s. A minimalist static website is not impressive. You can fit way more in there.

I hosted my personal email domain on a Zero for almost 10 years. It had about the same capability as the very expensive (and large) Win NT4 machine we used for our 80-person organization when I started my career in tech. I eventually replaced the Zero with a Raspberry Pi 4, primarily because the Zero’s IO ports are annoying (eg, USB is not hot-pluggable!) An RPi 4 is extreme overkill for personal email but it still idles under 1W and when it fails I can replace the entire machine for next to nothing.

The point of failure for all of these machines has been the SD card. They seem to last 4 years almost to the day. I suppose if I set up a RAMdisk they might last longer, but honestly, for the price of an SD card it’s not really worth my time.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#6
post #3
post #2

A raspberry zero is more powerful than an enterprise server from the 1990s. A minimalist static website is not impressive. You can fit way more in there.

Hey, it loads! Unlike ~10% of pages on first page of HN, hugged to death.

Also I love the dithered B&W images. The entire aesthetic of the site is great.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#8
This feels a little weird because while they are running the website itself (HTTP) off the Pi, they are handing off all TLS to a cloud provider.

So while the content is in RAM on the Pi, a lot of the heavier lifting (TLS termination) is done elsewhere, which saves a ton of CPU load on the Pi.

Re: Serving a website on a Raspberry Pi Zero running in RAM

#9
I have a self hosting Pi Zero W running Gentoo. It started as a joke, but I kept it because it's actually occasionally useful for testing new kernel releases.

I found a fun bug with it a couple years ago: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

It is still able to build software faster than it is released. It takes roughly a month to recompile the entire system :D

Re: Serving a website on a Raspberry Pi Zero running in RAM

#10
After seeing what new R-Pi stuff is selling for I went rummaging in the parts drawer and found the following:

- R-Pi Zero W

- Sixfab UPS hat

- Sixfab Cellular IoT App Shield

- R-Pi model 1B

With all this I should be able to make a multiply redundant always-on bastion host. It's awesome that alpine supports the armhf stuff, many OSes have dropped 32bit support entirely.

Post reply on HN