Micro-services Architecture, SOLID, DDD, Onion Architecture, Clean Architecture

Today, We will discuss the Micro-services Architecture, SOLID, DDD, Onion Architecture, Clean Architecture concepts as well;
Micro-service architectures have evolved into a popular method for building multi-platform applications over the past few years. A well-known example is Netflix, who offers applications for several platforms, including mobile devices, smart TVs and gaming consoles . Service-oriented architectures are the foundation of micro-service architectures, but micro-services have unique properties. A micro-service is autonomous and provides a limited set of (business) functions. In service-oriented architectures, designing services and selecting boundaries are fundamental problems.

image.png

First and foremost, The SOLID Principles are five principles of Object-Oriented class design. They are a set of rules and best practices to follow while designing a class structure. SOLID is an acronym that stands for five key design principles: single responsibility principle, open-closed principle, Leskov substitution principle, interface segregation principle, and dependency inversion principle. All five are commonly used by software engineers and provide some important benefits for developers.

Besides ,Onion Architecture is based on the inversion of control principle. It's composed of multiple concentric layers interfacing with each other towards the core. This architecture doesn't depend on the data layer, as in traditional multi-layer architectures, but rather on domain models. DDD is an approach where the main focus is on real business values more than on technologies, frameworks, etc. There are five qualities which all of the predecessor architectures and Clean Architecture possess:

  1. Framework independence: the architecture is decoupled from third party frameworks.
  2. Testable: the architecture is easy to write unit tests against.
  3. UI independence: the architecture can be unplugged from the user interface
  4. Database independence: the architecture is decoupled from the underlying data store.
  5. External agency independence: the business rules of the architecture are isolated and know nothing about the outside world.

Last but not least, Micro-services architecture (often shortened to micro-services) refers to an architectural style for developing applications. Microservices allow a large application to be separated into smaller independent parts, with each part having its own realm of responsibility. Microservices-based application architecture represents a collection of small, autonomous, and self-contained services which are built to serve a single business functionality/capability. The following is a sample microservices-styled application landscape representing a set of microservices. Pay attention to different microservices accessed through the API gateway.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末粥诫,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子怀浆,更是在濱河造成了極大的恐慌,老刑警劉巖执赡,帶你破解...
    沈念sama閱讀 218,682評論 6 507
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件奠伪,死亡現(xiàn)場離奇詭異,居然都是意外死亡绊率,警方通過查閱死者的電腦和手機滤否,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,277評論 3 395
  • 文/潘曉璐 我一進店門藐俺,熙熙樓的掌柜王于貴愁眉苦臉地迎上來泥彤,“玉大人吟吝,你說我怎么就攤上這事≈臀埃” “怎么了梆奈?”我有些...
    開封第一講書人閱讀 165,083評論 0 355
  • 文/不壞的土叔 我叫張陵亩钟,是天一觀的道長鳖轰。 經(jīng)常有香客問我,道長焰轻,這世上最難降的妖魔是什么辱志? 我笑而不...
    開封第一講書人閱讀 58,763評論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮揩懒,結(jié)果婚禮上已球,老公的妹妹穿的比我還像新娘智亮。我一直安慰自己点待,他們只是感情好,可當我...
    茶點故事閱讀 67,785評論 6 392
  • 文/花漫 我一把揭開白布馍忽。 她就那樣靜靜地躺著遭笋,像睡著了一般瓦呼。 火紅的嫁衣襯著肌膚如雪测暗。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,624評論 1 305
  • 那天稳摄,我揣著相機與錄音厦酬,去河邊找鬼瘫想。 笑死国夜,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的车吹。 我是一名探鬼主播礼搁,決...
    沈念sama閱讀 40,358評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼馒吴,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了豪治?” 一聲冷哼從身側(cè)響起负拟,我...
    開封第一講書人閱讀 39,261評論 0 276
  • 序言:老撾萬榮一對情侶失蹤歹河,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后厨姚,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體键菱,經(jīng)...
    沈念sama閱讀 45,722評論 1 315
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,900評論 3 336
  • 正文 我和宋清朗相戀三年拭抬,在試婚紗的時候發(fā)現(xiàn)自己被綠了部默。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,030評論 1 350
  • 序言:一個原本活蹦亂跳的男人離奇死亡造虎,死狀恐怖傅蹂,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情累奈,我是刑警寧澤贬派,帶...
    沈念sama閱讀 35,737評論 5 346
  • 正文 年R本政府宣布急但,位于F島的核電站澎媒,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏波桩。R本人自食惡果不足惜戒努,卻給世界環(huán)境...
    茶點故事閱讀 41,360評論 3 330
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望镐躲。 院中可真熱鬧储玫,春花似錦、人聲如沸撒穷。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,941評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至拷恨,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間冕杠,已是汗流浹背兢交。 一陣腳步聲響...
    開封第一講書人閱讀 33,057評論 1 270
  • 我被黑心中介騙來泰國打工晴裹, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留涧团,地道東北人。 一個月前我還...
    沈念sama閱讀 48,237評論 3 371
  • 正文 我出身青樓轧叽,卻偏偏與公主長得像崎页,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子牺荠,可洞房花燭夜當晚...
    茶點故事閱讀 44,976評論 2 355

推薦閱讀更多精彩內(nèi)容

  • 第一章 What is design and architecture The word “architect...
    大福爸爸閱讀 464評論 0 0
  • ![Flask](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW...
    極客學院Wiki閱讀 7,249評論 0 3
  • 不知不覺易趣客已經(jīng)在路上走了快一年了,感覺也該讓更多朋友認識知道易趣客,所以就謝了這篇簡介印叁,已做創(chuàng)業(yè)記事。 易趣客...
    Physher閱讀 3,420評論 1 2
  • 雙胎妊娠有家族遺傳傾向终议,隨母系遺傳。有研究表明玻驻,如果孕婦本人是雙胎之一,她生雙胎的機率為1/58嗤锉;若孕婦的父親或母...
    鄴水芙蓉hibiscus閱讀 3,702評論 0 2
  • 今天理好了行李,看到快要九點了,就很匆忙的洗頭洗澡棒拂,(心存一份念想,你總會打給我的??)然后把洗頭液當成沐浴液了??,...
    bevil閱讀 2,771評論 1 1