Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create WSGI middleware components with Falcon #624

Open
kgriffs opened this issue Oct 2, 2015 · 1 comment
Open

Create WSGI middleware components with Falcon #624

kgriffs opened this issue Oct 2, 2015 · 1 comment

Comments

@kgriffs
Copy link
Member

kgriffs commented Oct 2, 2015

Jim Baker is working on adding WSGI support to Jython via Fireside and we've talked about making Falcon work well within that context. This got me thinking about more generally supporting the use of Falcon as a lightweight way to write custom middleware that could be used in tandem with Django, etc. apps.

Types of middleware to consider:

  • Pre-processing:
    • AuthN/Z - Block unauthorized requests, and inject user info headers (such as a list of roles mapped to that user for RBAC)
    • Rate-limiting - Ensure one user doesn't hog system resources
    • Metering - Collect statistics on usage
    • Routing - Split requests between a legacy app and a new one, allowing for gradual migration from one to the other. Or, to create a facade that combines a collection of APIs into a one.
  • Post-processing:
    • Tracing - Inject transaction ID header
    • Support - Send an alert to your operations team on 5xx (or other) errors
@PipocaZalas
Copy link

I find very good idea, I recommend a lot to put authentication and authorizers examples, like best practices

@kgriffs kgriffs added this to the On Deck (Non-Breaking Changes) milestone Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants