I am developing a connector between Magento 2 and an ERP system. And I have to import 1000s of products from ERP to magento. And Update them using cron.
So I want to know what is the best way to bulk import products. And how they can be achieved?
There's a Magento 2 version of FastSimpleImport:
It allows you to programmatically access Magento\ImportExport module and will be quite fast (50-100 products per second).
Instead of use dirty custom scripts, it's better to follow extensions creation guide and extend Magento 2 Import on proper way, this will help you build solid integration with 3th party platforms. Here is useful links to get started with extend Magento 2 import:
Stable open source implementation of PIM connector - https://github.com/Agence-DnD/PIMGento-2