Reputation: 29009
I got a wcf service which I'd like to run on azure, but I got several problems:
First: do I choose a web role or a worker role for running the wcf service?
Second: The client uses a call to log into the service, afterwards the service should remember who is logged in (sessions). The problem is, for firewall reasons I probably should use some http-binding. But these seem not to support sessions??
Or do I need AppFabric for sessions (what is AppFabric anyway?)?
Is there a good complete tutorial how to host wcf service?
Upvotes: 14
Views: 13046
Reputation: 51
there´s no right answer for every scenario. if your service is simple, and dont need to manage a lot of configurarions such as specific permissions and etc, the azure website may attend well.
Upvotes: 0
Reputation: 103
You can even host your WCF service on Azure Websites instead of using Web role or worker role. See the details here.
Upvotes: 3
Reputation: 71030
If you host your WCF service in a Web role, you'll then have all the benefits of IIS (pooling, caching, logging, etc.). You can rely on the WCF Web Role template and simply add a WCF service (which manifests itself as an svc) - and with the new SDK 1.3, you should be able to host a WCF service alongside your website in the same role.
You can also new up a ServiceHost in a worker role. With the worker role, you'll have complete control, but you'll lose the benefits of IIS.
For WCF labs, start with the Azure Platform Training Kit. You'll see labs for:
Upvotes: 15
Reputation: 2826
Upvotes: 4