DhavySantos / Arkyo

MIT License
1 stars 0 forks source link

Analyse the need for paralelism #8

Open Velasko opened 6 months ago

Velasko commented 6 months ago

Considering how requests are most likely not the part with most intense computations, we're not yet sure if it's Arkyo responsability to create and manage its threads.

With this in mind, a couple options could be considered for future implementations:

  1. Use async in order to handle the requests. Arkyo may still become unresponsive if a function uses too much computation.
  2. Use a thread/processing pool. Although it uses more memory, it may pose itself as a solution for Arkyo to not become irresponsive (except if the case of peak cpu usage).
  3. Spawning a new thread/process and let it completely handle the request from then on.