Skip to content

Multistore behavior/performance #305

@marc-arnoult

Description

@marc-arnoult

What is your question / Please describe your issue

Hi,

Actually, we (Caudalie team) are testing the behavior of the multistore feature.

However, we believe that the current implementation is not optimal for performance. Our magento2 GraphQL endpoint is not very efficient and with the current multistore behavior, multiple calls are made on each SSR request.

default.vue

onSSR(async () => {
    await loadConfiguration();
    await Promise.all([
      loadUser(),
      loadCart(),
    ]);
});

loadConfiguration :

await Promise.all([
      loadConfig(),
      loadStores(),
      loadCurrencies(),
    ]);

With that it's impossible for us to be under the 1~2 secs of load time on every page.

It was pretty good on VSF1 to have a configuration file for the multistore, we thought we would keep this behavior or even have a script that will grab the magento configuration at build time and store it in a file.

What do you think of that ?

Regards,

Marc

What version of Magento 2 Integration are you using?

2.4.3

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededIssues that need to be checked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions