CN112328566A - Shared file storage service assembly - Google Patents

Shared file storage service assembly Download PDF

Info

Publication number
CN112328566A
CN112328566A CN202011244998.1A CN202011244998A CN112328566A CN 112328566 A CN112328566 A CN 112328566A CN 202011244998 A CN202011244998 A CN 202011244998A CN 112328566 A CN112328566 A CN 112328566A
Authority
CN
China
Prior art keywords
file
storage service
file storage
files
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011244998.1A
Other languages
Chinese (zh)
Inventor
王正沛
张帆
单震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyuan Big Data Credit Management Co Ltd
Original Assignee
Tianyuan Big Data Credit Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyuan Big Data Credit Management Co Ltd filed Critical Tianyuan Big Data Credit Management Co Ltd
Priority to CN202011244998.1A priority Critical patent/CN112328566A/en
Publication of CN112328566A publication Critical patent/CN112328566A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

More particularly, the present invention relates to a shared file storage service component. The shared file storage service component adopts a framework and a visual management interface with separated front and back ends, provides file service in a unified interface mode, integrates a file format conversion function, provides online preview of files, utilizes Redis cache and file dump service to carry out unified management on uploaded files, and is a universal component capable of operating independently. The shared file storage service assembly is simple in structure and convenient to operate, file services are extracted and independently deployed and maintained as one service, workload in a development process is greatly reduced, operation burden of a platform is reduced, a plurality of projects can be supported simultaneously in an open access permission mode, and a relatively simple and mature solution is provided for services such as file uploading, online preview, downloading and file management in a business process.

Description

