Quantcast
Channel: Service Bus forum
Viewing all 1916 articles
Browse latest View live

Some concept confused for Azure Service Bus EventHub

$
0
0

Currently, I’m trying to use the Azure Service Bus Event hub and I have some concepts a little bit confused:

  1. I have create an event hub (our requirement is send 10Kb data per seconds to the event hub), the hub include 10 partitions, then we receive the data using theEventHubReceiver, when I create the instance for the EventHubReceiver, it need thePartitionId, so I want to know which partitionId is needed?  I guess all the Partitions have the same data which I sended, is it right?
  2. Is the PartitionId equals PartitionKey? My understanding is the PartitionId is the indicator for the Partitions in the Event Hub, the PartitionKey is the indicator for the device which send the data, so one Partition can contains many partitonIds,is it right?
  3. When we receive data from hub, we need set the Consumer Group, so what is the relationship between EventHub and Consumer group?
  4. When we use the EventProcessorHostto receive data, we do not to set the PartitionId, so the data we got is the all PartitionData?
  5. When we call the PartitionContext.CheckpointAsync(), the Event hub will do the things to release the Events(delete, clear or sth) by itself, we needn’t do it in our code, is it right?

Is there a diagram to show the relationship for concepts of the EventHub?

Thanks a lot!


How can i use service bus for communication between applications and authenticate the application WITHOUT using azure active directory

$
0
0
How can i use service bus for communication between applications and authenticate the application WITHOUT using  azure active directory. And i want to authenticate only using on-premises active directory.Is that possible?

How to set the Throughout Unit for Service bus, Event Hub?

$
0
0
From MSDN, I found Event Hub Throughput Units are explicitly selected by the customer, either through the Azure portal or Event Hub management APIs. But I didn't find the way to set the units? Is there anyway to do it ?

How to set the Throughout Unit for Azure Service bus?

$
0
0
From the guideline " The Throughput Units value that is set on a Service Bus namespace determines the actual throughput allowed". so how to set the Throughout Unit for Azure Service bus?

Service Bus for Windows Server 1.1 (On Premise) - Memory Requirements and Load Balancing

$
0
0

We have an on-premise service bus farm (3 servers hosting service bus along with separate machines hosting sql server in a high availability group). The first host in the farm periodically alerts us to elevated memory throttle levels (exceed value of two). The hosts are running Windows Server 2012 R2 64-bit and given 2GB RAM (which I suspect is insufficient).

I cannot find any MS memory recommendations in the system specifications for servers hosting on-premise Service Bus. What are the recommendations/requirements?

I would also be interested in learning if there are any recommended ways to handle load balancing between the three hosts as the first server seems to be handling the lion's share of connections.

Thanks,

Corey

Receive Messages from Azure Service Bus using Powershell

$
0
0
How to receive messages from Windows Azure Service Bus using Powershell?

SharePoint Architect

Authorization needed to call TopicClient.SendBatch (Service Bus 1.0 for Window Server)

$
0
0

Hi,
I'm using Service Bus 1.0 for Windows Server (on premise) and I am tring to call TopicClient.SendBatch().
In the (Windows) user making the call is 'manage user' on the entire namespace, the call works fine.

If the user has onlysend and listen rights on a specific topic, the call toTopicClient.SendBatch() throws the following exception:
Unhandled Exception: System.UnauthorizedAccessException: 40100: Unauthorized.TrackingId:ed93d168-36a8-4357-b4755b0d679a2165_G******_G******,TimeStamp:19.12.2013 13:37:00 ---> System.ServiceModel.FaultException: 40100: Unauthorized. TrackingId:ed93d168-36a8-4357-b475-5b0d679a2165_G*******_G********,TimeStamp:19.12.2013 13:37:00

If I call TopicClient.Send(), with the above permissions, the call works fine.

The send and listen permissions are granted from code, as follows: 

topicDescription.Authorization.Add(
       new AllowRule("NamespaceName", "nameidentifier", "machine\\username", 
new List<AccessRights> { AccessRights.Listen, AccessRights.Send }));

All users are local Windows users, not domain accounts - no special permissions, just simple accounts members of the local 'Users' group. Both the client and the SB server are on the same machine.

Does anyone know if this is expected, or if the authorization should be set-up in another way?
---------------------------

The full stack trace is:

