Giter Site home page Giter Site logo

bxvs888 / java-mesh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huaweicloud/sermant

0.0 1.0 0.0 17.79 MB

License: Apache License 2.0

Java 95.05% Dockerfile 0.02% HTML 0.29% Shell 0.22% Groovy 0.16% FreeMarker 0.31% Batchfile 0.04% JavaScript 2.91% Python 0.08% CSS 0.10% Roff 0.83%

java-mesh's Introduction

A service mesh solution based on JavaAgent

Gitter License CI/IT Tests

What is Java-mesh

Java-mesh is a service mesh technology based on JavaAgent . It leverages the JavaAgent to instrument the host application with enhanced service governance function, in order to solve the service governance problem, in the massive micro-service architecture.

Java-mesh'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 Java-mesh architecture is depicted as follows.

pic

As described above, Java-mesh's Javaagent has two layers of functions.

  • Framework core layer. The core layer provides Java-mesh'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.

Java-mesh'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 Java-mesh has the following has the following three components, which is depicted in the following diagram.

pic

  • Java-mesh Javaagent: dynamically instrument the application for the service governance capability.
  • Java-mesh 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 Java-mesh project. The projects currently support servicecomb-kie, etc.

Quick start

Download or compile

Click here to download JavaMesh binary package. If you will to compile the project yourself, please follow the following steps.

Execute maven command to package the Java-mesh project's demo module.

mvn clean package -Dmaven.test.skip -Pexample

Execute maven command to package the Java-mesh project's back-end module.

mvn clean package -Dmaven.test.skip -Pbackend

Start Java-mesh

Start Java-mesh backend

# Run under Linux
java -jar javamesh-agent-x.x.x/server/javamesh/javamesh-backend-x.x.x.jar
# Run under Windows
java -jar javamesh-agent-x.x.x\server\javamesh\javamesh-backend-x.x.x.jar

Start Java-mesh demo project:

# Run under Linux
java -cp javamesh-samples/javamesh-example/demo-application/target/demo-application.jar \
  -javaagent:javamesh-agent-x.x.x/agent/javamesh-agent.jar=appName=test \
  com.huawei.example.demo.DemoApplication
# Windows下执行
java -cp ..\javamesh-samples\javamesh-example\demo-application\target\demo-application.jar ^
  -javaagent:javamesh-agent-x.x.x\agent\javamesh-agent.jar=appName=test ^
  com.huawei.example.demo.DemoApplication

More documents to follow

Please refer to the Development Guide

License

Java-mesh adopts Apache 2.0 License.

How to contribute

Please read Contribute Guide to refer how to jion the contribution.

Declaration

  • Apache/Servicecomb-java-chassis: Java-mesh refer the service governance algorithm from Apache Servicecomb project.
  • Apache/Servicecomb-kie: Java-mesh uses servicecomb-kie as the default dynamic configuration center.
  • Apache/SkyWalking: The plugin architecture in this project is refered to Apache Skywalking. Part of the framework code in Java-mesh is built based on Apache Skywalking project as well.
  • Alibaba/Sentinel: Java-mesh's flow-control plugin is built based on Alibaba Sentinel project.

java-mesh's People

Contributors

beetle-man avatar fuziye01 avatar glovethu avatar hapthorin avatar justforstudy-a avatar lilai23 avatar provenceee avatar robotljw avatar scyiwei avatar sherlockhan avatar useless223 avatar xuezechao1 avatar yangyshdan avatar zhongleijd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.