WCF service for WCF service communication

I am trying to create multiple WCF services. These services will expose certain public methods and must consume each other (i.e., call WCF service methods from another WCF service).

Is there any good reference material that I can link to?

Thanks to everyone in advance!

+4
source share
1 answer

Consuming a web service in another web service is no different than consuming in any other client. You create a proxy server and make your call, so all of the WCF documentation and training documents will be applied.

However, this is usually not good practice - although sometimes it is inevitable in SOA. Services should be consumed by customers, and they should not call each other if they should not.

There are many problems that can occur. First of all, the service needs to wait until the result of the synchronous call from one or several services is returned, and your service flow will be blocked until these calls are completed. If one call lasts a long time, the other service will take a long time and you will have scalability issues.

Let the customer call these services. If the call requires data from another service, ask the client to make the call and receive the data, and then make the call again.

+2
source

All Articles