RPC or REST; Which one is best suited for your Web API ?
When we design an api for our software components, then a couple of confusing terms are just at the front of us. Let's first cope with the conceptual confusion about the terms in this question. What is an API ? API is the acronym for the Application Programming Interface. It is a group of methods that is exported by a provider software components/modules and is supplied to its consumer software components/modules and the messages(XML, JSON, etc.) of these method calls are transported accross the client and server sides. Web API In the context of web, an API is refered as a group of methods that is the web protocol HTTP is used for the communication by transferring the messages, generally of the form; XML or JSON format. Okay then, if a consumer is using an API; then it is communicating via a service provider with dependency to a contract defined by the API over some communication protocols such as HTTP and exchanging the messages in a s...