frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Architecting for 10k users on Cloudflare's free tier

https://github.com/0xReLogic/Streaky
2•0xrelogic•3h ago
I architected a GitHub streak notification service that scales to 10,000+ users while staying on free tiers. Here's the infrastructure design and cost optimization strategy.

Production: https://streakyy.vercel.app GitHub: https://github.com/0xReLogic/Streaky Architecture: Open source, MIT license

=== Architecture Overview ===

Challenge: Build a daily cron system that processes 10k+ users in parallel, sends Discord/Telegram notifications, stays within Cloudflare free tier limits, maintains 99.9% uptime, and costs $0/month.

Solution: Distributed queue system with Service Bindings + Rust proxy for IP isolation

=== Infrastructure Design ===

1. Distributed Processing (Cloudflare Workers)

Problem: Sequential processing doesn't scale. Single Worker has 30s CPU limit.

Solution: Fan-out architecture with Service Bindings - Main scheduler initializes batch queue - Dispatches N workers via env.SELF.fetch() - Each worker = isolated execution context with fresh CPU budget - Automatic load balancing by Cloudflare

Capacity: 100k requests/day (10k users = 10% utilization) Performance: 10 users in ~10 seconds, linear scalability

2. Queue Management (Cloudflare D1)

D1 SQLite with atomic operations for distributed queue without external dependencies.

Benefits: Atomic claim, no race conditions, built-in idempotency Capacity: 50k writes/day (30k used = 60% utilization)

3. IP Isolation Layer (Rust VPS)

Problem: Cloudflare Workers share IP pools → rate limiting (429 errors)

Solution: Lightweight Rust proxy on Koyeb - Axum framework - AES-256-GCM encryption - Stateless, zero-trust architecture - Cold start ~10s, warm ~3.6s - 100% success rate

Cost: Koyeb free tier (512MB RAM) - $0/month

4. Data Layer (Cloudflare D1)

Schema: users, notifications, cron_queue Capacity: 5GB storage (10MB used = 0.2%)

=== Cost Analysis ===

Current (10k users): $0/month - Cloudflare Workers: 10k/100k req/day - D1: 30k/50k writes/day - Koyeb: ~1GB/100GB bandwidth - Vercel: ~5GB/100GB bandwidth

50k users: $10/month ($0.0002/user) - D1: $5/month, Koyeb: $5/month

100k users: $25/month ($0.00025/user) - Workers: $5, D1: $10, Koyeb: $10

Total Cost: $0/month for 10k users

Happy to discuss infrastructure decisions, scaling strategies, or cost optimization techniques.

Show HN: MAI-Image-1 – Ultra-realistic AI image generator with zero style limits

https://www.maiimages.com
1•Viaya•31s ago•0 comments

Program Spotlight 2025: The Boys' Latin School of Maryland

https://baltimorefishbowl.com/stories/program-spotlight-2025-the-boys-latin-school-of-maryland/
1•mpweiher•1m ago•0 comments

SearcherO – Find Your Dream Job

https://searchero.org
1•jacktheprogram•2m ago•1 comments

Alibaba launches AI chatbot service in renewed consumer push

https://www.reuters.com/world/asia-pacific/alibaba-launches-ai-chatbot-service-renewed-consumer-p...
2•thm•2m ago•0 comments

Hold Your Breath Challenge – How Long Can You Go? Test Your Lung Capacity

https://thebreathingexercises.com/challenges/hold-your-breath
1•naveen-zerocool•3m ago•0 comments

Meta lays off 600 from 'bloated' AI unit as Wang cements leadership

https://www.cnbc.com/2025/10/22/meta-layoffs-ai.html
4•01-_-•4m ago•1 comments

Show HN: DreamOmni – Turn text prompts into brand-ready visuals in seconds

https://dreamomni2.app
1•GuiShou•5m ago•0 comments

Acting NASA Chief Announces More "Shakeups"

https://www.universetoday.com/articles/acting-nasa-chief-announces-more-shakeups
1•belter•5m ago•0 comments

