Home » Microsoft » 70-583 » Which two actions should you recommend?
You are designing a Windows Azure application.
The application includes processes that communicate by using Windows Communications Foundation (WCF) services.
The WCF services must support streaming.
You need to recommend a host for the processes and a WCF binding.
Which two actions should you recommend?
(Each correct answer presents part of the solution. Choose two.)
A. Host the processes in web roles.
B. Host the processes in worker roles.
C. Use NetTcpBinding for the WCF services.
D. Use WSHttpBinding for the WCF services.
Correct Answer: BC
Explanation/Reference:
The easiest way to use net.tcp:// port sharing in your Windows Communication Foundation (WCF) application is to expose a service using the NetTcpBinding.
This binding provides a PortSharingEnabled property that controls whether net.tcp:// port sharing is enabled for the service being configured with this binding.
The following procedure shows how to use the NetTcpBinding class to open an endpoint at the Uniform Resource Identifier (URI) net.tcp://localhost/ MyService, first in code and then by using configuration elements
Webrolle – Eine Webrolle ist eine für die Webanwendungsprogrammierung angepasste Rolle, die von Internetinformationsdiensten und ASP.NET unterstützt wird. Ein Vorteil bei der Verwendung dieses Rollentyps besteht darin, dass Sie die IIS-Konfiguration nicht vornehmen müssen. Diese Rolle wird am besten zum Bereitstellen eines webbasierten Front-End für den gehosteten Dienst verwendet. Sie ist nicht für Prozesse mit langer Laufzeit geeignet. Weitere Informationen zu Webrollen finden Sie unter Overview of the Web Role.
Workerrolle – Bei einer Workerrolle handelt es sich um eine Rolle, die für die allgemeine Entwicklung nützlich ist und Hintergrundprozesse für eine Webrolle ausführen kann. Wenn Sie Hintergrundprozesse mit langen oder periodischen Aufgaben ausführen müssen, sollten Sie diese Rolle verwenden. Weitere Informationen zu Workerrollen finden Sie unter Developing a Background Service.