Shared file storage service assembly
Technical Field
The invention relates to the technical field of micro-services, in particular to a shared file storage service component.
Background
In developing various online business scenarios, uploading and downloading of files is an inevitable service. The scheme frequently used at present is to directly integrate the file uploading service into a project, and the uploaded files are also placed in a catalog of the project, so that the solution can also solve a plurality of problems in dealing with a simple scene and a slightly complex scene, for example, the uploaded files have poor maintainability; the operation burden of the whole project is increased; the deployment is not flexible enough and is inconvenient to expand; files cannot be shared across platforms, are repeatedly built, and the like.
Based on the above problems, the invention provides a shared file storage service component, and aims to provide a solution for realizing the services of file uploading, online preview, downloading, file management and the like in a business process.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient shared file storage service component.
The invention is realized by the following technical scheme:
a shared file storage service component, characterized by: the file management system adopts a framework and a visual management interface with separated front and back ends, provides file service in a unified interface mode, integrates a file format conversion function, provides online preview of files, utilizes Redis cache and file dump service to carry out unified management on uploaded files, and is a universal component capable of operating independently.
The shared file storage service component is developed based on the spring boot framework, and can be integrated into the micro-service framework based on the spring cloud component, so that the cooperative interaction with the conventional platform is realized, the workload and the operation and maintenance burden in the platform development process are reduced, the cross-platform sharing of the files is realized, the uploaded files are uniformly managed, and the server resources are reasonably allocated.
The shared file storage service component is integrated with a file uploading/downloading module and realizes file transmission based on an HTTP transmission protocol.
The shared file storage service component is integrated with a file format conversion module, and the file format conversion module realizes file format conversion by using a libroefice tool.
The shared file storage service component realizes user authentication in an jwt-token mode.
The shared file storage service component is integrated with a two-dimension code generation module, and a two-dimension code is automatically generated by using a two-dimension code generator.
The shared file storage service component is integrated with an expired file processing module, utilizes a Redis server to cache and manage temporary files, and automatically clears the expired files.
The shared file storage service component is integrated with a file dumping service module, a file management service module and a file preview module, and realizes file dumping service and file management service by using a file storage server, wherein the file preview module is used for realizing online preview of files.
The invention has the beneficial effects that: the shared file storage service assembly is simple in structure and convenient to operate, file services are extracted and are individually deployed and maintained as one service, workload in a development process is greatly reduced, operation burden of a platform is reduced, a plurality of projects can be simultaneously supported in an open access permission mode, and a relatively simple and mature solution is provided for achieving services such as file uploading, online previewing, downloading and file management in a business process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram of a shared file storage service component architecture according to the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the embodiment of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The shared file storage service component is based on a micro-service idea, adopts a framework and a visual management interface with separated front and back ends, provides file service in a unified interface mode, integrates a file format conversion function, provides on-line preview of files, performs unified management on uploaded files by utilizing Redis cache and file dump service, and is a universal component capable of operating independently.
The shared file storage service component is developed based on a springBoot framework, can be integrated into a micro-service framework based on a springCloud component, and can also be independently operated as a single project; therefore, the collaborative interaction with the existing platform is realized, the workload and the operation and maintenance burden in the platform development process are reduced, the cross-platform sharing of the files is realized, the uploaded files are uniformly managed, and the server resources are favorably and reasonably allocated.
The Spring Boot framework is designed to simplify the initial set-up and development process of new Spring applications. Spring is a lightweight enterprise development framework, and the main function is to integrate and manage other frameworks. However, as more and more frames are integrated, the integrated configuration of Spring is increasingly cumbersome. In this case, the skilled person proposes a new idea: the frame integration configuration used in the mainstream at ordinary times is written in advance, and then the frame can be quickly integrated through a few simple parameters. A Spring boot frame was created based on this idea.
The Spring boot framework is configured in a specific way, so that developers no longer need to define a templated configuration. In this way, Spring boots are dedicated to become the leader in the briskly developing field of rapid application development (rapid application development).
The Spring boot frame has the following characteristics:
1) creating an independent Spring application program;
2) embedded Tomcat, no need to deploy WAR files;
3) simplifying the Maven configuration;
4) automatically configuring Spring;
5) providing production-ready type functions such as indices, health checks and external configuration;
6) there is absolutely no code generation and no configuration requirement for XML.
Spring Cloud is an ordered collection of a series of frameworks. The development convenience of the Spring Boot is utilized to skillfully simplify the development of infrastructure of a distributed system, such as service discovery registration, configuration center, message bus, load balancing, circuit breaker, data monitoring and the like, and the Spring Boot can be used for one-key starting and deployment in a development style. The Spring Cloud does not repeatedly manufacture wheels, only combines more mature service frames which are developed by various companies and can withstand practical tests, and encapsulates and shields complex configuration and implementation principles through the Spring Boot style, so that a set of distributed system development kit which is simple and easy to understand, deploy and maintain is finally set for developers.
The shared file storage service component is integrated with a file uploading/downloading module and realizes file transmission based on an HTTP transmission protocol.
The shared file storage service component is integrated with a file format conversion module, and the file format conversion module realizes file format conversion by using a libroefice tool.
The library office tool is capable of implementing the following functions:
1) supporting the mutual conversion of various file formats such as doc, docx, html, ppt, png, pdf and the like;
2) different posture conversions such as file path, byte input and output stream, Base64 and the like are supported;
3) the method is plug-and-play independent of a third-party framework, and supports three configurations of application.
The shared file storage service component adopts an jwt-token mode to realize user authentication.
With the development of technology and the popularization of distributed web applications, the cost of managing user login states through session control is higher and higher, so that the method of token is gradually developed to perform login identity verification, and then cached user information in Redis is obtained through token. jwt-token makes the check mode simpler and more convenient, need not through Redis cache, but directly takes out the user information who saves according to token to and to token usability check, single sign-on is simpler.
The shared file storage service component is integrated with a two-dimension code generation module, and a two-dimension code is automatically generated by a two-dimension code generator.
The shared file storage service component is integrated with an expired file processing module, utilizes a Redis server to cache and manage temporary files, and automatically clears the expired files.
The shared file storage service component is integrated with a file dumping service module, a file management service module and a file previewing module, and the file dumping service and the file management service are realized by using a file storage server, and the file previewing module is used for realizing online previewing of files.
Compared with the prior art, the shared file storage service assembly has the following characteristics:
firstly, a file transfer protocol adopting http can be well integrated with the existing platform, so that the workload in the development process is greatly reduced, and the operation burden of the platform is reduced.
And secondly, the operation conditions of the uploaded files and projects can be monitored and managed visually by utilizing a visual management interface.
And thirdly, aiming at the temporary pictures, the temporary pictures are managed in a Redis mode, and the overdue pictures are automatically cleaned, so that the storage burden is lightened.
Fourthly, a plurality of projects can be simultaneously supported, and cross-platform sharing of files is achieved.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.

Claims (8)

1. A shared file storage service component, characterized by: the file management system adopts a framework and a visual management interface with separated front and back ends, provides file service in a unified interface mode, integrates a file format conversion function, provides online preview of files, utilizes Redis cache and file dump service to carry out unified management on uploaded files, and is a universal component capable of operating independently.
2. The shared file storage service component of claim 1, wherein: the method is based on the development of the spring boot framework, and can also integrate components based on the spring cloud into the micro-service framework, so that the cooperative interaction with the existing platform is realized, the workload and the operation and maintenance burden in the platform development process are reduced, the cross-platform sharing of files is realized, the uploaded files are uniformly managed, and the server resources are reasonably allocated.
3. The shared file storage service component of claim 1, wherein: the file uploading/downloading module is integrated, and file transmission is realized based on an HTTP transmission protocol.
4. The shared file storage service component of claim 1, wherein: the file format conversion module is integrated and realizes file format conversion by using a library office tool.
5. The shared file storage service component of claim 1, wherein: the jwt-token mode is adopted to realize user authentication.
6. The shared file storage service component of claim 1, wherein: the two-dimensional code generator is integrated with a two-dimensional code generating module and is used for automatically generating a two-dimensional code.
7. The shared file storage service component of claim 1, wherein: an expired file processing module is integrated, temporary files are cached and managed by a Redis server, and expired files are automatically cleared.
8. The shared file storage service component of claim 1, wherein: the system is integrated with a file dumping service module, a file management service module and a file previewing module, and realizes file dumping service and file management service by using a file storage server, wherein the file previewing module is used for realizing online previewing of files.
CN202011244998.1A 2020-11-10 2020-11-10 Shared file storage service assembly Pending CN112328566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011244998.1A CN112328566A (en) 2020-11-10 2020-11-10 Shared file storage service assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011244998.1A CN112328566A (en) 2020-11-10 2020-11-10 Shared file storage service assembly

Publications (1)

Publication Number Publication Date
CN112328566A true CN112328566A (en) 2021-02-05

Family

ID=74317276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011244998.1A Pending CN112328566A (en) 2020-11-10 2020-11-10 Shared file storage service assembly

Country Status (1)

Country Link
CN (1) CN112328566A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581272A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 File transfer method and device
CN105868333A (en) * 2016-03-28 2016-08-17 金蝶软件(中国)有限公司 File processing method and device
CN108932236A (en) * 2017-05-22 2018-12-04 北京金山云网络技术有限公司 A kind of file management method, scratch file delet method and device
CN110191128A (en) * 2019-05-30 2019-08-30 山东浪潮商用系统有限公司 A kind of tax shared file system and implementation method based on HDFS
CN110399425A (en) * 2019-07-07 2019-11-01 上海鸿翼软件技术股份有限公司 A kind of intelligence Dropbox micro services system
CN110430173A (en) * 2019-07-19 2019-11-08 河南工程学院 A kind of cloud platform based on Vue+SpringCloud
CN110582764A (en) * 2019-07-11 2019-12-17 深圳市鹰硕技术有限公司 file preview method, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581272A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 File transfer method and device
CN105868333A (en) * 2016-03-28 2016-08-17 金蝶软件(中国)有限公司 File processing method and device
CN108932236A (en) * 2017-05-22 2018-12-04 北京金山云网络技术有限公司 A kind of file management method, scratch file delet method and device
CN110191128A (en) * 2019-05-30 2019-08-30 山东浪潮商用系统有限公司 A kind of tax shared file system and implementation method based on HDFS
CN110399425A (en) * 2019-07-07 2019-11-01 上海鸿翼软件技术股份有限公司 A kind of intelligence Dropbox micro services system
CN110582764A (en) * 2019-07-11 2019-12-17 深圳市鹰硕技术有限公司 file preview method, device and storage medium
CN110430173A (en) * 2019-07-19 2019-11-08 河南工程学院 A kind of cloud platform based on Vue+SpringCloud

Similar Documents

Publication Publication Date Title
CN109889381B (en) Automatic configuration management method and device based on fort machine
CN112035228B (en) Resource scheduling method and device
CN109889571B (en) Development platform system and development method
JP4701220B2 (en) Business process reconfiguration method, program thereof and computer
CN112165532A (en) Node access method, device, equipment and computer readable storage medium
CN108196915A (en) Code process method, equipment and storage medium based on application container engine
CN102624695A (en) Third party initiation of communications between remote parties
US10346160B2 (en) Melding of mediation flow service component architecture (SCA) components
CN114363170A (en) Container service network configuration method and related product
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN112988409B (en) Interface calling method and device, computer equipment and storage medium
CN112363704A (en) Service system based on micro-service architecture
CN113938533A (en) Communication method and device between applications, electronic equipment and computer readable medium
CN112764830B (en) Data migration method and system applied to localization substitution
CN112328566A (en) Shared file storage service assembly
DE102023113043A1 (en) CODE GENERATION PROCEDURE
CN112866388B (en) Server cluster control method and device, storage medium and electronic equipment
Cappos et al. Why It Is Hard to Build a Long-Running Service on PlanetLab.
CN117714756A (en) Video processing method and device
KR102437052B1 (en) Apparatus and method for applying environment of computing infrastructure based on reorganizing markup language according to cloud service provider
Traore et al. Enabling Cyberanalytics using IoT Clusters and Containers
Li et al. HeTong: A Voice Answering Enabled Multi-language Questionnaire System Based on Spring Cloud
CN116009866A (en) Web system and method for realizing dynamic optimization of Hadoop platform parameters
Fraze-Frazenko et al. Panorama tours management application development
CN116474372A (en) Game preview method, game preview device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210205