I would like to use Google Spreasheets for allowing people to visualize and edit the data of tables stored in mongodb collections.
The data is created by web services, around 50 mongodb collections are created daily. (The data is tabular in essence: all the documents of a collections are flat key value objects with the same keys.)
Now, I want to allow people inside my company to visualize and edit the data of the tables using Google Spreadsheet.
I am looking for the best way to keep mongobd and Google Spreasheets in Sync.
I looked at Google Sheets API and Google Drive API. It seems to be feasible. My design is:
- Each time a web service writes data to a mongo collection, it updates the corresponding spreadsheet via Google Sheets API (java)
- Once a minute, using Google Drive Revision API, I check what spreadsheets were recently updated.
I could differentiate between changes made by people through the Spreadsheets app and changes made by the web service, because the web service uses a special user.
But as far as I know, the Google Drive revision API doesn't allow to get only the changes that are made by a set of users.
Is my design appropriate?