The web-based WebSphere MQ telemetry by (MQTT)-related technology provides a bridge between cloud computing and mobile devices to provide you with reliable network services in a low-bandwidth and unstable mobile internet.
Cloud computing, mobile Internet, and IoT are the hottest keywords at the moment, and are the key technologies for future development. Cloud computing can provide people with strong computing power and storage capacity, can effectively solve the mobile device computing capacity and small storage limitations, but the prerequisite for all this is to have a good network environment, including stable links and high-speed transmission conditions. However, the current mobile Internet is in the initial stage, can not provide reliable network security, based on the internet of WebSphere MQ telemetry by (referred to as MQTT) related technology is just good to make up for this shortcoming, A bridge between cloud computing and mobile devices to provide you with reliable network services in a low bandwidth and unstable network environment. This article will give you an example of a typical scenario for Smart Flight, detailing how to use MQTT related technologies based on the Internet to make applications based on cloud computing and mobile web more perfect.
Introduction to Cast Iron
The IBM WebSphere cast Iron (cast Iron) is a member of the WebSphere product family, which helps the enterprise to integrate internal application systems with external SaaS and cloud applications. The Cast Iron platform provides a "configuration-only, no programming" way to help users complete business integration, making the business development and integration process both quick and easy, and significantly lower costs.
Cast Iron has a unique advantage in business integration, where users create configuration business application processes through Cast Iron Studio, including connectivity to enterprise applications, conversion of data between different applications, and graphical definition of business logic; Cast Iron It also provides a secure and stable integrated project environment that supports three different deployments, and enables users to easily manage deployed application projects through the console.
MQTT Introduction
WebSphere MQ Telemetry by (MQTT) is a messaging technology designed for Internet of things, developed by Ibm®hursley Laboratory. It is an open, streamlined, lightweight and easy to implement protocol.
The Internet of things, that is, the things, referred to as IoT. It is on the internet based on the extension and expansion of the network, the client from the traditional computer extended and extended to any object and object, the object through the embedded sensor for information collection, and then through a small computing equipment for network information exchange and communication. The technology of IoT is a hot technology, which has a good prospect in the fields of energy, electronic information, medical treatment, transportation, retailing, logistics and industrial manufacturing.
In the Internet of Things, the MQTT protocol and related products are responsible for the effective transmission of data from the sensor to the server, complete the connection between the limited, unstable network to the Internet or corporate network, and realize the interconnection between the two. On this basis, the exchange of goods not only through the equipment collection information, the realization of intelligent perception, but also combined with advanced information processing, data mining, artificial intelligence and other technical means, and business application integration, to achieve from the background to the front-end equipment intelligent monitoring, complete the further information work.
As noted above, the MQTT protocol is a protocol designed to communicate with remote sensors and control devices that are limited in computational power and work on low bandwidth, unreliable networks, and has the following major features:
very small communication overhead (minimum message size of 2 bytes), support for Easy-to-use clients for a variety of popular programming languages (including C,java,ruby,python, etc.), support for publish/book models, simplify application development, and provide three different message delivery levels. Allow messages to reach destinations on demand
network transmission requirements in unstable jobs
The value of the combination
In the current social environment, the actual application is not a single project can be implemented independently, the need for a large number of network services to complete the cooperation. In the face of complex network environment, business integration and collaboration is an important factor that can not be neglected, which is the scene of the powerful integration ability of Cast Iron. Through a variety of connector,cast Iron can quickly and easily integrate different systems and services together, through simple drag and drop to complete the business process configuration, while using its own based on the cloud computing platform for large-scale operations to provide users with more user-friendly services.
In the traditional Internet, we often do not particularly care about the network state and data transmission, but in particular circumstances, we are particularly concerned about the reliability of data transmission. In the course of a bank transaction, it is vital for us to have the data submitted accurately to the destination, whether it is abnormal data loss or damage, or repeated submissions and receive will lead to fatal errors, so unreliable network can cause a great degree of danger, resulting in a serious imbalance in data. In general, we often need to write a large number of auxiliary code to prevent this situation, which gives developers and testers a lot of work, but also the possibility of potential risks.
The use of MQTT technology for application and messaging decoupling, can be used in almost all business applications, and can greatly reduce the workload of developers, especially the MQTT to provide us with the three levels of transport services:
at most once: Message publishing is completely dependent on the underlying TCP/IP network, message loss or duplication occurs, and this level can be used when data loss is not a matter of time, because the second data will soon be sent at least once: ensure that the message arrives exactly, but the repetition of the message may occur Only once: Make sure the message arrives, and only once. This level is ideal for situations where the repetition or loss of messages in a billing system can lead to incorrect results
Three levels of transport services can almost cover the requirements of all network services in real-world applications, of course, different levels of service for the network and hardware costs are different, can be based on the actual project needs of reasonable choice.
Through the above analysis, we can find that the perfect integration of Cast Iron and MQTT will create great value for us, not only make our Business Project development more simple, fast, greatly reduce our project development cost, and our project development can also use simple and reliable data transmission mode, Extend business applications to mobile platforms in a reasonable way.
On the traditional Internet platform, perhaps we are not worried about network bandwidth and data transmission speed, or even the computing power of the terminal, but for individual special scenes, they need to cooperate to ensure that the data can arrive in time and accurately, at the same time, and only once to reach the destination, Ensure the correctness of project data and the integrity of business operation; in the mobile Internet or some limited network environment applications, to ensure the minimum data transmission, reliable message push mode, effectively protect the data timely and accurate to reach the destination is very important, Cast Iron and MQTT The combination replaces the traditional polling mode to realize message push, greatly reduces the consumption and waste of network resources, but also no longer need to keep the connection with the server, no need to worry about the reliability of the network environment and the shortage of mobile equipment.