Skip to content

Static config? Why? #128

Closed
Closed
@andreisusanu

Description

@andreisusanu

I have the following scenario:

20 workers, working in parallel, processing Shopify API calls.
More than 10 Shopify stores are connected.

This sets the API credentials statically, and is used in a global way.
PHPShopify\ShopifySDK::config($config);

Worker 1: Setting config for shop #1. Making the API call.
Worker 2: Setting config for shop #2. Making the API call.

The configs are mixed up.
That is bad... bad bad bad!

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