14
Quart Vs Flask (programming.dev)

Hi,

I've read quite few articles about Flask Vs quart.

But the one that I found do not go deep.. :/ (and are big adept of copy/past ...)

So, beside the extra features (ASGI, HTTP/2, WebSockets..)

I'm wondering if async/await in this context give a real boost of performance ?

When a client connect to a worker I don't think that while await, will allow another client to use the same work ? or am I wrong ?

Do you have any metric ? Or if you switched from Flask to Quart di you noticed a gain ? lost ?

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[-] rimu@piefed.social 2 points 5 months ago

A few months ago I evaluated Quart to see if it would be a better option for https://piefed.social. It was easy to port my code from Flask to Quart and everything was mostly working within an hour or two. In the end I decided not to proceed with Quart because the performance gains only happen when there are many concurrent users and that time might never come. However the extra complexity and potential for problems was there immediately, so I just stayed with trusty old Flask. It's good to know that switching to Quart is straightforward if I need it in the future.

this post was submitted on 13 Jul 2024
14 points (100.0% liked)

Web Development

3453 readers
1 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS