Giter Site home page Giter Site logo

xmicro's Introduction

xmicro

WISH

  • 基础的微服务
  • 有多种配置中心方式
  • 有多种服务发现方式
  • 多种网关选择
  • grpc

DID

  • 封装微服务服务注册,支持Nacos、ETCD,可扩展✅
    • 用的单例模式+工厂模式,用工厂函数实现而不是工厂类,用的GetInstance创建和返回 Registry 实例
  • 自定义返回体结构 ✅
  • zap日志 & lumberjack 记录日志 ✅
  • nacos 配置中心 ✅
  • nacos 服务注册与发现 ✅
  • nacos 停止程序后取消注册服务 ✅

TODO

  • 封装微服务发现&启动程序时发现多个服务
  • etcd和nacos的注册发现目前是分的两个方法,看能不能用设计模式优化下
  • 链路追踪
  • etcd 配置中心
  • 多房间聊天室服务

项目配置

1 执行 docker-compose.yml 安装基础服务 2 安装nacos服务端,创建命名空间ID,将config下面的nacos配置改为新的配置 3 将"nacos上配置文件的备份"里的服务配置文件放在nacos上,可根据需求进行调整

xmicro's People

Contributors

grey0904 avatar

Stargazers

 avatar  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.