Service Layer low complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Flutter-side service responsible for fetching the link catalogue from the backend, persisting results to the local Drift cache with a configurable TTL, and serving cached data when offline. Ensures link availability in low-connectivity environments.

Feature: External Resource Links

resource-links-sync-service

Responsibilities

  • Fetch link catalogue from backend API on screen mount or TTL expiry
  • Persist fetched links to Drift resource_links table with timestamp
  • Return cached links when network is unavailable
  • Respect configurable TTL for cache invalidation

Interfaces

getLinks({bool forceRefresh = false}) Future<List<ResourceLink>>
clearCache() Future<void>
isCacheStale() bool