So here is what i understand. Please correct me if this is wrong -
Components -
1) My desktop application runs every X minutes and inserts the data into the db.
2) Cloud app which would visualize this data every X minutes.
Every time data is inserted into db, a
servlet(since desktop app is in Java) runs and sends a json
string to the cloud app. Now the cloud app parses this string and gets data to visualize
or
Every time data is inserted into db, a servlet(since desktop app is in Java) runs and saves the data in the cloud app db. Now the cloud app reads its own db and visualizes.