Site icon Golang Libraries, Apps, Golang Jobs and Go Tutorials

A Golang-based flow-control component enabling reliability and real-time monitoring for microservices

What Is the golang-based Sentinel?

As distributed systems are becoming increasingly popular, the reliability between services is becoming more important than ever before. Sentinel is a powerful fault-tolerance component that takes “flow” as the breakthrough point and covers multiple fields including flow control, traffic shaping, concurrency limiting, circuit breaking, and adaptive system protection to guarantee the reliability and resiliency of microservices.

History of Sentinel

Key Concepts

Resources

Resource is a key concept in Sentinel. It could be anything, such as a service, a method, or even any code snippet.

Once it is wrapped by Sentinel API, it is defined as a resource. Sentinel will record its real-time metrics and perform rule checking.

Rules

Sentinel protects resources by rules, such as flow control, concurrency control, and circuit breaking rules. Rules can be dynamically updated, and take effect in real-time.

Features and Principles

Flow control and traffic shaping

Sentinel provides the ability to handle random incoming requests according to the appropriate shape as needed, as illustrated above

Principles of flow control

Flow control is based on the following statistics:

Sentinel allows applications to combine all these statistics in a flexible manner.

Circuit breaking and concurrency control with Golang

Circuit breaking is used to detect failures and encapsulates the logic of preventing failure from constantly reoccurring during maintenance, temporary external system failure or unexpected system difficulties.

Sentinel leverages the following principles to prevent your services from cascade failure:

Adaptive system protection

Sentinel can be used to protect your services in case the system load or CPU usage goes too high. It helps you to achieve a good balance between system load and incoming requests with Golang Jobs.

How Sentinel works

Exit mobile version