0
5 개의 WCF 서비스가있는 Visual Studio 솔루션이 있습니다. 그들은 모두 같은 프로젝트 "MyCompany.MySoftware.Services"에 있습니다.IIS 7.5를 사용하는 동일한 응용 프로그램에서 여러 서비스 호스팅
이번에는 IIS에서 모든 것을 호스팅하고 있습니다. (Windows 서비스를 사용하여 호스트하는 데 익숙해졌지만 AppFabric을 사용하여 변경하기로했습니다.) HTTP 및 Net.TCP 바인딩을 사용하도록 설정했습니다. 모든 서비스의
구성은 다음과 같다 : 나는 IIS에서 호스팅 할 때 주소없이 내 netTcp 엔드 포인트를하게해야이 게시물에서 읽어
<service name="Kipany.Belvedere.Services.Services.AppointmentService"
behaviorConfiguration="GeneralBehavior">
<endpoint address="" binding="wsHttpBinding"
contract="Company.Software.Services.IService1"
name="appointmenthttp"/>
<endpoint address="" binding="netTcpBinding"
bindingConfiguration="netTcpBindingConfig"
name="appointmenttcp"
contract="Company.Software.Services.IService1"/>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
<service name="Kipany.Belvedere.Services.Services.AppointmentService"
behaviorConfiguration="GeneralBehavior">
<endpoint address="" binding="wsHttpBinding"
contract="Company.Software.Services.IService5"
name="appointmenthttp"/>
<endpoint address="" binding="netTcpBinding"
bindingConfiguration="netTcpBindingConfig"
name="appointmenttcp"
contract="Company.Software.Services.IService5"/>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
. 지금은 내 IIS가 808 포트로 구성되어 있으므로 모든 서비스가이 포트를 사용하고 있음을 이해합니다.
질문 :
1 - Is this a good architecture to use ? 2 - Can I face problems with this configuration ? 3 - What if I want to use every service in a different tcp port ? 4 - The port for tcp binding is configurated in the Default Website but I have the option to fill the 'address' in the endpoint, what happens in this case ? As I have to put ONE port in the Default Website binding, how can I use more than one port in my Web.Config ? 5 - My tcp is using the 808 port but this is my Client's Web.Config:
는 어디 808 포트는?
이렇게 한 포트만 통증없이 모든 요청을 처리 할 수 있습니까? 동시성은 어떻습니까? 동시에 수행 된 두 개의 요청은 병렬로 처리되거나 다른 요청을 기다리게됩니다. – Catinodeh
모두 서비스의 인스 턴싱 및 동시성 설정에 달려 있습니다. (여기에 대해서는이 블로그에서 http://www.dotnetconsult.co.uk/weblog2/PermaLink,guid,1efac821-2b89-47bb-9d27-48f0d6347914.aspx) 확실히 요청을 병렬로 처리 할 수없는 근본적인 이유는 없습니다. –