talira

A Haskell library that simplifies access to remote data, such as databases or web-based services

open sourceBSD-3-Clauseself-hostablefree

Haxl is a Haskell library from Meta (created at Facebook) for fetching remote data such as databases and web services. You write data-fetching code plainly, and Haxl automatically batches multiple requests to the same data source, fetches from several sources concurrently, caches previous requests and memoizes computations. You connect it to each backend through a thin data source layer, and a generic ConcurrentIO data source runs arbitrary IO operations concurrently. BSD-3-Clause licensed.

Problems it solves

  • batch many requests to the same database or API automatically in Haskell
  • fetch from several remote data sources concurrently without writing concurrency code
  • cache and deduplicate remote data requests within a computation
  • keep data-fetching code readable while it still runs efficiently
  • solve the N+1 request problem when fetching data in Haskell

Features

  • automatic batching of requests to the same data source
  • concurrent requests across data sources
  • caching of previous requests
  • memoization of computations
  • pluggable data sources
  • generic ConcurrentIO data source for arbitrary IO

Capabilities

Takes pluginsplan not known
Has official SDKsplan not known