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

Is event grid still in preview? Page says "You can have up to 1,000 Event Grid subscriptions during the preview period."

$
0
0

I am wondering if the information on the pricing detail page for the event grid service is out of date?  Is the event grid still in preview?  I have a need to push a message to upwards of 1 million end users / on premises apps / endpoints /subscribers.  If 1000 subscribers is currently the limit, then I would be limited to 1000 end users or am I misinterpreting. 

Any information would be appreciated.


Edward Schoenherr


How to notify a client WPF application about a remote db change

$
0
0

Dear all,

I have a remote sql server database hosted in azure linked to a Web admin portal which is charge to configure some data configuration backend.
Then I have a client WPF desktop application which sync configured data from remote azure database to a local sql express db, this in order to allow offLine use of data.

One of our customer request is that when any change happen in configuration part on Azure db, client application need to be notify asap about those change in order to process a sync of new data.

I would rather prefer to go to a notification process instead of regular pooling if it is more suitable but I have no idea about what to use and how to implement such notification.

Thanks for your advise or sample

regards

Consuming Azure Queue message in Java using BrokeredMessage message . getBody() retruns some header information, How to get rid of it?

$
0
0

I am trying to receive Azure Queue Message from Java. I am able to receive message using BrokeredMessage in java. (I am a novice to java).

My problem is message.getBody() is returning some header information as well (Not just the message as I need).

I get 

   string3http://schemas.mi@string3http://schemas.microsoft.com/2003/10/Serialization/?? message appended with my body in front of it. How can I get rid of this header information.

And I also I noticed I get the message in two batches. (Not the whole lot at once)

My first batch of message.getBody()returns below message'@string3http://schemas.mi'MySecond batch of message.getBody()returns below message@crosoft.com/2003/10/Serialization/??+My actual message.

MY total message size is less than 500B, But I have set byte size to 4096. So is not splinting because of the size issue.

This is the receiver code I use.

ReceiveMessageOptions opts =ReceiveMessageOptions.DEFAULT;
opts.setReceiveMode(ReceiveMode.PEEK_LOCK);while(true){ReceiveQueueMessageResult resultQM =
service.receiveQueueMessage("MyqueueName", opts);BrokeredMessage message = resultQM.getValue();if(message !=null&& message.getMessageId()!=null){byte[] b =newbyte[4096];String s =null;int numRead = message.getBody().read(b);while(-1!= numRead){
s =newString(b);
s = s.trim();System.out.print(s);
numRead = message.getBody().read(b);}}}

This is the total output of System.out.print(s);. (But in two batches as I mentioned before)


string3http://schemas.microsoft.com/2003/10/Serialization/??+ My actual message.

Any Help is much appreciated!


Bn

Can we use HTTP protocal to pull event from Event Hub?

$
0
0
Microsoft document says Event Hub supports both HTTP and AMQP protocol, but I could not find out samples to use HTTP protocol to receive events. So, can we use HTTP protocol instead of AMQP to pull event from Event Hub?

Azure Service Bus - How to Process Messages over 256KB or 1MB

$
0
0

We have client requirement to receive message over 256KB (Standard Tier) or 1 MB in(Premium Tier).

Currently Client is using Premium Tier and sending messages between 0.5 to 1 MB. We are consuming these messages through batch. But due size limitation we can't receive more than 2 messages at a time. Is there any way to receive 50 or 100 messages at a time (having message size between 0.5 to 1 MB each) ?

Note: We are using serviceBusClient.ReceiveBatch()  api in c# for processing the messages.



Azure Event Processor Host java library - ReceiverRuntimeInformation doesn't have actual stats on a partition

$
0
0

I am trying to get the last enqueued sequence number to track the lag between consumer and producer at the consumer end by leveraging ReceiverRuntimeInformation object provided by PartitionContext when a event is received. However, ReceiverRuntimeInformation object doesn't have the updated values related to that particular partition of an Event Hub, it returns 0. Sample code and log output below:

public class EventProcessor extends IEventProcessorImpl{

    @Override
    public void onEvents(PartitionContext context, Iterable<EventData> messages) throws Exception {
            ReceiverRuntimeInformation rte = context.getRuntimeInformation();
            logger.info(rte.getLastEnqueuedOffset() + " * " + rte.getLastEnqueuedSequenceNumber() + " * " + rte.getPartitionId() + " * " +  rte.getRetrievalTime());
    }

}

