Using Service Bus for Asp.net Web APIs

I am developing services using ASP.NET web APIs and plan to use the service bus for messaging. Can I use the service bus with the ASP.NET Web API? What is Microsoft Answer for Service Bus different from Windows Azure Service Bus?

+4
source share
2 answers

Absolutely nothing prevents you from using the service bus using the ASP.NET Web API.

I do exactly this (web api) in a project that I implement when a user logs in, and I need to send an activation email. Email sending is processed from the service bus endpoint, so registration from the web api is immediately returned.

I also implemented my service bus in the production system, although this is MVC 3 (4 web servers).

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

+7
source

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 functions from the Azure Service Bus)

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

You can absolutely use the caching service in the ASP.NET web interface. I have not tried Microsoft Service Bus 1.0 for messaging / queuing in the web API.

+2
source

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


All Articles