Azure service bus is always advisable to make sure and check whether the application or the services are running the cloud or on premises, they often need to communicate with other applications or services to make sure the operations are run smoothly.
So to provide a valuable and reliable communication platform Microsoft has come up with Microsoft Azure Service Bus. In this article, we will look at this technology offering and see how well it can be utilized.
If we have to define what is Microsoft Azure Service Bus then we can say that is is one of the reliable information delivery services that is available in the market right now.
The main purpose of Microsoft Azure Service Bus is that it will make the communication part easier between both the parties that are exchanging data. The need of communication facilitator is there when two parties are looking to transfer the data.
In a sense, this is more like a postal service in the real world. With the help of postal service, one can send any time of information in the form of a letter or in the form a package from one place to another place and there is no place restriction.
The same way Azure Service Bus works and it is flexible in terms of delivering information from the sender to the recipient and vice versa. This is fulfilled by the messaging service which makes sure that the information is delivered between the two parties even though they both are not online at the same time.
Related Pages : Azure Sevice Fabric
The sender messages have a variety of delivery actions, some of them are:
2. Duplicate detection
3. Time-based expiration
4. Batch processing
The same actions have postal analogies and they are :
1. Repeat delivery
2. Required signature
3. Address change or recall
The Microsoft Azure Service Bus actually supports two different messaging patterns, they are:
1. Azure Relay
2. Service Bus messaging
Related Pages : Azure logic Apps
The Azure relay is a centralized service which supports various transport protocols and standard web services through out. Some of they are included below:
Azure Relay provides a ton of benefits and also one limitation is that both the server and the client should be online at the same time in order to mutually exchange or receive messages.
Now let us understand what Brokered messaging service has to offer for us :
Brokered messaging is completely contrary to Azure relay. In this type of messaging, the service doesn’t require both the server and the client to be online at the same time. It can work in asynchronous mode. This service type has its own benefits compared to Azure relay. So basically whenever the server or the client is on they exchange the information.
Brokered messaging service actually works with queues, topics, and subscriptions.
As said both the sending party and the receiving party doesn’t have to be online at all the time, all the information that is sent from the sending party will be reliably stored in the form of queues. So using this type of messaging service it gives benefits in some sense.
If the server side (sending party) and the client (receiving party) has any scheduled maintenance it won’t stop the entire business flow and the messages are still stored and will wait for the receiving party to be online and based on that the messages are delivered.
Related Pages : Azure Key Vault
Azure Service Bus fundamentals:
As we have discussed above the Service bus messaging fundamentally works on the three core components and they are:
Using Queues, the communication is all one-directional. This is specially used when the both the Server ( sending party) and the client (receiving party) are not online at the same time. All the messages that are sent by the server are stored in the form of queues. Once the client side is active, i.e. online all the messages are delivered.
Topics also provide one directional communication but with a twist associated with it. A single topic has multiple subscriptions associated with it. As a queue act as a broker between the server and the client, the topic does the same but only delivered information based on the subscription filters, so it delivers messages that match specific criteria.
The relay is completely different when compared to Queues and Topics. The relay is more sort of a bi-directional communication tool. In this process, it doesn’t store any messages but it simply passes the information from one to another destination.
How to avoid duplicate information being sending while using these messaging services?
Well, the simple form of authentication is that, whenever a queue or topic or relay is created, please provide a name to it. After naming the type of messaging service used it should combine with a namespace, thus creating a unique identifier within the process. Once the unique identifier is created it is passed through the Service bus and then the communication can happen based on the unique id.
To conclude, connecting applications is one of the steps to build a complete solution and the scope of communicating with each other varies from the requirement and also depends upon how well the systems are connected via an Internet connection. With the use of Azure Service Bus features, as it is being a Cloud based solution it will definitely streamline the communication channel between the sender and the receiver and also makes it convenient for the user as they are more reliable and broadly available in the market space.
Get Updates on Tech posts, Interview & Certification questions and training schedules