Real-Time vs Batch Syncing for Local Data APIs: Pros and Cons