# Introduction

# What is Sermant?

Sermant is a proxyless service mesh based on Java bytecode enhancement technology. It utilizes Java bytecode enhancement to provide service governance capabilities to applications, addressing service governance issues in large-scale microservices architectures. Sermant has built a non-intrusive, high-performance and pluggable core framework, and integrated dynamic configuration service, event service, link marking service, heartbeat service and other core service capabilities into the framework. The plugins currently provided in the open source repository cover a wide range of service governance scenarios such as service registration, label routing, traffic control, service monitor, etc., and are widely used in finance, government, enterprises, Internet and other fields.

# Architecture

Sermant's purpose also includes building a plugin-development ecosystem to help developers develop the service governance function more easily while not interfering the business code. The Sermant architecture is depicted as follows.

As described above, Sermant's JavaAgent has two layers of functions.

  • Framework core layer. The core layer provides Sermant's basic framework capability, in order to ease the plugin development. The function of this layer includes heart beat, data transmit, dynamic configuration, etc.
  • Plugin service layer. The plugin provides actual governance service for the application. The developer can either develop simple plugin by directly leveraging framework core service, or can develop complex plugin by developing plugin's own complex service-governance function.

Sermant's JavaAgent widely adopts class isolation technology in order to eliminate the class load conflicts between framework code, plugin code, and application code.

A microservice architecture using Sermant has the following three components, which is depicted in the following diagram.

  • Sermant JavaAgent: dynamically instrument the application for the service governance capability.
  • Sermant Backend: provide the connection and the pre-processing service for the JavaAgents' all uploaded-data.
  • Dynamic configuration center: Providing the instructions by dynamically update the config to the listening JavaAgent. Dynamic configuration center is not directly provided by Sermant project. The projects currently support servicecomb-kie, etc.
Last Updated: 4/22/2024, 6:23:05 AM