Reputation: 121
I've done a ton a research and cannot figure out how to use service bus in a real world scenario.
I have a web site that communicates with a REST API and I'd like to have a service bus in between the two.
Having tasks in the service bus queue will allow my web site to remain fast while things are sent to the REST API in the background. I think this is a common scenario.
PS. My REST API uses basic authentication.
So right now I'm looking for sample code to handle this specific scenario, but cannot find anything.
I have two ideas, but not sure what the service bus can handle...
Is the service bus queue capable of holding the entire REST message and passing it to the REST API and handling authentication?
...OR does the service bus queue just hold an ID that I use to pull data from SQL and process the task? In other words... I need a "listener" app which polls the queue and takes the bits of data to create the message and send it the REST API.
Is there someone that wouldn't mind clarifying how this scenario would work... what's the best way to do this?
Upvotes: 0
Views: 1404
Reputation: 11
Use webjobs and Queuetrigger.
Upvotes: 1