Highway

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 ValueDescription
servicecomb.highway.addressThe address that the server listens, empty for not listen, just a highway client
servicecomb.highway.server.connection-limitInteger.MAX_VALUEAllow client maximum connections
servicecomb.highway.server.thread-countverticle-counthighway server verticle instance count(Deprecated)
servicecomb.highway.server.verticle-countverticle-counthighway server verticle instance count
servicecomb.highway.client.thread-countverticle-counthighway client verticle instance count(Deprecated)
servicecomb.highway.client.verticle-countverticle-counthighway client verticle instance count(Deprecated)

Sample code

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

servicecomb:
  highway:
    address: 0.0.0.0:7070