Flask Interview Prep Full
5 min read Quiz at the end
Interview topics: vs FastAPI, vs Django, WSGI, Blueprints, factory pattern, g, JWT vs sessions.
Flask Interview Topics
- Flask vs FastAPI — Flask is WSGI/sync; FastAPI is ASGI/async-first with auto-docs
- Flask vs Django — Flask is micro (you choose tools); Django is batteries-included
- WSGI — Web Server Gateway Interface; Flask implements via Werkzeug
- Blueprints — modular routes with own templates/static files
- Application factory — create_app() allows multiple configs, avoids circular imports
- g object — per-request temporary storage
- before_request — runs before every view function
- Flask-Login UserMixin — adds is_authenticated, get_id() required methods