crab icon indicating copy to clipboard operation
crab copied to clipboard

Rewrite router using starlette

Open RealOrangeOne opened this issue 6 years ago • 0 comments

Replaces https://github.com/dabapps/crab/pull/5

Features:

  • Nicely logs the hostname the request is for
  • asyncio-based, so has higher throughput, and doesn't get locked down when more than 4 requests come in at once
  • Streaming requests, so the router doesn't internally buffer things
  • Returns server: crab header
  • Uses uvicorn, a production-grade server, rather than a dev server

RealOrangeOne avatar Nov 28 '19 12:11 RealOrangeOne