System.UnauthorizedAccessException occurred
  HResult=-2147024891
  Message=40100: Unauthorized.TrackingId:d2f234f1-b8bf-4b4b-8abf-a1dea7da11ff_G****-PC,TimeStamp:19.12.2013 15:44:41
  Source=Microsoft.ServiceBus
  StackTrace:
       at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)
       at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnEndSend(IAsyncResult result)
       at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnSend(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout)
       at Microsoft.ServiceBus.Messaging.MessageSender.Send(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout)
       at Microsoft.ServiceBus.Messaging.MessageSender.SendBatch(IEnumerable`1 messages)
       at Microsoft.ServiceBus.Messaging.TopicClient.SendBatch(IEnumerable`1 messages)
       at...
  InnerException: System.ServiceModel.FaultException
       HResult=-2146233087
       Message=40100: Unauthorized.TrackingId:d2f234f1-b8bf-4b4b-8abf-a1dea7da11ff_G****-PC,TimeStamp:19.12.2013 15:44:41
       Source=Microsoft.ServiceBus
       Action=http://schemas.microsoft.com/servicebus/2010/08/protocol/Fault
       StackTrace:
         Server stack trace:
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.ThrowIfFaultMessage(Message wcfMessage)
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.HandleMessageReceived(IAsyncResult result)
         Exception rethrown at [0]:
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.DuplexCorrelationAsyncResult.End(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<GetAsyncSteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [1]:
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.RequestAsyncResult.<>c__DisplayClass17.<GetAsyncSteps>b__a(RequestAsyncResult thisPtr, IAsyncResult r)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [2]:
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<GetAsyncSteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [3]:
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
            at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.<GetAsyncSteps>b__36(TIteratorAsyncResult thisPtr, IAsyncResult a)
            at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
         Exception rethrown at [4]:
            at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
            at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)


Negative current size in manangement portal?

$
0
0

Both the management portal and Service Bus Explorer (which I assume is using the same API under the hood), is reporting that one of my topics which has 0 messages in it has a "Current Size" of around -85KB (yes, negative).  I sent a bunch of messages to the topic and the value went positive, but after reading/completing all of the messages it is again negative.  If I leave the management portal page open, the size changes slightly each time the page refreshes by a few KB and I'm _absolutely_ certain that no messages are being sent to/read from it while this is occuring.  This is obviously a little bit concerning to me.  Thoughts?


Send message to android device use xamerin with notification hub

$
0
0

Hi:

I want send a message to android device use notification hub with xamerin.I reference this web page.http://azure.microsoft.com/en-us/documentation/articles/partner-xamarin-notification-hubs-android-get-started/

In the OnRegistered() ,I get a error.The error is  "The remote server returned an error: (404) Not Found.".

I have checked my SenderID,ConnectionString and the NotificationHubPath.I have search on web about this issue. Someone says create a new notification but it doenn't work.Please help me.Need more informaton please tell me.

Best regards,

Ziv

How to Connect to Service bus(Queue) Https end point?

$
0
0

Hi, I have a requirement where an application running outside of Azure posts messages to the service bus Queue I have configured in Azure. After creating the service bus and the queue I can see a HTTPS endpoint.

Thanks

Prabhu

How to connect to a HTTPS enpoint of a service bus queue

$
0
0

Hi, I have a requirement where an application running outside of Azure posts messages to the service bus Queue I have configured in Azure. After creating the service bus and the queue I can see a HTTPS endpoint.

A. How to connect to the Https end point. https://namespace.servicebus.windows.net/queuename

B. How to configure the Authentication mechanism for the same.? Certificates for e.g

Thanks

Prabhu

Connection Azure service bus via Java client

Authentication and Authorization for Azure service Bus Queue.

$
0
0

Scenario:

Currently we have some devices which sends data to a sever where a FIFO messaging queue logic is implemented. The devices use certificate handshake mechanism with the server and it is not possible to make any changes at the device end. We need to migrate the FIFO messaging logic to Azure. We are planning to use the service bus queue mechanism to implement the FIFO messaging logic.

queries:-

1.Post January 2014 service bus queue does not have a in built support for ACS. Is there any latest resource available on how to configure ACS certificate authentication mechanism to service bus queue, if there please share the same?

2.Is there any way to configure SAS to use certificate authentication mechanism with out writing any additional component in device end, if there is any mechanism please hare the same?

3.Is there any other way to use certificate authentication mechanism with service bus queue other that SAS or ACS?

Azure Service Bus Relay and SWT header authentication - how to preserve security context?

$
0
0

Hello all, I have Azure Service Bus Relay accompanying by ACS configured to accept SWT tokens issued by my ADFS. Service Bus Relay acts as a reverse proxy to my 'on premises' RESTful web service.

Each client http call contains required "Authorization" header with value: WRAP access_token="{token}".
Everything works as expected except http calls reaching 'on premises' RESTful web service are missing "Authorization" http headers stripped out by Service Bus Relay. Effectively, calls arrive with no security context.

