Skip to content

Commit 748926b

Browse files
committed
2 parents 9e02e77 + 7d57c62 commit 748926b

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
runs-on: ${{ matrix.os }}
2323
strategy:
2424
matrix:
25-
os: [macos-latest, ubuntu-latest, windows-latest]
26-
python-version: ['3.7' , '3.8' , '3.9']
25+
os: [ubuntu-latest,]
26+
python-version: ['3.7' , '3.8' , '3.9', '3.10']
2727

2828
steps:
2929
- uses: actions/checkout@v2

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ if __name__ == '__main__':
203203

204204
Due to the fully asynchronous support, complex interprocedural calls exhibit a very low processing latency.
205205

206-
(Latency vs. number of request threads)
206+
(Latency vs. number of request threads on going)
207207

208-
(Maximum capability requests per second vs. number of service nodes)
208+
(Maximum capability requests per second vs. number of service nodes on going)
209209

210210
## Tips
211211

@@ -232,7 +232,13 @@ async def startup():
232232
@RateLimiter(bucket = 5000, limits_s = 1000)
233233
async def root(request: Request):
234234
'''
235-
The two parameters of RateLimiter mean that this particular FastAPI instance holds a total of 5000 tokens and takes one token each time a request is received. If there is a large influx of requests come in a short period of time, when the number of remaining tokens in the bucket decreases to 0, the server will simply reject all requests without forwarding them to the queue-worker. With current parameters, this bucket now keeps a maximum of 5000 tokens and restores 1000 tokens per second.
235+
The two parameters of RateLimiter mean that this particular FastAPI instance
236+
holds a total of 5000 tokens and takes one token each time a request is received.
237+
If there is a large influx of requests come in a short period of time, when
238+
the number of remaining tokens in the bucket decreases to 0, the server will
239+
simply reject all requests without forwarding them to the queue-worker. With
240+
current parameters, this bucket now keeps a maximum of 5000 tokens and restores
241+
1000 tokens per second.
236242
'''
237243
async with DistributedTaskApplyManager(
238244
...

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ def get_install_requires(filename):
8686
'Framework :: AsyncIO',
8787
],
8888
python_requires='>=3.7',
89-
keywords=["fastapi-queue" ,]
89+
keywords=["fastapi-queue" , "fastapi", "queue"]
9090
)

0 commit comments

Comments
 (0)