Ant

Project Url: CameloeAnthony/Ant
Introduction: Example project inspired by Trinea's android-common project using new techs which make your architecting of android apps quicker and smoother ,long-term maintenance by Anthony.
More: Author   ReportBugs   
Tags:

Haafiz is a gateway in Micro Service which is inspired by many open source gateway :Zuul 1.x , spring cloud gateway,currently not released now ......

Haafiz (在英文中是守护者的意思)参考了很多开源网关的思想,基于 Netty,Disruptor,etcd 等技术做一个开源网关目前,目前还未发布正式版本

Communication FrameWork

Netty Netty 通信框架

Register Center

Etcd Etcd 注册中心

Base Project FrameWork

Java Java 语言

Design HighLights

  • asynchronized request &response
  • Disruptor& MPMC(multi producer and multi consumer)to support higher performance
  • Netty Reactor
  • load balance design refernce from Dubbo
  • Make full use of cache (config&route rule&ReferenceConfig in dubbo&loadbalance strategy...)
  • FilterChain design reference to Netty &Sentinal
  • serialization for quick response data & parallelization for heavy time-consuming data
  • OpenTracing protocol and RollingNumber to track request& response

    设计亮点

  • 异步请求响应
  • Disruptor &MPMC 高性能实现
  • Netty Reactor 线程模型
  • 参考 Dubbo 的负载均衡设计
  • 充分使用缓存(配置,路由规则,负载均衡策略)
  • 参考 Sentinel 和 Netty 的 FilterChain 职责链模型设计
  • 串行化和并行化优化
  • 基于 Opentracing 和 RollingNumber 的请求,响应记录

    core features

  • authorization & authentication
  • flow control
  • black/white list
  • gray route support
  • redirect
  • flow statistics

核心功能

  • 权限校验
  • 流控
  • 黑白名单
  • 灰度路由
  • 路由转发
  • 流控统计

architecture diagram

todo

架构图

todo

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools