WCF standalone host for many hosts

UPDATE 2: The first problem has been resolved (note below) - complexity / area has been reduced.

NOTE. If you are switching from self-service WCF services in cloud services to Fabric service using HttpsBinding, you need to change HostNameComparisonMode from Exact to StrongWildcard.

I have a scenario where I need to open many (100+) WCF services to receive callbacks from an external service. They have the same contract, but with different credentials (service certificates are unique to each of our customers).

I would like to know if it is possible to route all requests through one host / router, which could check the pending service certificate for connected clients, and either a) spoof / ignore (preferably) the service certificate, or redirect the connection to the correct host.

I want to not load hundreds of service hosts with different credentials (which are stored in the database) when the first line of the node service appears, so I do not get traffic to the service that is not yet loaded. Ideally, I could download them if necessary or not download them at all (spoofing certificate or something else).

Looking for someone who is much better with WCF to shed light on opportunities. Thanks.

+5
source share

Source: https://habr.com/ru/post/1247692/


All Articles