GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AdityaPandey-DEV/flowguard: High-performance rate limiter and async job queue — Python Flask, React, MongoDB, Docker

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
backend
backend
 
 
frontend
frontend
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

FlowGuard

Production-grade rate limiter and async job queue built from scratch — 1000+ req/s, no Redis, no Celery.

Python Flask React Docker


What It Does

FlowGuard implements two critical backend infrastructure components using only Python standard library data structures:

Component Implementation Complexity
Sliding Window Rate Limiter collections.deque O(1) amortized
Priority Job Queue heapq with worker threads O(log n)

Key Specs:

  • 1000+ req/s on a single Flask instance
  • Exponential backoff — failed jobs retry: 1s → 2s → 4s
  • Thread-safe — threading.Lock() + Condition on all shared state
  • MongoDB persistence — best-effort sync every 30s, works without DB (graceful degradation)
  • Real-time dashboard — React + recharts, auto-refresh every 5s

Architecture

React Dashboard (Vercel) ── fetch/5s ──→ Flask API (Render)
                                            ├── Sliding Window Rate Limiter (deque)
                                            ├── Priority Job Queue (heapq + worker threads)
                                            └── MongoDB Atlas (optional persistence)

Tech Stack

Component Technology
Backend Python 3.11+, Flask
Rate Limiter collections.deque (O(1))
Job Queue heapq (O(log n)) + threading
Database MongoDB Atlas (optional)
Dashboard React + recharts
Deployment Docker, Render + Vercel

My Role

I selected the sliding window algorithm over token bucket, designed the thread synchronization strategy, and planned the graceful degradation model (works with or without MongoDB). Code generation was accelerated using AI tools; algorithm selection, concurrency design, and debugging are mine.

Quick Start

git clone https://github.com/AdityaPandey-DEV/flowguard.git && cd flowguard
cp .env.example .env   # Add MongoDB URI
docker-compose up       # Or: cd backend && python app.py

Architected & built by Aditya Pandey — AI-augmented development

About

High-performance rate limiter and async job queue — Python Flask, React, MongoDB, Docker

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.