talira

Performance-focused HTTP client for Elixir

open sourceMITfree

Finch is an HTTP client for Elixir focused on performance, built on Mint and NimblePool. You start a Finch instance in your supervision tree, and it keeps efficient connection pools for each scheme, host and port you talk to, avoiding copying memory where it can; pool sizes and counts can be set per URL. Its README notes that most developers will prefer Req, which uses Finch's pooling underneath.

Problems it solves

  • make fast HTTP requests from my Elixir app with connection pooling
  • an HTTP client for Elixir that keeps connections open between requests
  • tune connection pool sizes for different APIs my Elixir service calls

Features

  • connection pools per scheme, host and port
  • pool size and count configurable per URL
  • built on Mint and NimblePool
  • runs in your supervision tree

Alternatives

The same job

These do what Finch does.

  1. hackney An HTTP client for Erlang. Simple, reliable, fast.
  2. Mint Functional, low-level HTTP/1 and HTTP/2 client for Elixir
  3. HTTPoison Yet another HTTP client for Elixir, powered by hackney
  4. Tesla The flexible HTTP client library for Elixir, with middleware and multiple adapters
  5. Gun Erlang HTTP/1.1, HTTP/2 and Websocket client
  6. Req A batteries-included HTTP client for Elixir

Compare Finch with the top 3