Web api与WCF服务的缺点是什么? [英] What are the cons of a web api versus a WCF service?

查看:363
本文介绍了Web api与WCF服务的缺点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我根本想不到很多,除了WCF服务更复杂,因此有风险,你必须管理你自己的托管,其中IIS被设计为托管,并且在该领域比WCF。



我的客户希望将WCF用作其用户,笔记本电脑用户的Web服务,执行基本身份验证,然后针对给定的约会使用CRUD操作天。我更赞成使用内置身份验证的Web Api,基本上内置了你需要的一切,除了CRUD代码本身。



规范的其他方面说服我是另一个学士学位,很少接触现实生活中的软件开发。



我尝试了什么:



了解Web API会更简单,更安全,之前已经为同一产品实现过。

解决方案

HI,



请参考以下链接,它会告诉:

1.它们之间的区别。

2。何时使用wcf以及何时使用web api的情况。



两种技术都来自MS,根据要求适用于不同的情况:



c# - WCF Web API和ASP.NET Web API之间的区别是什么 - Stac k溢出 [ ^ ]



也有利弊,其中一个是可靠的另一个要求

I can't think of many at all, except that a WCF service is more complex, and thus risky, and you have to manage your own hosting, where IIS is designed to host, and has years more in the field than WCF.

My client wanted to use WCF as a web service for his users, people on laptops, to perform basic auth, and then CRUD operations regarding appointments for a given day. I m much more in favour of a Web Api, with built in auth, basically built in everything you need except the CRUD code itself.

Other aspects of the spec convince me he is yet another BA with very little exposure to real life software development.

What I have tried:

Knowing a Web API would be far simpler and safer, having implemented both for the same product before.

解决方案

HI,

Please refer to the following link, It will tell:
1. Difference between them.
2. Situations when to use wcf and when to use web api.

Both technologies are from MS and are meant for different situations as per requirement :

c# - Whats the difference between WCF Web API and ASP.NET Web API - Stack Overflow[^]

also both have pros and cons, Its upto the requirement which one is reliable on the other.


这篇关于Web api与WCF服务的缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