假设我是 Web 服务技术的新手,并且刚刚开始研究它们,我无法准确理解为什么要实现 Web 服务而不是标准的客户端/服务器协议。
1 - 有人可以帮我理解吗?
我在网上找到了一些迹象,但希望您确认/扩展它们,以帮助我将所有部分放在一起。
2 - 以下陈述是否正确,您能否向我解释一下?
1.
A guideline that I was told:
If you plan on reaching out to multiple clients (Linux, Windows, etc.),
then use Web Services; otherwise, use Client / Server.
2.
If your application needs to be run on machines that would access the data
over a public network (internet) then you should go with web services because
the traditional client/server model is not acceptable due to not wanting
to expose your server publicly.
The web services you would expose publicly could be secure (HTTPS),
require some kind of authentication and only expose what you WANT to expose,
versus exposing a whole database
3.
One of the better reasons to use remoting is that it gives a large increase in
performance. But one of the down falls is that it is a good bit more complicated
to program than Web Services.
4.
The proper use of web services is really based on your "remote connectivity"
needs. If your application is going to be run in a controlled environment such as
a LAN/WAN where you can see the server thru a private or secure (VPN) network,
then you can build a traditional client/server application
5.
Web Services:
Though there are no major differences in the output of service with both these
models, the mobility and accessibility is definitely an advantage.
However, the lack of a great deal of personalization does come as a con against
the web-server based model.
Client Server:
The added security of client server is definitely a one up and it also gives the
option of controlling the updates and upgrades if any.
Initially though, client servers may come with a higher front-end cost.
声明摘自以下链接: