Concurrency and Async/Await in FastAPI
Concurrency and Async/Await in FastAPI Okay so you may not know this about me but I work in an AI team. I love it sooo sooo so much - I love AI. Anyway we use a lot of async Python so I have been asked to do what I find hardest - read. So here I am. Right. Time to work. Ahem yes. I have done this before in JavaScript but it's different in Python. Asynchronous Code Source. "Asynchronous code just means that the language 💬 has a way to tell the computer 💻 that at some point in the code, it 💻 will have to wait for something else to finish somewhere else." "Let's say this something else is called "slow-file 🗃". Nope, lost. I have done this before in JavaScript but it makes no sense. "So, during that time, the computer can go and" work on something else somewhere "while slow-file finishes. 🗃" "THEN, THE COMPUTER 💻 WILL COME BACK EVERY TIME IT HAS A CHANCE BECAUSE IT'S WAITING AGAIN" CAN YOU TELL THAT I HATE READING O...