slowapi icon indicating copy to clipboard operation
slowapi copied to clipboard

Convert the code to async

Open laurentS opened this issue 5 years ago • 7 comments

As both starlette and FastAPI are fully async, there is no reason to keep this extension running synchronously. Going async should help save a few ms while fetching data from Redis or memcached for instance.

laurentS avatar Apr 27 '20 15:04 laurentS

Any updates on this?

NotoriousRebel avatar Jun 04 '20 01:06 NotoriousRebel

@NotoriousRebel I'm going to try to do a first async version this week or next, with a Redis backend.

laurentS avatar Jun 09 '20 08:06 laurentS

Awesome! This is an awesome project and very useful for an API I have been developing.

NotoriousRebel avatar Jun 21 '20 20:06 NotoriousRebel

Is there any update on this? My backend is fully asynchronous and at the moment I cannot use my helper functions to identify users by their API key because it's an asynchronous function, so I had to fallback to slowapi.util.get_remote_address

nocturn9x avatar Sep 09 '20 13:09 nocturn9x

Is there any update on this? My backend is fully asynchronous and at the moment I cannot use my helper functions to identify users by their API key because it's an asynchronous function, so I had to fallback to slowapi.util.get_remote_address

vbigbang avatar May 05 '21 15:05 vbigbang