https://medium.com/@romanbessouat/automate-data-ingestion-inside-postgres-and-elasticsearch-with-python-d7e3e065ff5e