FastApi sync def vs async def ?In case you are using Fastapi, when does one use def and async def and how does using one make a difference over the other? Assuming that you scanned this and know a bit of the async stuff. async @route(“/users/info”) async def userInfo(): user =...May 30, 2023·5 min read
Can we have a scalable fastapi service with common cache ?So as it goes, we were using FastAPI for one of the apps. Our app uses a lot of memory(for ml models). Premise: I wanted to launch multiple workers of the app as Python is single-threaded and also be able to have a common cache across. We can use Uvi...Dec 11, 2022·3 min read