In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
What is the SOA software framework CDIF based on REST and JSON? in order to solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
The General device Interconnection Framework (CDIF) is a web-based connection framework with Sino-American intellectual property protection. At present, some open source implementations are stored in: Common device interconnect framework. CDIF is the first SOA software framework based on REST and JSON in the world. It provides the same abstract ability as XML-based WSDL language and SOAP protocol, but much simpler JSON-based implementation. It is also very suitable for API interfaces used to describe micro-service architectures. CDIF provides complete service registration and discovery capabilities, and creates a concise and unified JSON model for all web services and Internet of things devices, including REST and SOAP services, and Internet of things devices with various protocols; and on this basis, it provides a unified RPC call interface based on JSON text on its REST interface, which facilitates various front-end applications to develop API call codes based on the unified model.
The overall architecture of CDIF is shown in the following figure:
Through the device abstraction layer provided by the framework, CDIF encapsulates various types of REST API or Internet of things devices from different manufacturers into various virtual devices, and provides a unified virtual device access REST interface for clients to use.
The CDIF framework code is written in node.js, so the underlying virtual device drivers are all managed by node.js 's npm package. Each device driver may contain one or more virtual devices, which are reported to the CDIF framework when the driver is loaded. The virtual devices managed by CDIF and their API internal implementations are encapsulated in drivers through the device abstraction layer. The internal implementations of these drivers can be implemented with the help of any excellent third-party package in the rich ecology of node.js, such as request, crypto, moment, etc., so it is very easy to develop and manage.
The CDIF project is developed from the UPnP standard. While supporting the API interface of various cloud services, CDIF also provides a unified model for all Internet of things devices, and can easily help clients create various application scenarios in which Internet of things devices and network services are linked.
Because of its concise abstract ability, loose coupling architecture based on strict contract, state-independent interchangeable service definition and so on, SOA technology system based on WSDL and SOAP is still widely used in large and medium-sized enterprises in various industries, including banks, exchanges, airlines, telecommunications, hospitals, e-commerce, payment platforms and other industries. MuleSoft estimates that as much as $500 billion is spent annually on enterprise IT infrastructure construction and system integration related to SOA technology in the world. However, because the XML format is too complex for data exchange, many excellent WS-* standards based on XML are gradually declining.
With the development of mobile era, a variety of web services and micro-service architectures based on REST and JSON have gradually become the mainstream. Applications developed based on JavaScript, such as various web app, all take REST and JSON as the basis for connection. Emerging IT enterprises also prefer to use REST API rather than SOAP to connect various basic business components within the enterprise. However, at present, all kinds of REST API used inside and outside the enterprise basically rely on manual document management, so it is very inconvenient to deploy and upgrade a new version of API when the API interface changes. The general model established by CDIF for REST API helps fill the gap between REST API and traditional SOA technology, and provides a new direction for the combination and development of traditional SOA technology and cloud services. SOA technology based on CDIF can easily create many new types of applications, such as REST service flow applications, seamless combination of web services and Internet of things devices, and so on, which can not be easily realized by existing technologies.
Different from API modelling language such as WSDL or Swagger, the client app that uses the JSON model provided by CDIF and RPC interface does not need to do offline client code generation and manual integration of the REST API managed by CDIF. These REST API interfaces and their changes can be dynamically reflected on the client UI through components such as schema form for users to use, eliminating the tedious manual client upgrade work caused by the client integration of REST API and the change of API interface. REST API managed by CDIF can automatically display the newly added or changed API on app UI for users to consume, simplifying the work of app developers, and at the same time real-time promoting the new business capabilities shown by manufacturers' new API.
If the client app does not want to use these advanced features, the REST interface provided by CDIF can also be backward compatible with the current popular manual integration methods. Users can easily develop API calling code based on this model by referring to the general model created by CDIF for REST API.
Because the access address and method of API are completely transparent, CDIF can also help enterprises to solve the problem of change management of REST API. CDIF supports hot switching of driver code. When there is a change in the API access address or method in the driver, you only need to install a new driver package into the CDIF framework, and the change will take effect immediately. When the API parameter or result type changes, the upper application can automatically detect these changes. These features can better help enterprises to build a fully automated operation and maintenance environment.
Furthermore, CDIF can also provide a unique two-way data channel capability for the manufacturer's REST API, which can be opened only by adjusting the value of a Boolean on the unified JSON model provided by the CDIF framework. At this time, various data updates on the vendor's cloud service can be obtained in real time by CDIF message subscribers through channels such as WebSocket,APN, without the need for users to initiate API calls to update data, resulting in additional API call overhead. This feature provides more powerful capabilities for all current one-way cloud service data channels based on API calls.
The answer to the question about the SOA software framework CDIF based on REST and JSON is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.