Skip to content

The python client is not threadsafe #360

Open
@karolyi

Description

@karolyi

Hello,

Coming from having talked to support, I'm reporting this here.

You use a singleton pattern where you instantiate one instance of every possible api handler. That applies to the HTTP client api as well.

Problem is, applications are often multithreaded (in my case it's UWSGI), and this can result in thread safety issues.

I'm in the process of rewriting my integration to use single instantiated objects instead of said singleton pattern. The reason for this is that I use different API keys/settings for my ECOM and POS integration.

Just wanted to let you know. Not sure if this is documented.

Best Regards,
László

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions