vlambda博客
学习文章列表

两分钟浅述Alibaba Nacos组件(附英文)

Today,Spring Cloud Alibaba整个微服务解决方案中主要包括阿里的Nacos、Sentinel、RocketMQ、Seata等组件和Dubbo框架。目前,Nacos 最新版是今年7月10日Released 1.3.1版本。

OK,First,Let's approach nacos —— https://nacos.io/en-us/

What is Nacos?

Nacos is committed to help you discover, configure, and manage your microservices. It provides a set of simple and useful features enabling you to realize dynamic service discovery, service configuration, service metadata and traffic management.

Nacos 致力于帮助您发现、配置和管理微服务。Nacos 提供了一组简单有用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据及流量管理。

Nacos makes it easier and faster to construct, deliver and manage your microservices platform. It is the infrastructure that supports a service-centered modern application architecture with a microservices or cloud-native approach.

Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。Nacos 是构建以“服务”为中心的现代应用架构 (例如微服务范式、云原生范式) 的服务基础设施。

Service is a first-class citizen in Nacos. Nacos supports discovering, configuring, and managing almost all types of services:

服务(Service)是 Nacos 世界的一等公民。Nacos 支持几乎所有主流类型的“服务”的发现、配置和管理:

Kubernetes Service Kubernetes 服务

gRPC & Dubbo RPC Service gRPC & Dubbo RPC 服务

Spring Cloud RESTful Service Spring Cloud RESTful 服务

Note

gRPC是谷歌开源的一个高性能的、通用的RPC框架。有如下features:

1、gRPC采用了 Proto Buffer作为序列化工具,这比采用JSON方式进行序列化性能提高很多;

2、gRPC采用了HTTP2协议,进行了头部信息压缩,对连接进行了复用,减少了TCP的连接次数;

3、gRPC采用了Netty作为IO处理框架,性能达到了大幅提升。

Netty又是JBOSS开源的一个异步事件驱动的Java网络应用框架,用于快速开发维护高性能的协议服务器和客户端。