Cloud Performance on a "Toy" Computer: From Python to Rust
progscrape.com
progscrape.com
Forget the "I'm running it on a Pi" angle, which is cool in its own right; the application itself is great, and just went on my surf list.
Great work!
Constructive comments:
- Could use a visible "about this site" link, maybe pointing at that blog post or something similar.
- Could use to make a link to the source site's comments page more visible instead of just "click on the logo".
JMHO there. =)
Always open to suggestions and constructive thoughts like the above. Appreciated.
Nice blog post!
Would you be able to take a screenshot of what you're seeing?
I'll add disabling of the fixed viewport to my TODO list. No real reason to disable it -- I think it was a leftover from the original mobile design from ~15 years ago.
https://i.postimg.cc/MK7PJwRk/Screenshot-20240608-165330.png
(the link will expire in 7 days)
Search still does seem responsive, which I find impressive. Curious what the search load is right now.
Search load is approx 1,000 per hour but there are spikes of a few dozen per second here and there, mostly from bots (there's an amazonbot?).
That CPU spike appears to be correlated with the search spikes.
If you'd like to boot the server to see what indexing looks like, you can find the latest raw data backup on GitHub and boot the server using the initialize command. https://github.com/progscrape/progscrape-data
If you can't get it working, feel free to send me an email.
I suspect that a GC language would be easier to get up and running but would probably have more unpredictable latency and memory spikes.
It's also a labour of love, so there's a fun factor too.
It's not really impressive to run Rust on a modern computer just because it's not x86 and because it's a bit slower than a typical desktop or laptop. Self-hosting all software on an m68030? It's interesting that it's even possible. But Rust on a Raspberry Pi 4 happens all the time.
Still, it's good to see a project move from Python 2 instead of just dying :)
I put "toy" in quotes because it's pretty wild that you can effectively run a full-service, non-trivial site off 10W [¥] and ~$60 of hardware. I fully understand _why_ it's possible, but it still amazes me that this little board is doing what it would have took a 1U server in the 2000s.
[¥] According to the Unifi PoE monitor, it's consuming 9.5W under this current HN load.
Definition of ”toy” changes with time. Don’t live in the past. Many other things we consider as toys were state of the art tech decades ago.
What about physical Turing machine? Defenitely a toy these days. But ground breaking back then.
Raspberry is defenitely a toy if you compare to real modern server hardware. Not to mention LLM processing power.
If we had the infinite blocks..
Also, it would be good to review the site guidelines generally because you broke more than one of them here—for examople, "Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something."