Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Service Bus for Asp.net Web API

I am developing Services using ASP.NET Web API and have plan to use Service Bus for message exhanging. Is it possible to use Service Bus along with ASP.NET Web API? And what are the Microsoft's Answer for Service Bus other than Windows Azure service bus?

like image 780
Alagesan Palani Avatar asked Jan 15 '23 04:01

Alagesan Palani


2 Answers

There is absolutely nothing stopping you from using a service bus with ASP.NET Web API.

I am doing exactly this (web api) in a project I am implementing where a user registers and I need to send an activation e-mail. The e-mail sending is handled from a service bus endpoint so that the registration from the web api returns immediately.

I have also implemented my service bus in a production system although it is MVC 3 (4 web servers).

Although any service bus should do the trick (NServiceBus, MassTransit, etc.) you may want to have a look at my FOSS Shuttle ESB project: http://shuttle.codeplex.com/

like image 65
Eben Roux Avatar answered Jan 22 '23 02:01

Eben Roux


Have you looked at Microsoft Service Bus 1.0? http://msdn.microsoft.com/en-us/library/windowsazure/jj193022(v=azure.10).aspx (it includes messaging and queuing features from the Azure Service Bus)

For distributed caching (i.e. Caching Service in Azure) AppFabric 1.1 for Windows Server has as lot of features http://www.microsoft.com/en-us/download/details.aspx?id=27115

You can absolutely use the Caching Service in the ASP.NET Web API. I have not tried the Microsoft Service Bus 1.0 for messaging/queuing on Web API.

like image 39
Bart Czernicki Avatar answered Jan 22 '23 02:01

Bart Czernicki