Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

solidninja/example-tapir-backend

Repository files navigation

Example of a service, HTTP endpoints and two interpreters (tapir + ZIO2)

This repository contains a small sample of a:

  • service that does some CRUD operations on a foobar (to make it sufficiently abstract)
  • some HTTP endpoint definitions for exposing it (using tapir)
  • a HTTP server backend using http4s in ./service-http4s/
  • an abstract message-based backend in ./service-message-based/

The latter was the point of this sample project - to demonstrate the feasibility of hooking up HTTP server semantics to a message-based "RPC-like" backend, while keeping all the HTTP semantics and not having to rewrite any code in the main service. See the blog post for more details.