What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi all, I am working with cart & checkout and two places are a bit confusing for me. 1. Why Spry

USZB5JN4W
USZB5JN4W Posts: 112 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Hi all,
I am working with cart & checkout and two places are a bit confusing for me.
1. Why Spryker has Cart and PersistentCart clients, when Cart can use DatabaseStorageStrategy?
2. Why DatabaseStorageStrategy uses session without calling zed for some quote operations?

Comments

  • giovanni.piemontese
    giovanni.piemontese Spryker Solution Partner Posts: 871 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    U already ask this in general channel.

    Spryker use session in db strategy due performance issue (this said me 3 years ago when i asked the same question).

    In our project we have this overwritten with also saving the data in db (with a check strategy to avoid a lot of zed calls not necessary) and it works very well...

  • USZB5JN4W
    USZB5JN4W Posts: 112 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Yes, because it isnโ€™t about helping, but about design decision, but didnโ€™t get any answer, so decided to try here ๐Ÿ˜„

    Thank you for the response. It theoretically makes sense, but in the end we probably also will need to rewrite it.

    Do you know why there is separatePersistentCart ?

  • giovanni.piemontese
    giovanni.piemontese Spryker Solution Partner Posts: 871 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    For sharedQuote, quoteApproval and some feature that need the persistent Cart..

  • USZB5JN4W
    USZB5JN4W Posts: 112 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    theoretically yes, but as we have DatabaseStrategy it could have be done with it. Iโ€™m just thinking about design decisions ๐Ÿ™‚