I have a python script that runs a data migration script through a transaction interfacing with a MySQL DB. I am the process of moving this script over to NodeJS which is accessible through an API endpoint.
The problem I am having is that, since my Python data migration is wrapped in a transaction, then my Node process cannot interact with the new data.
I have started to collect relevant information in my Python script and then send in over the POST body to my Node script for now, but this strategy has it's own complications with keep data in sync and then responding with the new information that I need to make sure to insert back in my Python process.
Is there a better way that I can share the transaction data between my Python and my Node process?
Thank you