Ask HN: How can I join the Amish?

2•roschdal•5m ago•0 comments

Resolving a $1000 Erdős problem, and vibe coding a Lean proof using ChatGPT

https://arxiv.org/abs/2510.19804
2•mathfan•5m ago•0 comments

Towards Consciousness Engineering by Max Hodak [video]

https://www.youtube.com/watch?v=DI6Hu-DhQwE
1•eamag•7m ago•0 comments

Coffee Links to Bad Cholesterol

https://www.sciencealert.com/how-you-make-your-coffee-could-affect-your-cholesterol-levels
1•I_Nidhi•7m ago•1 comments

Dutch-China Chip Spat Risks Hit to Europe Automotive Production

https://www.bloomberg.com/news/articles/2025-10-23/dutch-china-chip-spat-risks-hit-to-europe-auto...
2•zerosizedweasle•13m ago•0 comments

Egg prices vs. Consumer Price Index since 1980

https://fred.stlouisfed.org/graph/?g=1Nm5b
3•em500•16m ago•0 comments

Basic income support for artists made permanent and opened to new entrants

https://www.irishtimes.com/politics/2025/10/06/budget-2026-states-basic-income-scheme-for-artists...
1•bookofjoe•17m ago•1 comments

A Classic Graphic Reveals Nature's Most Efficient Traveler

https://www.scientificamerican.com/article/a-human-on-a-bicycle-is-among-the-most-efficient-forms...
1•ako•20m ago•0 comments

There's no resolution to the crisis in sight

https://punchbowl.news/archive/102325-am/
1•zerosizedweasle•22m ago•0 comments

Why do you love Fedora?

https://old.reddit.com/r/Fedora/comments/1od5xpr/why_do_you_love_fedora/
1•sipofwater•22m ago•0 comments

Ask HN: How many 9s did AWS lose due to the last outage (us-east-1 incident)?

2•2dvisio•23m ago•0 comments

Echoes of Memory

https://neurofrontiers.blog/echoes-of-memory-a-conversation-beyond-the-lab/
3•lentoutcry•26m ago•0 comments

China releases 'UBIOS' standard to replace UEFI

https://www.tomshardware.com/software/china-releases-ubios-standard-to-replace-uefi-huawei-backed...
4•paulgdp•29m ago•0 comments

Developers spend 1% of coding time using VS Code's debugger (11K sessions)

https://floustate.com/blog/developers-spend-1-percent-time-vscode-debugger
3•skrid•29m ago•0 comments

Introduction to Telecom for Software Engineers

https://www.youtube.com/watch?v=hu30dhkrN_U
1•vances•31m ago•0 comments

ChatGPT's Horny Era Could Be Its Stickiest Yet

https://www.wired.com/story/chatgpt-horny-era/
2•quapster•31m ago•0 comments

JSON Schemas in Go

https://www.airs.com/blog/archives/675
2•Bogdanp•31m ago•0 comments

Government shutdown reaching a tipping point, could send the economy into spiral

https://www.marketwatch.com/story/the-government-shutdown-is-reaching-a-tipping-point-that-could-...
2•zerosizedweasle•36m ago•3 comments

Perpetual ML Suite on Snowflake Marketplace

https://app.snowflake.com/marketplace/listing/GZSYZX0EMJ/perpetual-ml-perpetual-ml-suite
1•deadsoul•36m ago•0 comments

Did YouTube censor a well-known Indian documentary about the dairy industry?

https://maakadoodh.in/
2•metta2uall•37m ago•1 comments

Aerospace firms link up to create European rival to Musk's SpaceX

https://www.theguardian.com/business/2025/oct/23/airbus-leonardo-thales-european-rival-elon-musk-...
2•n1b0m•37m ago•0 comments

Cyberus Technology is hiring a Business Development Manager (m/f/d)

https://www.cyberus-technology.de/en/about/careers/business-development-manager
2•CyberusTech•49m ago•1 comments