0

I am testing an aiohttp app with web.run. I instantiate an imported class just after the import declaration and the a value of this instance is changed by data channel( for instance.changevalue() function). It works well for a single user. But when I test this from two users( mobile and laptop at the same time), The changed value from one device is reflected on the other device. Is this because of aiohttp running in standalone? or I am doing something wrong with my class instance?

1 Answer 1

0

It worked after I used gunicorn to manage more than one process.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.