Skip to content

Lightweight Go SDK used as Proxyless Service Governance

License

Notifications You must be signed in to change notification settings

WTIFS/polaris-go

This branch is 23 commits behind polarismesh/polaris-go:main.

Folders and files

NameName
Last commit message
Last commit date
Nov 19, 2023
Jun 21, 2024
Oct 31, 2022
Jul 19, 2024
Aug 11, 2024
Jul 19, 2024
Nov 19, 2023
Feb 27, 2023
Feb 3, 2023
Dec 4, 2021
Dec 4, 2021
Dec 4, 2021
Sep 2, 2022
Apr 22, 2023
Apr 22, 2023
Dec 18, 2023
Nov 19, 2023
Dec 18, 2023
Apr 12, 2023
Oct 31, 2022
Nov 19, 2023
Nov 24, 2022
Oct 12, 2023
Oct 12, 2023
Feb 3, 2023
Nov 19, 2023
Apr 2, 2022
Jul 19, 2024
Oct 24, 2022
Jun 29, 2023

Repository files navigation

Polaris Go

codecov Go goproxy Go Reference GitHub release (latest by date)

English | 简体中文

README:

Introduction

Polaris-go is golang SDK for Polaris. Polaris is an operation centre that supports multiple programming languages, with high compatibility to different application framework.

Polaris-go provide features listed as below:

  • Service instance registration, and health check

    Provides API on/offline registration instance information, with regular report to inform caller server's healthy status.

  • Service discovery

    Provides multiple API, for users to get a full list of server instance, or get one server instance after route rule filtering and loadbalancing, which can be applied to srevice invocation soon.

  • Service circuitbreaking

    Provide API to report the invocation result, and conduct circuit breaker instance/group insolation based on collected data, eventually recover when the system allows.

  • Service ratelimiting

    Provides API for applications to conduct quota check and deduction, supports rate limit policies that are based on server level and port.

How to use

polaris-go can be referenced by go mod, user can add dependency to go.mod file

go get -u github.com/polarismesh/polaris-go

API quick start guide,can reference:QuickStart

Examples

A polaris-examples module is included in our project for you to get started with polaris-go quickly. It contains an example, and you can refer to the readme file in the example project for a quick walkthrough.

Frameworks

Developers usually use HTTP or RPC frameworks to develop distributed service. Polaris SDK is already integrated into some development frameworks. If using these frameworks, you can enable Polaris Service Governance functions without using Polaris SDK directly.

About

Lightweight Go SDK used as Proxyless Service Governance

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.4%
  • Other 0.6%