stub和proxy使用初衷

交互过程client<-->proxy<-->stub<-->service
stub和proxy是为了方便client/service交互而生成出来的代码,这样client/service的代码就会比较干净,不会嵌入很多很难懂的与业务无关的代码

原文地址:https://www.cnblogs.com/xujie520/p/13672697.html