Output:

null * 0 * 3 * null

Is there a way to get this information at the consumer end?

Hybrid Connection behind Proxy Server

$
0
0

Hi,

I need to use the new Azure Hybrid Connection Manager (0.7.2) to connect my on-premise system to Azure. I can connect to the Internet using a Proxy server.

I have updated both HybridConnectionManagerUi.exe.config and Microsoft.HybridConnectionManager.Listener.exe.config (in the folder C:\Program Files\Microsoft\HybridConnectionManager 0.7) to added the follow setting. Is this the correct way?

<system.net><defaultProxy><proxy usesystemdefault="true" proxyaddress="http://proxy.local:8080" bypassonlocal="true" /></defaultProxy></system.net>
With kind regards.


Avanade - Resuls Realized - www.avanade.com


How to find the number of messages sent to Azure service bus topics

$
0
0

Hi Team, 

I am following the below article and was successfully sending the messages to the topic, but I want to keep track of the number of messages I have sent. 

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-get-started-with-queues

I have the following questions

  1. I want to find the number of messages sent to my azure service bus topics, so that I can stop sending after certain limitation.
  2. What is the difference between these [Microsoft.Azure.ServiceBus] and [WindowsAzure.ServiceBus]
  3. Which dll I have to use from nuget?
  4. Both dlls are having different classes?

Service Bus monitoring solution?

$
0
0

Hi,

Just wanted to reach out to the community to learn what approaches are being used to monitor Service Busses? In any system, the service bus itself looks like a great place to log and hook in monitoring as much as possible, as it will give a summarized overview of how well the system is performing generally. There doesn't seem to be any native Azure based monitoring for Service Bus though. Does anyone know if this is in the pipeline?

What other tools or approaches are taken for monitoring e.g. queues on a service bus? Does everybody implement their own implementation?

Thanks,

Bart


Use autoDeleteOnIdle when creating Azure Service Bus Queue in python

$
0
0

Hi,

I'm using azure.servicebus package to manage some queues in my application. I'd like to set the autoDeleteOnIdle property on the queues I create in my code. Is it possible to do it?

I tried this:

queue_options = Queue()
queue_options.auto_delete_on_idle = auto_delete_on_idle_delay
queue_options.default_message_time_to_live = default_message_ttl
self.bus_service.create_queue(queue_name=queue_name, queue=queue_options, fail_on_exist=fail_on_exist)

The default_message_time_to_live seems to work fine but the auto_delete_on_idle doesn't seem to be used.

I also looked at the REST API and the autoDeleteOnIdle doesn't seem to be exposed there either. I can't use .NET, what are my options to use this feature?

Thanks!


Enable partitioning option is missing while creating service bus queue

$
0
0
Enable partitioning option is missing while creating service bus queue

Is it possible to forward the metrics information of Azure Service Bus into Azure Application Insights ?

$
0
0

Hallo All,

I use Azure Service Bus Queues extensively. And I am planning to use Azure Application Insights for monitoring Queues and to generate alerts.

Is there a way to pass the metric information of Azure SB Queue into Application Insights ?

Any other alternative approach ?

Thanks

Prabath

No outgoing messages being created on Service Bus - randomly stops working frequently with no apparent errors

$
0
0

Hi There,

We have been having a problem for a while now where our Service Bus just stops creating messages - the request are all successfully received but no messages are then constructed and send out our our consuming applications.

We are talking a low number of messages, I would expect Service Bus to far greater numbers without being throttled that what we are currently sending through.

Has anyone experience this or can assist with where I should be looking to resolve this issue? I've seen some discussions that partitioning is the problem however nothing substantiated

.


TLS 1.2 support

$
0
0

Hi,

May I know whether Azure Service Bus supports TLS 1.2? If supported then what version of .NET Framework is mandatory?

If TLS 1.2 is not supported then what is the alternative.

Thanks,

Ravi

How to subscribe messages from Azure service bus topic subscription to web api?

$
0
0
We have multiple webapi(microservices). To communicate between these micro services we are using Azure service bus Topic\Subscription. How webapi controller can get the message subscription so that api can process the message and insert to database. I don't want to use any azure functions. I want subscribe message in my webapi(micro service directly).

