https://github.com/tdgroot/magento2-module-stockpush
https://github.com/tdgroot/magento2-module-stockpush
magento magento2 magento2-module
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tdgroot/magento2-module-stockpush
- Owner: tdgroot
- Created: 2018-07-06T17:50:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-06T18:18:23.000Z (almost 7 years ago)
- Last Synced: 2025-02-14T20:32:01.759Z (2 months ago)
- Topics: magento, magento2, magento2-module
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# magento2-module-stockpush
This idea came up to me and seemed quite interesting to me, it's 100% educational and will help me study for Magento Certification this summer.
It would be really cool, however, if this ends up becoming 'production ready'. We'll see :).## Scenario
- Lots of stock changes.
- A lot of traffic.
- Product/category page cache shouldn't be cleared on stock changes.## Ideas
- Let stock be loaded using JS components.
- JS components communicate with Magento through a standalone websocket.
- Websocket subscribes to a Redis instance to receive stock update events from Magento.
- JS components can request websocket for stock as well.## Difficulties
- Disable cache busting on inventory changes.
- Replace stock labels with JS components on front-end.
- Persist socket connection, this would probably go with a service/web worker.