开发者

Best approach to design a service oriented system [closed]

开发者 https://www.devze.com 2022-12-27 07:23 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 4 years ago.

Improve this question

Thinking about service orientation, our team are involved on new application designs. We consist in a group of 4 developers and a m开发者_Go百科anager (that knows something about programming and distributed systems). Each one, having own opinion on service design. It consists in a distributed system: a user interface (web app) accessing the services in a dedicated server (inside the firewall), to obtain the business logic operations. So we got 2 main approachs that I list above :

Modular services

Having many modules, each one consisting of a service (WCF). Example: namespaces SystemX.DebtService, SystemX.CreditService, SystemX.SimulatorService

Unique service

All the business logic is centralized in a unique service. Example: SystemX.OperationService. The web app calls the same service for all operations.

In your opinion, whats the best? Or having another approach is better for this scenario?


A web service is an interface. The invoker doesn't care how a service works, it just needs to know what arguments to supply and what outcomes to expect. So a multitude of simple, discrete servcies is probably better.

Behind their interfaces they can all join up in one great big bundle of business logic. Who cares?

In practice, teach of hese services will share some elements of SystemX functionality and will have some elements which it alone uses. Some may combine elements of SystemX and SystemY. If SystemX and SystemY are legacy apps it may not be possible to change them, so we have to work with them as they are. In other scenarios it is possible to expose impose modularity on them.

0

精彩评论

暂无评论...
验证码 换一张
取 消