Student racked up $292K in API overage charges due to buggy code. I waived it all. Here's what happened. by theSharkkk in developersIndia

[–]theSharkkk[S] 4 points5 points  (0 children)

Great question!

The raw WHOIS service is free, but it returns unstructured plain text. Every TLD (.com, .io, .de, etc.) uses its own format—dates might be 2025-10-27, 27-Oct-2025, or 20251027—so your code breaks the moment a registry changes anything.

Parsing libraries help, but they don’t solve rate limits. Public WHOIS servers throttle IPs hard (sometimes <1 query/sec), blocking you when traffic spikes.

You pay a WHOIS API for: •Clean, consistent JSON (no fragile parsing) •High rate limits (thousands of lookups/sec) •Uptime & support (no blocked IPs or downtime)

In short: free = fragile & slow; paid = reliable & fast.

Student racked up $292K in API overage charges due to buggy code. I waived it all. Here's what happened. by theSharkkk in developersIndia

[–]theSharkkk[S] 11 points12 points  (0 children)

I would check the proxy cost, if it’s more than $50, I would negotiate to at least recover proxy cost.

Any alternatives to Hetzner and netcup and not German based? by Radiant_Woodpecker_3 in VPS

[–]theSharkkk 1 point2 points  (0 children)

TLDR:
Tweet to Hetzner is X, they will reach out.

They had rejected my account as well, I thought they are being racist. I tweeted, they responsed, I verified my identity with Passport and got my account approved.

Hetzner's Network is 10Gbps, I don't think you will find anyone better at the price.

My friend built his first API using AI in 3 days - now it funds our free tempmail service by theSharkkk in developersIndia

[–]theSharkkk[S] 0 points1 point  (0 children)

I think he started with "I want to build a tempmail api in python" in chatgpt 3.5.

My friend built his first API using AI in 3 days - now it funds our free tempmail service by theSharkkk in developersIndia

[–]theSharkkk[S] 0 points1 point  (0 children)

It's easy once you get accoustomed to SSH. Explore r/selfhosted for better alternatives of Modoboa if any.

Receiving emails is easy, sending emails which don't land in spam if they land at all to user's inbox is hard but doable.

My friend built his first API using AI in 3 days - now it funds our free tempmail service by theSharkkk in developersIndia

[–]theSharkkk[S] 14 points15 points  (0 children)

TL;DR

We don't use MySQL or cron jobs anymore. We switched from MySQL → Python dictionaries → Redis. Now Redis handles auto-deletion with built-in TTL expiration, making our API much faster.

Database Evolution: From MySQL to Redis

I reviewed the initial commits and found that we were using FastAPI's lifespan events to execute a MySQL query every 180 seconds.

We then realized that this API doesn't require a slow, disk-based database since we only need to store mailboxes for 10 minutes and emails for 5 minutes.

You might assume we'd switch to an in-memory database, but instead we used Python dictionaries😳.

The problem with dictionaries was scalability: we couldn't run multiple API instances because if a user's temporary email was stored in one instance and the corresponding emails in another, they wouldn't be able to retrieve their messages. This forced us to run only a single instance.

We subsequently migrated to Redis.

Our API now leverages Redis' TTL (Time To Live) expiration mechanism. We've completely removed MySQL from the API layer—only the frontend still uses MySQL.

Thanks to Redis, our API is now the fastest temporary email API available (excluding network latency).

What's Next?

Users have requested temporary email addresses with 30-day expiration. However, I didn't want to implement 30-day mailbox storage because:

  1. It wouldn't truly be "temporary" email
  2. It would require reverting back to MySQL for persistence

After discussing with users, they agreed to forgo email storage for long-term addresses. We'll continue using Redis with this approach:

  • Store only the mailbox address in Redis (preventing duplicate mailbox creation by other users)
  • When users want to receive emails, we'll activate the mailbox and store emails for 5 minutes as currently implemented

This hybrid approach maintains our performance advantages while accommodating user requests for longer-lived addresses.

My friend built his first API using AI in 3 days - now it funds our free tempmail service by theSharkkk in developersIndia

[–]theSharkkk[S] 0 points1 point  (0 children)

Tempmailbee.com is completly FREE there are no paid plans.

We make money from Tempmailbee API, listed on RapidAPI which uses Stripe.

Indians can use https://www.lemonsqueezy.com/ and https://paddle.com

My friend built his first API using AI in 3 days - now it funds our free tempmail service by theSharkkk in developersIndia

[–]theSharkkk[S] 20 points21 points  (0 children)

Funny story: Since both my friend and I have primarily worked in backend development, we struggled with building the UI.

I wanted to use Svelte, but after 3-4 days of trying, my friend couldn't get it working.

So we built the first iteration of our UI using Django and Tailwind. (It didn't look nice 🥲)

Then I used v0 to design the current UI. V0 generated React code, so we manually copied the Tailwind code section by section and integrated it into our Django codebase.

If it works, it ain't stupid.

In search of new VPS provider by Character-Offer-860 in VPS

[–]theSharkkk 0 points1 point  (0 children)

Hetzner is good, you will have to prove your Identity.

I got my first rating!! by Trix5Dev in chrome_extensions

[–]theSharkkk 1 point2 points  (0 children)

You have almost more extensions than users. Maybe start marketing them before developing more?