Git Product home page Git Product logo

ctrip-apollo-client's Introduction

🌈🌈🌈 如果使用中有什么问题,欢迎提PR一起维护

Introduction

Apollo(阿波罗)是携程框架部门研发的分布式配置中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。

本项目为Node.js 客户端,工作原理如下:

图裂了,看 assets/README/img.png 配置中心配置以点分隔如 mysql.host:127.0.0.1 ,客户端会自动转化为Json

{ mysql:{ host: 127.0.0.1 } } }

apollo 服务端测试环境:

Examples 使用下面的环境作为测试服务,可直接运行。

Features

  • 配置热更新
  • 缓存配置到本地
  • 灰度发布
  • 支持 TypeScript

Install

npm i @lvgithub/ctrip-apollo-client

Links

Examples

Benchmark

注入方式 性能 用例数
不热更新 736,896,802 ops/sec 82 runs sampled
热更新 hotValue() 2,021,310 ops/sec 87 runs sampled
热更新 @value 2,161,312 ops/sec 87 runs sampled
原生访问 704,644,395 ops/sec 82 runs sampled

MIT

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.