Register webhooks bulk operation and product create/update at the same time

Hello everyone, I have a case like this:

  • I registered webhook product/update and product/create to sync data from shopify to the database.
  • And I register webhook bulk_operations/finish to create or update multiple products at the same time.
    So if I create or update a product at the same time, will the webhook product/update and product/create run at the same time?
    If the same situation occurs at the same time, it will cause conflict when saving to the database.

Has anyone thought about this problem?