We're working on a Full Stack Spring Boot project. One of our team members has developed a Python script for web scraping and audio (speech) integration to interact with the data. This script has been integrated into our Spring Boot application using Jython. However, we have some concerns about the good practices and would appreciate your insights on the following points:
Has anyone successfully used Jython in a production environment to integrate Python scripts with Java? What were the key challenges and benefits you encountered? Would creating a separate Python endpoint and interacting through APIs be a better approach compared to using Jython? What are the pros and cons of this method? Since it is feasible to rebuild the functionality of the Python script directly in Java, why should we use Python for this task? What are the potential challenges and benefits of implementing this functionality directly in Java?
We appreciate any experiences or advice you can share!
Thank you!