typelevel / typelevel/fs2

Introduce higher-level "network client" APIs

Open
#3,419 1 comment 18 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Scala
Stars
2.5k
Forks
636
Avg merge
2d 4h
Merged PRs (30d)
7

Description

FS2's Network APIs are frequently used to build clients such as Ember (HTTP client) and Skunk (Postgres client). These implementations build on top of the "low-level" Socket APIs and introduce higher-level concepts such as persistent, pooled connections. Currently there is both duplicated code and duplicated (and also unique!) bugs across Ember and Skunk and probably other client libraries in our ecosystem.

I propose that we introduce to FS2 a new set of high-level APIs that formalize "Connection" and help handle its lifecycle within a configurable pool. The goal would be that this abstraction is something that Ember, Skunk, and other client libraries could build on top of.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading FS2's existing Network and Socket APIs, then compare the linked Ember and Skunk implementations and related issues and pull requests. Define the shared Connection lifecycle and configurable pooling requirements before identifying the API boundaries. Done means FS2 provides a reusable high-level abstraction that client libraries can build on.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend-api-design, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.