I can add another http header with user token but it is not the most desirable solution as it would almost double message size. SWT tokens are generally small and this may not appear as an issue but keep in mind that most GSM providers in Europe charge by every 100kb sent. Adding the same header twice effectively almost doubles traffic charges which in scale of the entire company and hundreds of users generates significant additional cost.

Is there any known solution to this problem?
Thank you for any pointers.

Problem Authenticating Azure Service Bus on Preflight request

$
0
0
I'm facing CORS issue accessing Web API service through Azure Service Bus. It appears that service requires authentication header for OPTIONS verb. But this preflight request is constructed by the brower and it ignores provided headers. I'm making an AJAX call to my services.

How to connect to service bus queue (https endpoint) without Tokens.

$
0
0

Hi,

Scenario : The existing solution

1. Client (mobile device) downloads uri from configuration server

2. Client forms a JSON payload. 

3. Client will do a  https post to the uri downloaded from the Configuration server(CA certificates installed). The uri is a load balancer which forwards the request to Queue. Downstream systems consume the JSON payload.

Constraints: In the above scenario nothing can be changed on the client side!

My Azure Solution

I am trying to implement a solution in Azure using service bus queue. i.e I want the client(mobile device) to do a HTTPS post to the service bus Queue.

Problem

Azure Service bus allows authorization only using  Token mechanism(ACS or SAS). But  given my constraint on the client side I am unable to post to the SBrest API endpoint!. Meaning my client cannot send a ACS request get a token and then connect to the serivice using the token. I cannot create a SAS token and use it because I have no control over the client header. I only can change the URI in the configuration server to the REST endpoint. But it will fail with authetication

What are my options.? What support does AZURE SB provide for my scenario.

Please note I was perfectly able to create a SAS token for my Policy and post a sample pay load to the queue using a mozila REST client in the web browser.

thanks

Service Bus 1.1 - 401 Unauthorized. InvalidSignature.

$
0
0

I've tried to install Service Bus 1.1 twice now.  Once locally (Windows 7) and once on Windows 2008 Server.   Both machines had previous working versions of 1.1 Preview.   On both setups I have uninstalled the preview AND the databases (invoke-sbFarmUpgrade doesn't seem to work from 1.1 preview to 1.1)

I've exported the client certificates and installed on my client PC.   I'm connecting using full connection string including SharedSecretValue

I can connect fine and view Topics and Queues (or at least I can see that there aren't any yet!)

But I can't create a topic or queue - I get "<16:59:42> Exception: The remote server returned an error: (401) Unauthorized. InvalidSignature: The token has an invalid signature..TrackingId:78470863-7c88-4183-a4ef-52d4ec31f54b_Glb-dev-08,TimeStamp:21/10/2013 15:59:42. Method <CreateQueue>b__7c: retry 10 of 10."

Error shown is from Paolo Salvatori's most excellent Service Bus Explorer 2.1

Can happily use Azure Service Bus no problems, and had no problems with Service Bus 1.1 Preview previously.

Any idea what "The token has an invalid signature" means?

Service Bus Event Hub Throughput unit and Message Replay?

$
0
0

I'm looking into the azure service bus event hub form the

http://msdn.microsoft.com/en-us/library/azure/dn789972.aspx and below is the pricing for it



and I have two unclear concept for the eventhub:

1. How to selected the Throughput Unit?from the FAQ ---  Event Hub Throughput Units are explicitly selected by the customer, either through the Azure portal or Event Hub management APIs. and I know we can set the Partitions when we create eventhub from portal or API, so how to set theThroughput Unit?

2, What is theMessage replay (basic and standard both support it)? is it the ServiceBus Reply or sth?

Service Bus Event Hub Throughput unit and Message Replay?

$
0
0

I'm looking into the azure service bus event hub form the

http://msdn.microsoft.com/en-us/library/azure/dn789972.aspx and below is the pricing for it

and I have two unclear concept for the eventhub:

1. How to selected the Throughput Unitfrom the FAQ ---  Event Hub Throughput Units are explicitly selected by the customer, either through the Azure portal or Event Hub management APIs. and I know we can set the Partitions when we create eventhub from portal or API, so how to set the Throughput Unit?

2, What is the Message replay (basic and standard both support it)? is it the ServiceBus Reply or sth?


How to active the Partitions for an EventHub?

$
0
0

I looking into sth for EventHub follow : http://msdn.microsoft.com/en-us/library/azure/dn789972.aspx

For instance:

We have 10 Partitions when create an EventHub, so do we have a way to set which Partitions are active? 

Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>