Making models reactive with Scala

Functional thinking and implementing with pure functions is great engineering discipline for your domain module. But you need a better language support that helps build models more responsive to failures, increasing load, and delivers a nice experience to users.

Domain Reactive with Scala

The above three main features that make Scala a successful platform for domain modeling and reactive domain design.

In order to make your model reactive:

Manage failures, as Design for failure

Minimize latency by delegating long-running processes to backed threads without blocking the main thread of execution.

Managing exceptions is a key component of reactive models, you need to ensure a failing component doesn't bring down the entire application. And managing latency is another key aspect that you need to take care of - unbounded latency through blocking call is bad user experience. Luckily,?Scala can cover both of them by providing abstractions as part of the standard library.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

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

  • 找一個(gè)信仰,過(guò)虔誠(chéng)的生活。 2017-06-12
    靜靜的等待著閱讀 223評(píng)論 0 0
  • “二十四史非史也,二十四姓家譜也。” 這是梁任公感于清末民智不開(kāi),所發(fā)感慨之語(yǔ)。要從二十四史中找老百姓的日常生活,...
    椰菜君閱讀 483評(píng)論 0 0
  • 陳道明為江一燕的書(shū)寫(xiě)序,其中一段話觸動(dòng)我的心思: 我希望你再忙,也要有時(shí)間讀書(shū)和學(xué)習(xí)。韶光易逝,剎那芳華,皮相給你...
    草木吟閱讀 269評(píng)論 0 0
  • 該是要了無(wú)牽掛了吧!沒(méi)有什么是值得或是值不得,過(guò)去的總會(huì)淡掉吧!經(jīng)歷過(guò)兜兜回回,看盡聽(tīng)到千百個(gè)故事,我卻走到灰色地...
    三萬(wàn)英尺的自由天空閱讀 224評(píng)論 0 0