{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/529","repository_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/529/comments","events_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/529/events","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/529","id":87624891,"number":529,"title":"ServiceBus Session support","user":{"login":"Zenuka","id":5391012,"avatar_url":"https://avatars.githubusercontent.com/u/5391012?v=3","gravatar_id":"","url":"https://api.github.com/users/Zenuka","html_url":"https://github.com/Zenuka","followers_url":"https://api.github.com/users/Zenuka/followers","following_url":"https://api.github.com/users/Zenuka/following{/other_user}","gists_url":"https://api.github.com/users/Zenuka/gists{/gist_id}","starred_url":"https://api.github.com/users/Zenuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zenuka/subscriptions","organizations_url":"https://api.github.com/users/Zenuka/orgs","repos_url":"https://api.github.com/users/Zenuka/repos","events_url":"https://api.github.com/users/Zenuka/events{/privacy}","received_events_url":"https://api.github.com/users/Zenuka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/milestones/4","html_url":"https://github.com/Azure/azure-webjobs-sdk/milestones/Backlog","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/milestones/4/labels","id":742727,"number":4,"title":"Backlog","description":"","creator":{"login":"rustd","id":1132652,"avatar_url":"https://avatars.githubusercontent.com/u/1132652?v=3","gravatar_id":"","url":"https://api.github.com/users/rustd","html_url":"https://github.com/rustd","followers_url":"https://api.github.com/users/rustd/followers","following_url":"https://api.github.com/users/rustd/following{/other_user}","gists_url":"https://api.github.com/users/rustd/gists{/gist_id}","starred_url":"https://api.github.com/users/rustd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustd/subscriptions","organizations_url":"https://api.github.com/users/rustd/orgs","repos_url":"https://api.github.com/users/rustd/repos","events_url":"https://api.github.com/users/rustd/events{/privacy}","received_events_url":"https://api.github.com/users/rustd/received_events","type":"User","site_admin":false},"open_issues":123,"closed_issues":13,"state":"open","created_at":"2014-08-04T21:04:04Z","updated_at":"2016-01-20T18:45:57Z","due_on":"2016-09-23T07:00:00Z","closed_at":null},"comments":4,"created_at":"2015-06-12T06:22:43Z","updated_at":"2016-03-12T00:34:04Z","closed_at":null,"body":"I've posted this question yesterday on [StackOverflow](http://stackoverflow.com/questions/30773632/azure-webjob-servicebustrigger-for-sessions) but I guess this is a better place to ask; is it possible to have something like ServiceBusSessionTrigger for handling session through the webjobs sdk?"},"comment":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/comments/195616581","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/529#issuecomment-195616581","issue_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/529","id":195616581,"user":{"login":"isaacabraham","id":1781813,"avatar_url":"https://avatars.githubusercontent.com/u/1781813?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacabraham","html_url":"https://github.com/isaacabraham","followers_url":"https://api.github.com/users/isaacabraham/followers","following_url":"https://api.github.com/users/isaacabraham/following{/other_user}","gists_url":"https://api.github.com/users/isaacabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacabraham/subscriptions","organizations_url":"https://api.github.com/users/isaacabraham/orgs","repos_url":"https://api.github.com/users/isaacabraham/repos","events_url":"https://api.github.com/users/isaacabraham/events{/privacy}","received_events_url":"https://api.github.com/users/isaacabraham/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T00:34:04Z","updated_at":"2016-03-12T00:34:04Z","body":"@mathewc \r\n\r\nNot having this is a blocker for me currently. We're using queues + the webjobs SDK as a very lightweight, scalable reactive work item list - messages come on, and processing those messages leads to 0 .. M new messages going back onto the queue. When we need to have guaranteed sequential processing - almost simulating an actor-style model - service bus sessions is the only option. This is crucial if we have some critical region of data processing and don't want e.g. transactions on SQL database (or can't e.g. Azure blobs).\r\n\r\nHaving an easy way to target messages on a specific session and have them work transparently within webjobs would be a *huge* benefit and would open a ton of possibilities. So on the input side I would love to see it \"just work\": -\r\n\r\n* Web job trigger has an extra argument to indicate if you want to bind to sessions or just plain messages\r\n* A session is bound to a specific web job process + thread instance and stays with it until the session dries up\r\n* Optionally an extra input argument for the name of the session that has been bound to the function call\r\n* On the output, it would be great if you could specify the session name on the ServiceBus attribute somehow, but this isn't as much of an issue as there's already a way to do this via BrokeredMessage directly as you say."}}