ZenlessCodes

ZZZ codes aggregator, completely automated

Visit Website
February 4, 2026 Sometimes the best optimization is not running your code at all

Two days ago I launched https://zenlesscodes.com - a simple code aggregator for Zenless Zone Zero on a $3/month VPS. Flask + Gunicorn, nothing fancy. But something was bugging me.
I kept looking at the architecture: Python handling thousands of requests per day... to serve data that only updates once per hour. Every single request triggered the full Python → Flask → Gunicorn stack, even though the response was identical for the next 60 minutes.

That's when it hit me: why am I running Python for every request when the data barely changes?
I ripped out Flask and Gunicorn completely. Now the Python code runs as a simple daemon that wakes up every hour, fetches new codes, and writes three static files. Nginx serves them directly.
No WSGI server. No request handlers. Just files on disk.

The results:

- 100x faster - Nginx static serving vs Python execution

- 5x less memory - dropped from ~100MB to ~20MB

- 10,000+ req/sec instead of ~100-500

- More resilient - if the daemon crashes, the site still serves content

The trade-off? Content can be up to 59 minutes old. But for a code aggregator, it's perfect.

The lesson: I think we overcomplicate things sometimes. I was running a full web framework to serve what's essentially a cron job output. The mental shift from "web app" to "file generator" unlocked massive gains.

If your data updates infrequently, ask yourself: do you really need a dynamic backend for every request? Or can you pre-generate everything and let your web server blast out static files at ridiculous speed?

For zenlesscodes, this felt like finding free money. Same $3 VPS, but now it handles 100x more traffic without breaking a sweat.

1 Comment

  1. 1

    Congrats on the launch, looks solid. How are you currently thinking about acquiring early users and gathering feedback?

February 2, 2026 Starting up

I play Zenless Zone Zero (HoYoverse game), and like most gacha games, they drop redemption codes for free in-game currency - Polychromes, Dennies, etc.

Problem is, these codes are scattered everywhere unless you are checking the official channels all the time ... I kept missing codes because I'd forget to check one source or the code would expire before I noticed.

Got annoyed enough that I decided to build something.

What I built:

  • zenlesscodes.com - a simple site that aggregates codes from multiple sources

  • Updates automatically every hour

  • Shows what rewards each code gives

The whole thing is fully automated. I literally just have to check on it every few days to make sure nothing's broken.

Tech stack (nothing fancy):

  • Python/Flask on a $3/month VPS

  • Scrapes data from 3 sources and dedupes them

  • Cloudflare for CDN + DDoS protection (free tier)

Launched 2 days ago. Completely free with no ads, just scratched my own itch. We'll see if other ZZZ players find it useful.

Comment

About

I grew tired of checking out fandom, game8 and the official discords to be sure I got all the free codes I could, so I decided to create this, its completely automated so all I have to do is to check it every few days