微服務的設計 IDEALS VS SOLID

前幾天正好在看到微服務的IDEALS的原則,我覺得總結挺好,也對微服務設計有全面的認識,雖然在工作當中基本上都是這麼操作的。但是之前還是主要放在DDD上面。下面是一個總結,

Interface segregation(BFF)Deployability (docker,service mesh,k8s等等)Event-drivenAvailability over consistencyLoose couplingSingle responsibility(基於DDD)

但是這跟我們的SOLID 有什麼關係呢?我覺得在面向對象(OO)的編程裡面,SOLID可以認為是代碼級別的實現,而IDEALS可以說是架構層面的實現。你認同?


SOLID:

Single responsibility principleOpen/closed principleLiskov substitution principleInterface segregation principleDependency inversion principle