Don't let the database take the nose

xiaoxiao2021-03-06  105

One takes into account the database, it feels a bit of trouble for the business layer. Sometimes it has changed. Drag by the database. Have to change the architecture. Proxy mode can be completely separated from the business rules with the database. Classic Proxy: RealSubject and Proxy realize the Subject interface. The proxy combines REALSUBJECT. As long as the business layer is designed in the RealSubject, add the database operation when the proxy is implemented. So when designing the business layer, it is not available at all Pay the database.

转载请注明原文地址:https://www.9cbs.com/read-103057.html

New Post(0)