Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mapoio/ctrip-apollo-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapoio/ctrip-apollo-client

本项目为携程配置中心框架 Apollo 提供的Node.js版本客户端。

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Examples

Benchmark

注入方式性能用例数
一次性注入736,896,802 ops/sec82 runs sampled
支持热更新2,021,310 ops/sec87 runs sampled
热更新默认值1,581,645 ops/sec87 runs sampled
装饰器注入2,161,312 ops/sec87 runs sampled
原生访问704,644,395 ops/sec82 runs sampled

License

MIT

Keywords

FAQs

Package last updated on 12 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc