title: How to do multiprocessing in FastAPI
body: <p>While serving a FastAPI request, I have a CPU-bound task to do on every element of a list. I'd like to do this processing on multiple CPU cores.</p>
  <p>What's the proper way to do this within FastAPI? Can I use the standard <code>multiprocessing</code> module? All the tutorials/questions I found so far only cover I/O-bound tasks like web requests.</p>