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 requires many configurations.
2. WCF suited where multiple clients may use different protocols. For Eg - Client A require HTTP to communicate and Client B requires 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


Comments

Popular