Framework
How ApiHug design use the contract to eliminate the gap inner and external
Why contract is so import in internal or external communication?
Basically what ApiHug try to solve is API, which is a specification use to communication between different layers or systems.
In other words, it is a contract:
All those build base on ApiHug’s Api design meta language: protobuf
During the compile and runtime you can customize this behaviour easily with hope.common.service.contract.ContractAdapter
it will supply those extension for customized:
function | Remarks |
---|---|
moduleClassName | class name of this application’s proto module. |
contract | Control the api context from the given 3rd-party module(microservice api dependencies). |
mcp | Control the expose of MCP service base on API. |