Store large data or a service connection per Flask session
The following applies to any global Python data that you don’t want to recreate for each request, not just rserve, and not just data that is unique to each user. We need some common location to create an rserve connection for each user. The simplest way to do this is to run a multiprocessing.Manager as … Read more