The more flexible and high-volume optimized solution is to develop a client to Alfresco ETL Connector server-side extension, which means sending Alfresco ACP XML over REST and handling per-document return codes.
See architecture details at the bottom of the README :