Tuesday, 10 January 2017

WCF vs Web API

WCF stands for Windows communication Foundations.
WCF and WEB API both supports REST architecture then what are the differences between these 2 and when to choose.

1. WCF require many configuration.
2. WCF suited where multiple clients may use different protocols. For Eg - Client A require HTTP to communicate and Client B require TCP to communicate. This can be achieved by creating single service and 2 endpoints for each client.
3. WEB API can be communicated over HTTP protocol only, where as WCF can be communicated over HTTP, TCP, MSMQ

No comments:

Post a Comment