Let's say that I would like to analyse some tweets (for example, count the number of tweets that were written in the last 24 hours) using tweepy library and use the outcome in my Java app. I'd like to write a Python microservice that conducts the analysis and then print the result of the analysis from the Java code (simply System.out.print).
I'd like to ask you for some books/articles/videos/blog posts recommendations that teach how can it possibly be done. I don't know whether a Python service should be running somewhere on my computer or can it be called from Git? How to integrate it with Java? How to call it from Java environment etc.
I've seen these topics: Java Python Integration and Python web service for a java application?, but neither first nor second address the issues I have. I'd like a step-by-step walkthrough of an integration between a Python microservices and a Java app.