另一方面,很多服务均使用通用接口构建:一个字符串传入,另一个字符串传出,或者交换纯二进制对象。
On the other hand, many services are built with a somewhat generic interface: one string goes in and one string comes out, or plain binary objects are exchanged.
Simple Cloud API的目标是为文件存储、文档存储和简单队列服务创建通用的接口。
The simple Cloud API objective is to create common interfaces for file storage, document storage, and simple queue services.
清单1:作为通用接口的特殊实现的服务模拟。
Listing 1: Service mock that is a special implementation of a common interface.
应用推荐