- subscribe to the change of providers using zookeeper, use provider list in local cache at first.
- develop cluster consumer: invoke the least active service.
name | optional | type | description |
---|---|---|---|
interface | required | string | Interface implemented by service |
ref | required | string | bean id of service |
registry | optional | string | registry address |
weight | optional | int | weight to invoke the service |
name | optional | type | description |
---|---|---|---|
id | required | string | id of this reference |
interface | required | string | Interface of reference |
registry | optional | string | registry method:direct, zookeeper |
serviceServer | optional | string | serviceServer value is provider address(host:port) when registry is direct |
name | optional | type | description |
---|---|---|---|
type | required | string | value(direct, zookeeper) of registry type |
address | optional | string | address of registry |