azureservicebus

Encoding of BrokeredMessage Body in Azure Service Bus

╄→гoц情女王★ 提交于 2019-12-07 06:44:54
问题 We have the below wrapper around the Azure Service Bus Client: public virtual void SendMessage(object bodyObject) { var brokeredMessage = _messageBodySerializer.SerializeMessageBody(bodyObject); _queueClient.Send(brokeredMessage); } With the SerializeMessageBody consisting of: public BrokeredMessage SerializeMessageBody(object bodyObject) { var brokeredMessage = new BrokeredMessage(bodyObject); brokeredMessage.Properties[MESSAGE_TYPE_PROPERTY_KEY] = bodyObject.GetType().AssemblyQualifiedName;

Exposing WSDL on BasicHttpRelayBinding over Azure

孤者浪人 提交于 2019-12-07 06:43:17
问题 I have an svc that is auto-started using AppFabric. What I want to do is expose the wsdl for my service over the bus. Internally the service and the wsdl work fine of course, I can also consume the service over the bus with no issue. The only thing I can't configure properly is viewing the wsdl over the relay. The ServiceHostFactory creates default endpoints and also adds an Azure Endpoint along with a mex endpoint in hopes to expose the wsdl over the relay. When I try to view the wsdl from

Azure WebJob concurrency when using ServiceBusTrigger

余生颓废 提交于 2019-12-07 04:07:21
问题 I have been using Azure Storage Queues to feed a WebJob, using the QueueTrigger attribute. I configure my QueueTrigger to dequeue a number of items for concurrent processing, like this: public static void Main() { JobHostConfiguration config = new JobHostConfiguration(); config.NameResolver = new QueueNameResolver(); config.Queues.NewBatchThreshold = 10; JobHost host = new JobHost(config); host.RunAndBlock(); } public static void ExecuteStorageQueueItem([QueueTrigger("%AzureQueueName%")]

Why not always configure for max number of event hub partitions?

放肆的年华 提交于 2019-12-07 02:13:35
问题 The Azure Event Hubs overview article states the following: The number of partitions is specified at the Event Hub creation time and must be between 8 and 32. Partitions are a data organization mechanism and are more related to the degree of downstream parallelism required in consuming applications than to Event Hubs throughput. This makes the choice of the number of partitions in an Event Hub directly related to the number of concurrent readers you expect to have. After Event Hub creation,

Redis vs Service Bus for pub/sub scenario

孤人 提交于 2019-12-07 00:30:20
问题 I have several services in Azure and i would like to sync changes between them using some kind of pub/sub service. I am looking into Redis and Azure Service Bus. The data to be synced is very simple - mostly strings up to 100 characters I would like to know what is the preferred choice for me - or if i am in the right direction.. My requirements are simple: Low latency - Many small operations optional - be able to install the solution on-premise and not in Azure 回答1: Don't use Redis for this.

Exceeds the limit (262144 bytes) currently allowed on the link Exception on SendBatch() method of Azure service bus SDK

不问归期 提交于 2019-12-06 16:38:01
We are using SendBatch() method of Azure service bus SDK 3.1.7 to send data to Azure Event Hub. Following is the code snippet : foreach (var packet in transformedPackets) { EventData eventData = new EventData(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(packet, settings)));; try { eventData.Properties.Add(AppConstants.TenantDeploymentUniqueIdKey, tenantDeploymentUniqueId); eventData.Properties.Add(AppConstants.DataTypeKey, DataTypeKey); byteCount += eventData.SerializedSizeInBytes; if (byteCount > MaxBatchSize) { sender.SendBatch(transformedMessages); transformedMessages.Clear();

azure notification hubs - app uninstall

随声附和 提交于 2019-12-06 13:52:10
I would like to use Azure Notification Hubs to send push notifications to users of my app running across iOS, Android and Windows Phone. I have managed to get the basics working but I don't know how to manage the App uninstall story. On starting, the mobile app will call my Identity Svc to get an Auth Token. It then calls its Platform Notification service (eg Google Cloud Messaging, APNS) to get a PNS Token. After persisting the token to local storage it will call a back-end Contact Svc to register the customer's device. This service will create a subscription to the Azure Notification hub for

Getting content from service bus in logic apps

柔情痞子 提交于 2019-12-06 12:05:47
问题 I am new to Azure logic apps. I have a service bus and pass a json object message to that service bus then I set up an action in logic apps to listen to my service bus. So everytime a new message come in to that service bus my logic apps will pick it up and send it to http. My question is how can I grab the property from the message in service bus and pass it to my http action. I tried this “Id” : “@{json(triggerBody()[‘ContentData’]).id}” but it's not working 回答1: Who and how is sending the

Send a message on Azure ServiceBus from .NET Core sender to a .NET 4.6 handler

耗尽温柔 提交于 2019-12-06 08:18:17
I want to send a message over Azure Service Bus from a .NET Core console app and receive it with in a .NET 4.6 console app. In .NET Core I'm using Azure's new service bus client for the sender which is not yet intended for production (according to their readme). https://github.com/Azure/azure-service-bus-dotnet I can send from .NET Core and receive with .NET Core easily enough using the samples. However when the .NET 4.6 app subscribes to the Topic and receives the same message the .NET 4.6 app throws this exception: Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while

Azure service bus python client issue

那年仲夏 提交于 2019-12-06 07:56:49
问题 I am using azure service bus for the first time to transfer message between C# source and python client. I am creating ServiceBusService object and using it i fetch message from function receive_subscription_message . The payload i get is not as expected. My code is something like below. bus_service = ServiceBusService(service_namespace="service_namespace", shared_access_key_name="All", shared_access_key_value="password") msg = bus_service.receive_subscription_message('test', 'test', peek