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.
Serving a website on a Raspberry Pi Zero running in RAM
11–20 of 107 posts
Re: Serving a website on a Raspberry Pi Zero running in RAM
#12This 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.
On the one hand I get it, TLS is pretty heavy, and it makes sense to take advantage of a VPS or Cloudflare or however you want to do it.
But once you are spinning up a VPS, the question is ... why the Pi? The VPS in the article has less RAM, but more storage. If you're already doing TLS termination on the VPS (the most RAM intensive part), you might as well just do the whole shebang there.
I know this is all for fun, I'm just wondering -- is the Pi Zero really too slow to handle TLS, especially with an optimized TLS library? In this setup, the Pi is already being directly exposed to the Internet anyway, there's no VPN being used. That ARM11 isn't "fast", but surely a 1 GHz ARM11 can handle an optimized TLS library serving some subset of TLS1.2.
Re: Serving a website on a Raspberry Pi Zero running in RAM
#13This 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.
Also, all web pages are served from RAM. It's automatic that modern OSes will cache this stuff on first access.
Re: Serving a website on a Raspberry Pi Zero running in RAM
#14Re: Serving a website on a Raspberry Pi Zero running in RAM
#15Re: Serving a website on a Raspberry Pi Zero running in RAM
#16After 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.
I've since got a lot more interested in the microcontroller community - so many Pi projects should really be microcontroller projects - the esp32 especially scratches the itch for cheap things to hack on, and you can get them for like 6-7 bucks each with wifi.
Re: Serving a website on a Raspberry Pi Zero running in RAM
#17Re: Serving a website on a Raspberry Pi Zero running in RAM
#18After 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.
In the good old days a decade or so ago where the full fat Pi board was always 35 dollars and the zero was just 5, they were so cheap as to be practically disposable. I have an insane number of Pi 3/4 and Zero/ZeroW boards in projects and drawers around the house, but this has massively tapered off as prices have gone up. At one point I had an 8 pi 3 cluster to learn kubernetes/container orchestration techniques on -…
Re: Serving a website on a Raspberry Pi Zero running in RAM
#19This 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
#20A Raspberry Pi Zero can just run apache.