Answer the question
In order to leave comments, you need to log in
How to implement a queue of operations?
There are 2 projects.
The first one is managing products and product groups (was taken out of magento due to the complexity of implementation).
The second is ("showcase") an online store with magento.
Task: synchronize products and groups from project 1 to project 2 as soon as products (magenta does not fully support the required functionality of product groups, you have to simulate it).
The work algorithm is approximately the following (A - product management system 1; B - magento):
Creating products and groups.
--- Upload/update A => B.
Order in magento.
--- Update quantity of items B => A (quick operation).
--- Update product quantities in groups A => B (may be a long operation).
Because updating goods in groups is a long operation, so that the client does not have to wait 5 minutes for synchronization after pressing the order button, the idea arose to make a table of tasks for synchronization.
So far, only nodejs that would monitor the sync table is on my mind. When finding entries would run "sync.php".
Are there any other solutions to this problem and is it a normal option with nodejs?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question