Fetch: Simple & Efficient data access
summary
Fetch is a Scala library that builds a dependency tree of data requests and automatically performs batching and deduplication across sources while caching in-memory results, claiming simpler code without explicit concurrency. It uses applicative concurrency for independent requests and monadic sequencing for dependent ones, targets pluggable backends (Future, Task, IO), and requires a three-parameter DataSource typeclass (id, result, target monad). It is work in progress: eager, memory-resident fetches, fail-fast today, with planned better error accumulation and for-comprehension optimizations.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:25The problem
- 1:17Optimizations
- 2:33Modularity
- 3:53Other options
- 5:03Fetch
- 5:31Fetch Example
- 6:12Fetch Declaration
- 7:09Sequencing
- 8:51Fetch in memory
- 9:36Batch Fetch
- 10:18Example
- 11:11List of latest articles
- 12:52Fetch Data Source
- 13:43Whats next
- 14:25Custom error types
- 15:22Questions








