Thank you.
Richard Lai
1

It would be great if you can share your code.

After some digging it appears that you can preload the application, which sounds like a solution:
http://stackoverflow.com/questions/18213619/sharing-a-lock-between-gunicorn-workers

However I haven’t tried it yet. Curious to see how it works out for you.

Some related questions and answers:
http://stackoverflow.com/questions/27240278/sharing-memory-in-gunicorn
http://stackoverflow.com/questions/32525664/gunicorn-with-gevent-maintaining-per-request-global-data

I’d never even heard of Passenger. There are other solutions out there but (1) I don’t have experience with them and (2) the problem seems to be more of a application design/architecture problem than a framework problem so don’t know if you want to necessarily jump ship because of it.

Having said that if you happen to find a better solution it’d be great if you can share.

Thanks!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.