bifrost

module
v0.0.0-...-883ae94 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0

README

Bifrost GoDoc Build GoReport Security Coverage Status

A high-performance, low-latency API Gateway library developed in Golang.

Motivation

  1. The Lua ecosystem is relatively small, with many third-party packages still lacking features.
  2. Ideal for people who are more familiar with Go development than Lua.
  3. Integrating existing Go services with the gateway can reduce request latency.
  4. Easy to extend with custom features for secondary development.
  5. Designed for high performance and low latency.

Features

  1. Support for writing middleware in Go.
  2. High performance and low latency (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