Live data from Hacker News

Serving a website on a Raspberry Pi Zero running in RAM

btxx.org

91–100 of 107 posts

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

#91

maybe i'm being stupid, but what's the complexity behind this? why is this exciting? is it because it's running on memory or because it's running on the pi? i find this trivial unless you're a new engineer. for the ones that say that the pi can't handle tls that's just stupid. that's trivial as well. for the ones saying that you need a vps how cloud native are you people? you can just expose a port on your router (if…

Came here to say the same. The Zero is a very capable machine

Running a mainstream website on a RPi Pico W is more advanced, but still not really challenging as long as the content is static

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

#94
post #13
post #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.

It is more than a little weird. A pi zero is more than capable of handling HTTP/1.2 and TLS 1.3 for a handful of connections per second. This machine is 10x what we were running web servers on in the '90s. Also, all web pages are served from RAM. It's automatic that modern OSes will cache this stuff on first access.

In unrelated news: I think the Magic-1 is still online. ( https://www.magic-1.org be gentle with it)

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

#95
post #29

The pi zero's are great. I have a bunch of them. I used to use them as a tiny server for live webcams streaming to YouTube for customers, but YouTube now have a minimum sub count before you can go live, which sucks. These boards are pretty powerful.

I have never been able to stream video from a raspberry pi zero's official camera. What tools/software were you using?

Oh, it’s been a few years, if I remember right it was an iso, I burnt to the SD and simply changed the details in a config.txt, I would have to dig out my old laptop to get the details.

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

#97
post #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

One could record from the microphone and then transmit via RF side channel.

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

#98
post #13
post #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.

It is more than a little weird. A pi zero is more than capable of handling HTTP/1.2 and TLS 1.3 for a handful of connections per second. This machine is 10x what we were running web servers on in the '90s. Also, all web pages are served from RAM. It's automatic that modern OSes will cache this stuff on first access.

I was initially thinking does the pi zero even have floating point? But then I remembered that encryption only uses integer operations, not even very large ones.

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

#99
post #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.

Considering that a 'base' raspbian type install can be something like 160MB of RAM used with openssh running and a lot of other launched-from-systemd daemons in the background, that leaves plenty of RAM available for a stock apache2 or nginx setup with TLS. No it won't be able to serve a ton of simultaneous requests, but I'm in agreement with the other comments here that doing purely port 80/http and putting it behin…

Hmm is linux on arm so frugal still?

Don't have a Pi plugged in now to check, but I have a fresh x86_64 linux and it's using like 600 Mb of ram - server install, I only got around to installing and configuring openssh and samba so far.

Oh and it's Devuan, so not even systemd to blame. I think it was close to 1 G with a systemd distro.

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

#100
post #24

we're running a complete production grade cloud storage service with Raspberry Pi Zeros at https://getcloud.doshare.me that's how powerful Rpi hardware we've tested it for upto 10k concurrent requests with storage ofcourse, but still too far powerful

What makes it "production grade"? How are you defining that?
Post reply on HN