Service to service — RPC · Hono

A gateway in front of the cats service: a dashboard that aggregates what the service knows and an adoption route that forwards a request and passes the service's refusals through, both over a client built from the service's type with the service's own request() as its fetch.

What you will learn

Read the theory for Service to service

All RPC lessons

All Hono courses

loading types…

What you'll learn

  • Build a client to another service from its exported type, with a fetch that is a binding, the network, or the other app's request()
  • Call a service from inside a handler and let its types flow into the gateway's own response
  • Narrow on the service's status and answer with the same status to pass a refusal through