Skip to content
项目

关于

Apache Dubbo 的 TypeScript 实现。Apache Dubbo 是面向 Node.js 和 Web 开发的 RPC 与微服务框架。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Apache Dubbo for ECMAScript

License Build

Apache Dubbo is an easy-to-use Web and RPC framework that provides different language implementations(Java, Go, Rust, Node.js, Javascript) for communication, service discovery, traffic management, observability, security, tools, and best practices for building enterprise-ready microservices.

Dubbo-js is the TypeScript implementation of Dubbo triple protocol (a fully gRPC compatible and http friendly protocol), which can be used for Node.js and web application development. With dubbo-js, you can easily build applications working on browser and frontend that can communicate with backend services through http-based protocol.

arc

Get Started

The Node.js example builds from this workspace. It publishes a Protobuf service and calls it over HTTP/2 Triple and HTTP/1.1 ProtoJSON. Use Node.js 22 and pnpm 8.15.9.

pnpm install --frozen-lockfile --ignore-scripts
pnpm build
pnpm --filter dubbo-node-example build
pnpm --filter dubbo-node-example server

In another terminal, run the typed client or send a ProtoJSON request.

pnpm --filter dubbo-node-example client
curl --fail --http1.1 \
  -H 'content-type: application/json' \
  -H 'tri-service-group: dubbo' \
  -H 'tri-service-version: 1.0.0' \
  --data '{"sentence":"Hello World"}' \
  http://127.0.0.1:8080/apache.dubbo.demo.example.v1.ExampleService/Say
  • The Node.js example also covers Nacos and ZooKeeper discovery and calling a Dubbo Java 3.3.7 interface.
  • The Web example calls the same service from a browser using Triple or gRPC-Web.
  • The observability example exports provider and consumer metrics to Prometheus.
  • The Node.js SDK reference covers startup checks, routing, load balancing, connection management, and per-call options.

How to contribute

Please check CONTRIBUTING for how to contribute to this project.

Connect us

Search Dingding group number and join us: 27690019068

Credit

This project is based on bufbuild/connect-es, an open-source project released under Apache License v2. Dubbo JS adds Triple interoperability with Dubbo Java, Java interface clients, and service governance for Node.js.

We have a announcement in our LICENSE file and keep all license headers of files come from connect-es unchanged.

探索相关项目

加载中…