Ensure a singleton variable across entire web app
Background Info My web app is built on top of async FastAPI. The server deploying this app will start 4 workers and each worker will start 2 threads for handling concurrent requests. Description Most services in my web app rely heavily on a token required from an external API. The problem is that this token […]