Build enterprise application without service layer

五迷三道 提交于 2019-12-06 05:38:16

Enterprise application != n-tier application. It means that you can write enterprise application without creating separate physical middle tier (business logic). Creating separate middle tier must always be part of requirements because it is a lot of additional complexity = a lot of additional costs.

Usual requirements for separate middle tier are:

  1. Security - sometimes web server is in DMZ and middle tier must be in secured network
  2. Reusability - you want to use middle tier in more then one application, this also leads to SOA requirement
  3. Scalability - the middle tier can be much more complex so it can be useful to scale it independently on the front end tier. If you want to use middle tier in more then one application you must also be able to scale it independently. Scalability requirement is usually based on performance and availability requirements.

If you don't have any such requirement you can make multilayer application where both front-end and business logic sits in the same process on the same server.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!