This project is samples for java-chassis 3.x.x. You can switch to other branches to see different samples.
A sample shows a provider, a consumer and a gateway using java chassis.
A sample shows a provider, a consumer and a gateway using java chassis. While provider and consumer are packaged as WAR and deploy in tomcat.
A sample microservices application that demonstrates BMI (Body Mass Index) calculation, consisting of a calculator service and a web interface service with gateway capabilities. This example shows how to build and connect microservices in a practical scenario.
A collection of deployment samples demonstrating how to deploy java-chassis applications in external web containers, including Spring Boot and traditional WAR deployments.
A demonstration of interoperability between Spring Cloud and Java Chassis frameworks, featuring a Spring Cloud Gateway with cross-framework service invocations using both ServiceComb and Nacos service registries.
A sample shows an application with basic login, download file, delete file functions. Read this document for details.
Featured samples for java-chassis modules. Each module contains 10 minutes guides.
java-chassis integration tests。
Please refer to the version in
servicecomb-java-chassisas the primary reference.
The benchmark data compares three RESTful frameworks (Dubbo 3.2.11, Spring Cloud 2022.0.x, and ServiceComb Java-Chassis 3.0.1) under various test conditions: different payload sizes (1/100/1000), waiting times (0/10/100ms), with 10 threads and 1000 executions. Historical data from previous tests (2023-12-5, 2023-11-16) includes comparisons with different versions and JDK 8 environment, both with and without access logging enabled.
Before running the samples,install:
Or download Lightweight Cloud Service Engine which integrates both service center and kie for ease of use.
这个项目使用 java-chassis 3.x.x 版本。可以切换分支,查看其他版本的例子。
该项目展示了 Java Chassis 开发的一个 provider, 一个 consumer 和一个网关服务。
该项目展示了 Java Chassis 开发的一个 provider、一个 consumer 和一个网关服务。与 basic 项目不同的是,provider 和 consumer 被打包为 WAR 文件并部署在 tomcat 中。
一个演示 BMI(身体质量指数)计算的微服务应用示例,包含一个计算器服务和具有网关功能的 Web 界面服务。该示例展示了如何在实际场景中构建和连接微服务。
一组部署示例,演示如何在外部 Web 容器中部署 java-chassis 应用,包括 Spring Boot 和传统的 WAR 部署方式。
展示 Spring Cloud 和 Java Chassis 框架之间的互操作性,特点是使用 Spring Cloud 网关通过 ServiceComb 和 Nacos 服务注册中心实现跨框架服务调用。
该项目演示了一个包括网关、文件下载、认证鉴权等功能的简单应用系统,同时演示了 ServiceComb
推荐的先写接口声明,再写业务代码的软件工程实践。可以阅读文章
了解项目的细节。
这个例子的运行环境采用 vert.x 作为 HTTP 服务器,即 REST over Vert.x transport。
java-chassis 各个模块功能的例子。每个子项目包含了 10 分钟可以学习完成的简单示例。
java-chassis 的集成测试用例。
性能基准测试数据,比较了三个 RESTful 框架(Dubbo 3.2.11、Spring Cloud 2022.0.x 和 ServiceComb Java-Chassis 3.0.1)在不同测试条件下的表现:包括不同数据负载(1/100/1000)、等待时间(0/10/100ms)、10 个线程和 1000
次执行。包含了之前测试(2023-12-5、2023-11-16)的历史数据,涵盖了不同版本和 JDK 8 环境下启用和禁用访问日志的对比。
运行这些例子之前,需要先安装:
华为云提供一个出色的本地轻量化微服务引擎 ,可以直接下载安装使用。