bifrost

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2025 License: Apache-2.0

README

Bifrost GoDoc Build GoReport Security Coverage Status

A low latency and high throughput API Gateway library written in Go.

Goal

  1. Low latency and high throughput.
  2. Allows writing middlewares in native Go.
  3. Easy to integrate with existing Go services.
  4. Built as an SDK/library instead of an artifact.

Features

  1. Support for writing middleware in Go.
  2. Low latency and high throughput (powered by the Hertz framework).
  3. Millisecond-level hot reloads for route updates without interrupting requests.
  4. Built-in Prometheus monitoring.
  5. Built-in OpenTelemetry tracing.
  6. Supports HTTP1.1/HTTP2/H2C/Webosocket/GRPC protocols.

Comparative Analysis

Bifrost Nginx
SDK mode support for custom your gateway
Middleware support
Middleware written in Go
Rich middleware ecosystem
Millisecond-level hot reloads for route updates
Blue-green deployment for services
High connection pool reuse rate
Easy integration with existing Go programs
Built-in Prometheus monitoring
Built-in OpenTelemetry tracing
HTTP2 upstream support
High concurrency and low latency
GRPC Load Balancer
Sticky session
Background task support

Overview

flow

servers: Server configuration, supports middlewares, controlling which port to expose
routes: Route configuration, controls request path forwarding rules to specific services
services: Service configuration, controls service details such as protocol information
upstreams: Upstream configuration, manages load balancing rules for backend hosts

Get Started

Set up a high-performance API gateway in 5 minutes

Documents

  1. Configuration
  2. Routes
  3. Middlewares

Roadmap

  1. Cluster management support.

Credit

  1. CloudWeGo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL