Font Size: a A A

Research And Implementation Of RESTful Web Service Architecture In Cloud Platform

Posted on:2021-05-04Degree:MasterType:Thesis
Country:ChinaCandidate:Y F SongFull Text:PDF
GTID:2428330620964202Subject:Engineering
Abstract/Summary:PDF Full Text Request
In recent years,Internet technologies has developed rapidly.At the same time,with the development of the Internet,cloud computing has been favored by many companies,enterprises and countries around the world in recent years.Some companies have also used technologies such as Web Services to develop various cloud platforms that provide web users with different types of web services.After analyzing the original cloud platform architecture of the research laboratory,I proposed an improvement and optimization plan for the existing shortcomings,designed and completed the corresponding system modules according to the new requirements,and finally realized the RESTful Web Service architecture int the cloud platform.First of all,the original cloud platform was designed and implemented in the past.It was developed using traditional Web Service technology and used SOAP protocol to interact with other services.Some of these services also need to support RDP or Socket for normal use.As a result,the original cloud platform's functional modules are highly coupled,the service layering is not obvious,standards of the service data interaction interfaces are not uniform,and update and maintenance are difficult.Aiming at these problems,a series of new requirements for improvement and optimization are proposed.This thesis will abandon the traditional Web Service related technologies and use RESTful related technologies to build a RESTful Web Service architecture,reduce the coupling between cloud platform modules at a global level,making the service module hierarchy more distinct.After the requirements are clarified,the entire system is divided into different functional modules on the new architecture,which can be divided into load balancing modules,middleware modules,authentication and authorization modules,and RESTful Web service modules according to different functions.Secondly,the detailed design of the divided functional modules is carried out,and on the basis of detailed design and development environment to realize each functional module.The load balancing module uses LVS + Nginx to load client requests.At the same time,Nginx replaces Apache as the Web server and achieve dynamic separation of the front-end architecture.The middleware module adds middleware to increase the scalability of the system.It adds a database middleware package to encapsulate a unified data read-write interface,and supports the read-write separation and master-slave replication of the underlying database.It adds Redis cache middleware to set multiple cache nodes to further improve data acquisition speed,reduce read and write pressure on the database.It adds service middleware to encapsulates the original cloud platform RDP,Socket and other services into a consistent RESTful interface,and ensure that the services of original cloud platform can be used normally.The authentication and authorization module selects the JWT scheme from three commonly to implement the authentication and authorization of user information,and ensure the security and reliability of user service requests.The RESTful Web service module is designed to implement a consistent RESTful Web service interface.This set of interfaces can interact with the client and downstream services or middleware,and pass data in the JSON data format.At the same time,the front-end code is rewritten to ensure the normal use of the user.Finally,this thesis designs and implements the RESTful Web Service architecture under the original cloud platform,and performs a series of tests about the system.The test is mainly divided into two aspects of function and performance.Each test result is analyzed to verify whether the basic functions of the system are complete and Whether the RESTful interface meets the RESTful design principles.Verifying whether the token is safe and reliable.And performing a comparison test with the original cloud platform to verify whether the improved performance has better performance.
Keywords/Search Tags:cloud platform, RESTful, Web Service, middleware
PDF Full Text Request
Related items