Keeping dependencies updated for performance
Edit on GitHubKeeping your project’s Spryker module dependencies up to date is critical for maintaining optimal performance, security, and reducing long-term upgrade efforts.
Why keep dependencies updated
Updating dependencies regularly provides several practical benefits:
- Risk of security vulnerabilities: Most recent versions contain necessary fixes to all known vulnerabilities.
- Performance and resource consumption optimizations: Spryker continuously releases performance improvements based on real-life experiences and scenarios.
- Decreasing upgrade efforts: Distributing upgrades across many smaller steps is much easier than doing one massive upgrade later.
Key resources
The following resources provide information about performance-related module releases:
- Security release notes 202512.0
- Release notes 202410.0
- Release notes 202507.0
- General performance guidelines - contains the list of recent module versions with known performance optimizations
- Cart page performance configuration
Critical module updates
The following sections list important module updates that include performance improvements. It’s recommended that each Spryker project evaluates and applies these updates.
Product search performance
spryker/product-page-search - Recent versions (for example, 3.38.0 - 3.40.0) include improvements such as:
- Caching logic adjustments for product images
- Potential bulk operation support to make search document writes more efficient
- Avoiding duplicate locale events
Session management
spryker/session - at least ^4.17.0
- Provides configurable session locking mechanism
- See Redis session lock for configuration details
spryker/session-redis - at least ^1.11.2
- Includes configurable session locker
- See Redis session lock for setup instructions
Merchant Portal and Back Office performance with ACL rules
- spryker/acl:^3.26.0
- spryker/acl-entity:^1.16.0
- spryker/gui:^4.11.0
- spryker/merchant-profile:^1.9.0
- spryker/merchant-user:^1.9.0
- spryker/multi-factor-auth-merchant-portal:^2.1.0
- spryker/product-attribute:^1.18.0
- spryker/zed-navigation:^1.15.0
Back Office performance on category list page
Order placement performance
- spryker/calculation:^4.14.0
- spryker/discount-calculation-connector:^5.4.0
- spryker/merchant:^3.15.0
- spryker/sales:^11.60.0
- spryker/product:^6.49.0
- spryker/discount:^9.43.0
- spryker/product-cart-connector:^4.13.0
- spryker/company-role:^1.9.1
- spryker/propel:^3.43.0
- spryker/sales:^11.63.0
- spryker/sales-product-connector:^1.11.1
- spryker/shipment:^8.24.0
OMS availability check and order item reservation
- spryker/availability:^9.27.0
- spryker/stock:^8.10.1
- spryker/oms:^11.45.1
- spryker/propel:^3.43.0
- spryker/sales:^11.63.0
Publish and synchronization (merchant-related)
- spryker/merchant-product-offer-storage:^2.6.0
- spryker/product-offer-storage:^1.8.0
- spryker/propel:^3.45.0
Publish and synchronization (merchant relationship prices)
- spryker/merchant:^3.21.0
- spryker/price-product-merchant-relationship:^1.13.0
- spryker/price-product-merchant-relationship-storage:^1.22.0
Additionally, index the fk_company_business_unit column of both storage tables. Create src/Pyz/Zed/PriceProductMerchantRelationshipStorage/Persistence/Propel/Schema/spy_price_product_merchant_relationship_storage.schema.xml and run vendor/bin/console propel:install:
<!--//-->
<table name="spy_price_product_abstract_merchant_relationship_storage">
<index name="spy_price_product_ab_m_r_storage-fk_company_business_unit">
<index-column name="fk_company_business_unit"/>
</index>
</table>
<table name="spy_price_product_concrete_merchant_relationship_storage">
<index name="spy_price_product_con_m_r_storage-fk_company_business_unit">
<index-column name="fk_company_business_unit"/>
</index>
</table>
<!--//-->
Publish and synchronization (product-related)
- spryker/price-product:^4.48.0
- spryker/product-page-search:^3.40.0
- spryker/product-search:^5.24.1
- spryker/product-storage:^1.47.0
- spryker/product-offer-storage:^1.10.0
- spryker/price-product-offer:^1.7.1
- spryker/price-product-offer-storage:^1.5.1
- spryker/price-product-storage:^4.13.0
- spryker/product-image:^3.20.1
- spryker/product-category-storage:^2.11.0
- spryker/product-category-search:^1.2.1
- spryker/propel:^3.47.0
- Note: If you still use destructive deployments, update the
config/install/destructive.ymlfile. You can copy it from any demo shop.
- Note: If you still use destructive deployments, update the
- spryker/event-behavior:^1.32.0
- spryker/synchronization-behavior:^1.13.0
Publish and synchronization (Category tree build logic)
- spryker/category:”^5.23.0”
- spryker/category-storage:”^2.12.0”
- spryker/propel-orm:”^1.22.0”
- spryker/util-sanitize:”^2.3.1”
Publish and synchronization (queue and event performance)
To update all required modules at once:
composer update spryker/rabbit-mq:"^2.25.0" spryker/availability-storage:"^2.11.0" spryker/event:"^2.19.0" spryker/glossary-storage:"^1.14.0" spryker/merchant-product:"^1.12.0" spryker/merchant-product-offer:"^1.12.0" spryker/merchant-product-offer-search:"^1.9.0" spryker/merchant-product-search:"^1.6.0" spryker/merchant-product-storage:"^1.7.0" spryker/price-product:"^4.51.0" spryker/price-product-merchant-relationship-storage:"^1.21.0" spryker/price-product-offer-storage:"^1.8.0" spryker/price-product-storage:"^4.16.0" spryker/product:"^6.54.0" spryker/product-category-search:"^1.3.0" spryker/product-category-storage:"^2.13.0" spryker/product-group-storage:"^1.9.0" spryker/product-image:"^3.21.0" spryker/product-image-storage:"^1.21.0" spryker/product-list:"^1.10.0" spryker/product-list-search:"^2.11.0" spryker/product-list-storage:"^1.21.0" spryker/product-offer:"^1.17.0" spryker/product-offer-availability-storage:"^1.6.0" spryker/product-offer-stock:"^1.7.0" spryker/product-page-search:"^3.47.0" spryker/product-page-search-extension:"^1.7.0" spryker/propel:"^3.50.0" spryker/queue:"^1.28.0" spryker/symfony-messenger:"^1.6.0" spryker/tax-product-storage:"^1.8.0" spryker/url-storage:"^1.23.0" spryker/synchronization-behavior:"^1.14.0"
- spryker/rabbit-mq:^2.25.0
- spryker/availability-storage:^2.11.0
- spryker/event:^2.19.0
- spryker/event-behavior:^1.35.0
- spryker/glossary-storage:^1.14.0
- spryker/merchant-product:^1.12.0
- spryker/merchant-product-offer:^1.12.0
- spryker/merchant-product-offer-search:^1.9.0
- spryker/merchant-product-search:^1.6.0
- spryker/merchant-product-storage:^1.7.0
- spryker/price-product:^4.51.0
- spryker/price-product-merchant-relationship-storage:^1.21.0
- spryker/price-product-offer-storage:^1.8.0
- spryker/price-product-storage:^4.16.0
- spryker/product:^6.54.0
- spryker/product-category-search:^1.3.0
- spryker/product-category-storage:^2.13.0
- spryker/product-group-storage:^1.9.0
- spryker/product-image:^3.21.0
- spryker/product-image-storage:^1.21.0
- spryker/product-list:^1.10.0
- spryker/product-list-search:^2.11.0
- spryker/product-list-storage:^1.21.0
- spryker/product-offer:^1.17.0
- spryker/product-offer-availability-storage:^1.6.0
- spryker/product-offer-stock:^1.7.0
- spryker/product-page-search:^3.47.0
- spryker/product-page-search-extension:^1.7.0
- spryker/propel:^3.50.0
- spryker/queue:^1.28.0
- spryker/symfony-messenger:^1.6.0
- spryker/tax-product-storage:^1.8.0
- spryker/url-storage:^1.23.0
- spryker/synchronization-behavior:^1.14.0
Publish and synchronization (large categories and product offers)
A category event republishes the products of the category and of all its child categories. For the root category of a large catalog, this can be the whole catalog in one queue task, which can exhaust the worker memory. These versions split such events into chunks and stop product offer publishers from loading all product offers.
To update all required modules at once:
composer update spryker/product-page-search:"^3.51.0" spryker/product-category-storage:"^2.15.0" spryker/propel-orm:"^1.27.0" spryker/product-offer-shipment-type:"^1.4.1" spryker/product-offer-shipment-type-storage:"^1.2.3" spryker/product-offer-service-point:"^1.3.2" spryker/product-offer-service-point-storage:"^1.2.3"
- spryker/product-page-search:”^3.51.0”
- When a category event affects more than 1,000 product abstracts, it publishes them as product abstract publish events in chunks instead of in one queue task. To change the limits, override
ProductPageSearchConfig::getCategoryProductAbstractPublishThreshold()andProductPageSearchConfig::getCategoryProductAbstractPublishEventChunkSize().
- When a category event affects more than 1,000 product abstracts, it publishes them as product abstract publish events in chunks instead of in one queue task. To change the limits, override
- spryker/product-category-storage:”^2.15.0”
- Applies the same limit to product category storage publishing. To change the limits, override
ProductCategoryStorageConfig::getCategoryProductAbstractPublishThreshold()andProductCategoryStorageConfig::getCategoryProductAbstractPublishEventChunkSize().
- Applies the same limit to product category storage publishing. To change the limits, override
- spryker/propel-orm:”^1.27.0”
OptimizedSimpleArrayFormattersupports select queries with one column. Required by the two modules above for faster category-to-product lookups.
- spryker/product-offer-shipment-type:”^1.4.1” and spryker/product-offer-service-point:”^1.3.2”
- Product offer shipment type and service point publishing no longer loads all product offers when a batch of product offers has no shipment types or services.
- spryker/product-offer-shipment-type-storage:”^1.2.3” and spryker/product-offer-service-point-storage:”^1.2.3”
- When product offers are published in several batches, all batches keep their storage entries. Before, the entries of some batches were deleted as stale.
Data import (memory usage)
- spryker/acl-entity:”^1.17.0”
- spryker/data-import:”^1.33.0”
- spryker/merchant-relationship-product-list-data-import:”^0.1.3”
- spryker/price-product-merchant-relationship-data-import:”^0.2.5”
Data import (speed and data consistency)
- spryker/data-import:”^1.36.0”
- Sends publish events only after the transaction that wrote the rows is committed, so queue workers no longer skip entities that were imported in bulks.
- spryker/price-product-data-import:”^0.1.15”
- Commits the price import every 1,000 rows instead of after every row, and reads each price type once per import run.
- spryker/merchant-product-data-import:”^0.6.1”
- Reads the store-to-warehouse mapping once per import run instead of for every stock row. Import speed no longer drops as the number of warehouses grows.
If your project has a copy of the demo shop ProductStockPropelDataSetWriter, apply the same store-to-warehouse mapping cache to it. For an example, see b2b-demo-marketplace#1556.
Dynamic entity performance improvements
Cart page and checkout for large carts (100+ items)
For comprehensive guidance on optimizing cart performance, see Cart page performance configuration.
Back Office product abstract list page performance
Product detail page performance on Yves
- spryker/currency:^4.9.0
- spryker/glossary-storage:^1.15.0
- spryker/kernel:^3.87.0
- spryker/price-product:^4.55.0
- spryker/price-product-storage:^4.18.0
- spryker/product-image-storage:^1.22.0
- spryker/product-storage:^1.58.0
- spryker/quote:^2.27.0
- spryker/redis:^2.14.0
- spryker/router:^1.27.0
- spryker-shop/product-group-widget:^1.14.0
- spryker-shop/product-review-widget:^1.21.0
- spryker-shop/shop-ui:^2.2.0
- spryker-shop/store-widget:^1.6.0
- spryker/store:^1.39.0
- spryker/synchronization:^1.20.0
- spryker/url-storage:^1.26.0
Merchant profile page and merchant ACL performance optimization
- spryker/acl-entity:^1.19.1
- spryker/country:^4.10.0
- spryker/merchant-profile-merchant-portal-gui:^4.6.0
- spryker/translator:^1.15.2
- spryker/zed-ui:^4.4.1
Update strategy
To effectively manage dependency updates:
- Monitor release notes: Regularly check Spryker release notes for performance-related updates.
- Test in staging: Always test module updates in a staging environment before production deployment.
- Prioritize performance modules: Focus on modules that directly impact your application’s performance bottlenecks.
- Use semantic versioning: Understand the impact of major, minor, and patch updates.
- Batch related updates: Group related module updates together for testing efficiency.
Compatibility considerations
When updating modules:
- Check module compatibility with your current Spryker version
- Review breaking changes in major version updates
- Test all affected functionality after updates
- Monitor application performance metrics before and after updates
- Consider using Spryker’s Composer Dependency Manager
Thank you!
For submitting the form