Realtime and non-realtime syncing of data