A tenant can have multiple lane spaces. The structure of a lane space is as follows:
.
└── Lane Space
├── Lanes(*)
├── Lane Rules(*)
│ ├── Conditions(*)
├── Lane Domains(*)
│ ├── Paths(*)
Property | Name | Description |
---|---|---|
code | Lane Code | Unique within the lane space |
name | Name | |
defaultLane | Default Lane | true : Default lanefalse : Non-default lane |
Default Lane: When a microservice application is not deployed within a specified lane and no routing strategy for that lane is configured, it routes to the default lane instance.
{
"code": "production",
"name": "production lane",
"defaultLane": true
}
Used by the gateway to determine coloring conditions.
{
"id": 1,
"conditions": {
"beta": {
"conditions": [
{
"type": "query",
"opType": "EQUAL",
"key": "beta",
"values": [
"true"
]
}
]
}
}
}
Used by the gateway to determine coloring based on domain names and paths. Paths are associated with lane rules. This simplifies management and optimizes gateway coloring performance.
Paths start with /
and are matched as prefixes based on the delimiter. The longest matching path is selected.
For example, the request path /mall/order/addOrder
matches the rules as follows:
/mall/order/addOrder
matches, this rule is selected/mall/order
matches/mall
matches/mall/order/add
does not match/mall/or/addOrder
does not match
{
"host": "demo.live.local",
"paths": [
{
"path": "/",
"ruleId": 1
}
]
}
[
{
"id": "1",
"lanes": [
],
"rules": [
],
"domains": [
]
}
]
Please refer to the service lane strategy in the Service Governance Model.