Does bottle handle requests with no concurrency?
问题 At first, I think Bottle will handle requests concurrently, so I wrote test code bellow: import json from bottle import Bottle, run, request, response, get, post import time app = Bottle() NUMBERS = 0 @app.get("/test") def test(): id = request.query.get('id', 0) global NUMBERS n = NUMBERS time.sleep(0.2) n += 1 NUMBERS = n return id @app.get("/status") def status(): return json.dumps({"numbers": NUMBERS}) run(app, host='0.0.0.0', port=8000) Then I use jmeter to request /test url with 10