Service Locator 模式对封装使用 JNDI 的代码仍然有用,即使定位器不使用缓存。
The Service Locator pattern is still useful for encapsulating the code that uses JNDI, even if the locator does not use caching.
代理设计模式也可添加缓存和一些内容验证,因此在所有内容均加载自同一服务器时,这是一种不错的解决方案。
The proxy design pattern also has possibilities for adding caching and some content validation, making it a good solution even when all content is loaded from the same server.
如果确认解析器没有对模式定义进行高速缓存,这种请求的开销会使系统失去可扩展性。
The overhead of this request can make a system unscalable if the validating parser does not cache the schema definitions.
应用推荐