How mobilenativefoundation/store works
Main Components
a) Core Components (Primary Layer):
• Store Module (Central Component)
• Cache Module
• Multicast Module
• Paging Module
• RX2 Module
b) Key Architectural Elements:
• Fetcher (Data Source)
• SourceOfTruth (Persistence Layer)
• Bookkeeper (State Management)
• Store Builder
• Memory Policy Handler
┌─────────────────────── Client Applications ───────────────────────┐
• Store5 Core ─────────────────────────┐ │
• ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │ │
• Fetcher │──▶│ Store │◀──▶│ SourceOfTruth │ │ │
• ┘ └──────────────┘ └────────────────┘ │ │
• ▲ │ │
• ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │ │
• Bookkeeper │◀──▶│MemoryPolicy │ │ Validator │ │ │
• ┘ └──────────────┘ └────────────────┘ │ │
• ┘ │
• Support Modules ────────────────────────┐ │
• ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │ │
• Cache │ │ Multicast │ │ Paging │ │ │
• ┘ └──────────────┘ └────────────────┘ │ │
• ┌─────────────┐ │ │
• RX2 │ │ │
• ┘ │ │
• ┘ │
• ┘
Data Flow Indicators
• Data fetch flow from Fetcher to Store
• Persistence flow between Store and SourceOfTruth
• State management flow with Bookkeeper
• Cache interactions
• Multicast broadcasting paths
Important Implementation Details to Highlight
a) Core Functionality:
• CRUD operations support
• Multiplatform nature (Android/JVM)
• Caching mechanism
• Reactive streams support
b) Integration Points:
• How clients integrate with the Store
• Extension points for custom implementations
• Optional module integration paths