We want to integrate Google Tasks API into our Grails Web Application but I have a number of concerns with regard to the syncing of tasks and prevention of conflicting data.
What is best practice for syncing Tasks, at the point when a Task has been created in an authorised Google account. Should we create a service which polls for these at a regular interval or can we programmatically enable some kind of Push update in the user's google account which would notify our Web Application of the change?
How can we prevent conflicts arising from a user editing a task in our system while the same task is being manipulated in the Google account? Is there any versioning/locking available?