Sending and Receiving Message from Service Bus Queue via Java Program

$
0
0

I am trying to Send and Receive message to Service Bus Queue via Java Program. I am following the official doc [send/receive doc], When I am writing the following Java Code below :-

Configuration config =
    ServiceBusConfiguration.configureWithSASAuthentication("HowToSample","RootManageSharedAccessKey","SAS_key_value",".servicebus.windows.net"
            );

It is giving me error saying "The method configureWithSASAuthentication(String, String, String, String) is undefined for the type ServiceBusConfiguration". The dependency I am using is Below:-

<dependency><groupId>com.microsoft.windowsazure</groupId><artifactId>microsoft-azure-api-servicebus</artifactId><version>0.5.0</version></dependency>
Can someone help me out with this issue? Am I missing some dependency.


Event Processor unit testing

$
0
0

Hi, 

I m trying to write unit test for my eventprocessor but I dont know how to moc context object. Any suggestions. This is openasync method I m testing

 public Task OpenAsync(PartitionContext context)
        {
            _log.LogInformation("Opening Event Processor at {ConsumerGroup}-{Partition}",
                context.ConsumerGroupName,
                context.PartitionId);
            return Task.CompletedTask;
        }

how to gracefully stop worker role with service bus queue

$
0
0

Hi we have a requirement we are using service bus to read message and process some data based on that message and we are using workerrole for better performance.

The issue is when we try to deploy the workerrole any service bus message listener which is processing the request which is in action gets terminated by onStop() method and my data get's corrupted. and I have to again push a message for the ongoing request.

What I want is a mechanism to gracefully stopping the worker role so that it process the existing message request before exiting and stop listening to new message. How do I do that.   

 

Message lock lost - service bus outage?

$
0
0

Trying to troubleshoot what seems to be an Azure service bus issue - the message consumer is logic apps, but this felt like the more appropriate forum.

I completed a load test over the weekend, around 8500 messages processed successfully, but 5 errors. 4 of the errors occurred at very close to the same time, which is why I'm suspicious of some kind of outage.

I have a logic app consuming messages from the service bus - it is configured currently to process up to 10 messages concurrently. For the 5 errors, it appears as if there is some kind of issue when marking the message as 'complete' and hence removing it from the queue - the logic app reports a 'Gateway timeout', and on automatically retrying the same step receives a message from the service bus:

"Failed to complete the message with the lock token '250e397b-f3d1-45e4-9e6f-e07e79ff0037'. The lock on the message has been lost"

On checking the logic app executions, I can see another attempt was made to process the same message with a DIFFERENT message lock ID, approximately 5 seconds after the first attempt encountered the gateway timeout (and hence the 2 logic app executions ran concurrently for a while). It appears that the original lock on the message was somehow abandoned, and the 2nd logic app picked it up from the service bus again.

Summary of some key data for the 2 attempts at processing the message in the image below - the service bus is configured with a lock period of 5 minutes, which I see reflected in the 'enqueued time' and 'locked until' values for the first attempt.

Any ideas? Thanks in advance.

Problems testing eventGrid topic.

$
0
0

I've created an eventGrid topic in my enterprise's subscription and when i try to send a message with postman i'm obtaining this error

{
    "error": {
        "code": "InternalServerError",
        "message": "An unexpected error has occurred. Please report the x-ms-request-id header value to our forums for assistance or raise a support ticket. Report '570575de-87a5-472c-96f3-8eb7bbb595a4:9/16/2018 4:07:19 PM (UTC)' to our forums for assistance or raise a support ticket.",
        "details": [{
            "code": "UnexpectedError",
            "message": "An unexpected error has occurred. Please report the x-ms-request-id header value to our forums for assistance or raise a support ticket. Report '570575de-87a5-472c-96f3-8eb7bbb595a4:9/16/2018 4:07:19 PM (UTC)' to our forums for assistance or raise a support ticket."
    }]
  }
}

The request id is:

x-ms-request-id →570575de-87a5-472c-96f3-8eb7bbb595a4

What am i doing wrong? Thanks in advance for the support.

Viewing all 1916 articles
Browse latest View live


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