Host Global Python Object in Docker Container
I have an object in Python thats pretty big (~10gb). I want to host the object in a Docker container and expose some of its methods to other docker containers, which is possible through TCP. Most web application frameworks doesn’t guarantee a single main process where the object can live in peace. How should I go about it?
The problem is even analogous to having global state in applications such as Celery and Flask. The object is immutable so it’s sort of like a database, but I’d really like it to exist as a Python object.