GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fangzi123/nettyrpc-java: A simple RPC framework based on Netty, ZooKeeper or Nacos or Consul and SpringBoot

BranchesTags
Open more actions menu

Latest commit

 

History

61 Commits
61 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
nettyrpc-core
nettyrpc-core
 
 
nettyrpc-example
nettyrpc-example
 
 
nettyrpc-naming-consul
nettyrpc-naming-consul
 
 
nettyrpc-naming-nacos
nettyrpc-naming-nacos
 
 
nettyrpc-naming-zookeeper
nettyrpc-naming-zookeeper
 
 
nettyrpc-spring-boot-starter
nettyrpc-spring-boot-starter
 
 
nettyrpc-spring
nettyrpc-spring
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

项目名称

【nettyrpc-java】 nettyrpc-java 是 rpc的java版实现,支持 kryo、protostuff、fastjson序列化协议。

核心功能点

  • 支持 TCP+protostuff/fastjson/kryo协议。
  • 支持 SpringBoot starter。
  • 支持多种naming服务,已支持List、File、nacos、Zookeeper、Consul。 可以灵活扩展支持 etcd、eureka、DNS等。
  • 支持多种负载均衡策略,比如random、round robin。
  • 支持interceptor功能,支持计数器、令牌桶等server端限流算法。
  • rpc功能可独立使用,不是必须依赖Spring和注册中心功能。
  • 基于SPI机制可灵活扩展Protocol、NamingService和LoadBalance。

Design:

design

快速开始

开发环境

java 11 && netty 4 && protostuff 1.0.8

引入maven依赖

SpringBoot环境:

<dependency>
    <groupId>com.nettyrpc</groupId>
    <artifactId>nettyrpc-spring-boot-starter</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

注册发现中心(list与file不需要):

nacos:

<dependency>
    <groupId>com.wangff</groupId>
    <artifactId>nettyrpc-naming-nacos</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

zookeeper:

<dependency>
    <groupId>com.wangff</groupId>
    <artifactId>nettyrpc-naming-zookeeper</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

Server端使用

  • server端基本用法

Client端使用

  • client端基本用法

扩展

  • 扩展Protocol、NamingService、LoadBalance

参考

  • https://www.cnblogs.com/luxiaoxun/p/5272384.html
  • https://github.com/luxiaoxun/NettyRpc
  • https://github.com/baidu/brpc-java
  • https://www.cnblogs.com/duanxz/p/9661932.html
  • https://www.cnblogs.com/ASPNET2008/p/6892137.html

About

A simple RPC framework based on Netty, ZooKeeper or Nacos or Consul and SpringBoot

Resources

Readme
Activity

Stars

9 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.