This document outlines the best practices for managing storage during the checkout process. While carts can be stored in Nacelle, it is advisable to use local browser storage for most cart and checkout updates. This approach ensures efficient use of server resources and provides a seamless user experience across devices.
Nacelle enforces rate-limiting to prevent overuse of the API. Therefore, it is essential to be aware of these limitations when designing your storage strategy. Nacelle is not intended for capturing every minor change made during the checkout process; rather, it should be used for more significant changes or events.
Persistent Carts: Using local storage allows the customer's cart to remain intact even if they leave the site and return later.
Multi-Device Support: Local storage can sync with cloud-based solutions to provide cross-device cart and checkout persistence.
Reduced Server Load: Local storage minimizes the frequency of calls made to the server, thus reducing load and improving performance.
Initial Cart Creation: It's efficient to create the cart in Nacelle when it is initially populated.
Major Updates: Significant changes like applying a promo code or changing the shipping address can be stored in Nacelle.
Choosing the right storage strategy for carts and checkouts is critical for both performance and user experience. By utilizing local storage for minor updates and Nacelle for significant changes, you can create a balanced and efficient checkout process.
Updated 2 months ago