Skip to content

bff capability

bff adds a Backend-for-Frontend gateway layer to your Go service, handling service aggregation and response shaping for a specific client.

  • Service aggregation patterns
  • Response shaping
  • Backend client abstractions

Use bff when a client (mobile app, web frontend) needs data from multiple backend services in a single request. The BFF aggregates, filters, and shapes responses so the client doesn’t have to. Pair with circuit-breaker and retry for resilience against backend failures.

Requires: http-api

Suggests: circuit-breaker, retry, observability, cors

Terminal window
verikt new my-service --language go --cap http-api,bff
# or add to an existing service:
verikt add bff

circuit-breaker

Protect the gateway when backend services fail.

retry

Retry transient failures from backend services.

cors

CORS headers for browser-facing gateways.