Service Layer high complexity Shared Component mobile
4
Dependencies
2
Dependents
1
Entities
0
Integrations

Description

Central coordinator for all offline read and write operations. Routes data access through the local SQLite cache when network is unavailable and queues mutating operations in the sync queue. Falls back gracefully so the rest of the app treats online and offline modes identically.

Feature: Offline Data Support

offline-storage-service

Responsibilities

  • Intercept repository calls and serve from local cache when offline
  • Queue write operations (create, update, delete) for later sync
  • Invalidate and refresh local cache entries after successful sync
  • Expose connectivity-aware data access methods to feature repositories
  • Coordinate with the sync queue repository to track pending operations

Interfaces

readActivity(String id): Future<Activity>
writeActivity(Activity activity): Future<void>
readContact(String id): Future<Contact>
writeContact(Contact contact): Future<void>
readEvent(String id): Future<Event>
getPendingOperationCount(): int
clearCacheForEntity(String entityType): Future<void>

Related Data Entities (1)

Data entities managed by this component