cancel
Showing results for 
Search instead for 
Did you mean: 

Frequently import products through API

SOLVED

Frequently import products through API

Hi,

I need som guidence on how I should approach my problem. We have a pretty big product catalog (around 160k products) and get updates from distributor several times a day.

My idea was to write a script that import the changes through the Bulk API.

That works pretty smooth but once the products imported they end up in queue which is really slow and seems to slow down the site.

 

Does anybody have any suggestions on how to solve my issue? Is there a better approach to frequently import a lot of products?

 

Thanks in advanced to your suggestions!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Frequently import products through API

The's just one of the ways to run consumers, the default one that triggers by cron every minute. 

 

The topic is a bit more complex than that, and the best I can do is point you to read this - https://magento.stackexchange.com/questions/366274/does-magento-2-launch-all-rabbitmq-consumers-only...

Founder at https://agency418.com

View solution in original post

4 REPLIES 4

Re: Frequently import products through API

I guess you only run one consumer through default cron that starts it every minute?

You can run multiple consumers at the same time which will increase the speed at which the queue is being consumed.

Founder at https://agency418.com

Re: Frequently import products through API

Ok, is there any documentation on how to configure that? 

 

This is how my env.php looks like where I guess this is confiugured:

'cron_consumers_runner' => [
'cron_run' => true,
'max_messages' => 10000,
'consumers' => [
'async.operations.all'
]
],

Re: Frequently import products through API

The's just one of the ways to run consumers, the default one that triggers by cron every minute. 

 

The topic is a bit more complex than that, and the best I can do is point you to read this - https://magento.stackexchange.com/questions/366274/does-magento-2-launch-all-rabbitmq-consumers-only...

Founder at https://agency418.com

Re: Frequently import products through API

Frequently importing products through an API can be a great way to automate your inventory management and keep your product listings updated. However, to give you specific advice, I need more information about your situation. Here are some questions that will help me understand your needs better: Raising Cane’s Menu Prices