Highway RPC Protocol

Concept Description

Highway is ServiceComb‘s private high-performance protocol, it’s suitable for the performance sensitive scenarios.

Configuration

To use the Highway channel, add the following dependencies in the pom.xml file:

<dependency> 
  <groupId>org.apache.servicecomb</groupId>  
  <artifactId>transport-highway</artifactId> 
</dependency>

The Highway configuration items in the microservice.yaml file are described below:

Table 1-1 Highway configuration items

Configuration ItemDefault ValueValue RangeRequiredDescriptionRemark
servicecomb.highway.address0.0.0.0:7070-NoThe address that the server listens-
servicecomb.highway.server.thread-count1-NoThe number of server network threads-
servicecomb.highway.client.thread-count1-NoThe max number of allowed client connections-
servicecomb.highway.client.connection-pool-per-thread1-NoThe number of client network threads-
servicecomb.request.timeout30000-NoThe request timeout durationThe same with the configuration of “REST over Vertx”
servicecomb.references.[servicename].transportrestNoThe transport type of the requestThe same with the configuration of “REST over Vertx”
servicecomb.references.[servicename].version-rulelatest-NoThe version of the requested instance.The same with the configuration of “REST over Vertx”

Sample code

An example of the Highway configuration in the microservice.yaml:

servicecomb:
  highway:
    address: 0.0.0.0:7070