Our great sponsors
-
Also, to await on something means you're telling the interpreter to go do something else instead of blocking and do nothing while you wait for the database to return results. It does not mean "keep executing the function while you wait". Which implies that your second query will only be executed after the first one (unless you gather). While it looks like you're gaining nothing by using asyncio, the "something else" in "go do something else" may be to start serving another request, meaning you can serve more users at once. Try sending multiple requests at once and see how you perform. There are relatively simple benchmark tools like hey that allow you to do that.
-
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Related posts
- Building Scalable GraphQL Microservices With Node.js and Docker: A Comprehensive Guide
- Building Llama as a Service (LaaS)
- Data API for Amazon Aurora Serverless v2 with AWS SDK for Java - Part 5 Basic cold and warm starts measurements
- Choosing a Name for Your Computer
- Kubernetes and back – Why I don't run distributed systems