ericdevries
Re:FastAPI framework, high perf, easy to learn, fast to code, ready fo...
on Monday February 01, 2021 @03:16PM (#25993229)
We use fastapi in production too, but the problem we faced with sync stuff in combination with sqlalchemy was that the sessions (which we inject using Depends) were created before all the actual sync functions were executed, so the connection pool ran dry and everything became unresponsive. With flask I had a better experience because it creates the session in the same thread as the function that will handle the request. If you overload it a bit (say, 100 concurrent requests with a connection pool of 30) all the Depends calls will block because there are no threads left in the pool to actually handle the requests.
I understand that fastapi is more suited for async stuff for which it truly works great, but it would be nice if there was a idiomatic solution within fastapi and/or starlette that prevents these kind of problems.
Great work otherwise!
Re:System76 – Pangolin
on Friday December 04, 2020 @01:58AM (#25299760)
The 30hz thing might be because of an older hdmi version, like 1.4. I have had the same issues and it was a hardware limitation
Re:Show HN: I want to do an experiment: I'll do your MVP for $499
on Thursday January 23, 2020 @03:01PM (#22131257)
What is the experiment?
Re:Ask HN: How do you handle billing for your SaaS product?
on Saturday January 04, 2020 @05:02PM (#21957896)
How much does paddle cost? It is very difficult to find any pricing information online
Re:Ask HN: How do you handle billing for your SaaS product?
on Saturday January 04, 2020 @04:58PM (#21957869)
How much does paddle cost? I can't find any pricing information on their website
Re:What's Coming in Python 3.8
on Thursday July 18, 2019 @03:57AM (#20467736)
I guess it is not common, but by using the = operator you would not get the warning, and instead get unexpected behaviour.
Re:What's Coming in Python 3.8
on Wednesday July 17, 2019 @05:53PM (#20464432)
One of the good things about not using the "=" operator is that you cannot accidentally turn a comparison into an assignment, a feature that is a common cause of errors in other languages that do support it. By adding a completely different character to the operator it is not very likely to cause bugs, compared to just forgetting to type that second =