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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 找一个信仰,过虔诚的生活。 2017-06-12
    静静的等待着阅读 223评论 0 0
  • “二十四史非史也,二十四姓家谱也。” 这是梁任公感于清末民智不开,所发感慨之语。要从二十四史中找老百姓的日常生活,...
    椰菜君阅读 495评论 0 0
  • 陈道明为江一燕的书写序,其中一段话触动我的心思: 我希望你再忙,也要有时间读书和学习。韶光易逝,刹那芳华,皮相给你...
    草木吟阅读 271评论 0 0
  • 该是要了无牵挂了吧!没有什么是值得或是值不得,过去的总会淡掉吧!经历过兜兜回回,看尽听到千百个故事,我却走到灰色地...
    三万英尺的自由天空阅读 226评论 0 0