[go: up one dir, main page]

CN110263195B - Method for synchronizing multi-end server by picture stream - Google Patents

Method for synchronizing multi-end server by picture stream Download PDF

Info

Publication number
CN110263195B
CN110263195B CN201910567005.5A CN201910567005A CN110263195B CN 110263195 B CN110263195 B CN 110263195B CN 201910567005 A CN201910567005 A CN 201910567005A CN 110263195 B CN110263195 B CN 110263195B
Authority
CN
China
Prior art keywords
server
picture stream
servers
address
synchronizing
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.)
Active
Application number
CN201910567005.5A
Other languages
Chinese (zh)
Other versions
CN110263195A (en
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.)
Nanyin Faba Consumer Finance Co ltd
Original Assignee
Suning Consumer Finance 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 Suning Consumer Finance Co ltd filed Critical Suning Consumer Finance Co ltd
Priority to CN201910567005.5A priority Critical patent/CN110263195B/en
Publication of CN110263195A publication Critical patent/CN110263195A/en
Application granted granted Critical
Publication of CN110263195B publication Critical patent/CN110263195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/55Clustering; Classification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • G06F21/6263Protecting personal data, e.g. for financial or medical purposes during internet communication, e.g. revealing personal data from cookies

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for synchronizing a multi-end server by picture streams, which is characterized in that an IP address of a self-owned server needing to be synchronized is configured in a configuration system; the mobile terminal collects the picture stream information of a user and uploads the picture stream information to a distributed server, and meanwhile, whether the server is a self-owned server or a rented server is judged; if the distributed server is the own server, storing the picture stream information on the server, then acquiring the IP addresses of other servers in the configuration system and synchronizing the picture stream to the other servers; if the distributed server is a rental server, caching the picture stream information in the rental server, acquiring the IP address of the server in the configuration system, synchronizing the picture stream to the servers, and then clearing the picture stream in the cache. The invention greatly shortens the request time of the user for previewing the picture and improves the experience of the user.

Description

Method for synchronizing multi-end server by picture stream
Technical Field
The invention relates to a picture stream synchronization method, in particular to a method for synchronizing a multi-end server by a picture stream.
Background
The method is characterized in that a complete set of nas service condition is built based on no manpower and fund in the initial system construction stage, and a plurality of application services cannot share pictures, so that when a user requests to preview the picture information, if the picture is not stored in a request server, the request server is required to send a request to the server storing the picture to finish the preview. However, in practical situations, the requesting server cannot directly confirm which server the picture is stored on, and needs to request confirmation one by one, which causes a delay in customer preview and reduces customer experience. Meanwhile, as the traffic volume increases, a server needs to be rented to an application server business, and the pictures (such as OCR (optical character recognition) front and back images) of the user are relatively private, so that the pictures cannot be synchronized to the rented server and can only be stored in the own server, and therefore, a method for synchronizing the picture stream with the multi-end server needs to be developed to solve the problems in the prior art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for synchronizing a multi-end server with a picture stream, which solves at least one of the deficiencies of the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for synchronizing a multi-end server with a picture stream is characterized by comprising the following steps:
the method comprises the following steps: configuring the IP address of the own server needing synchronization in a configuration system;
step two: the mobile terminal collects the picture stream information of a user and uploads the picture stream information to a distributed server, and meanwhile, whether the server is a self-owned server or a rented server is judged;
step three: if the distributed server is the own server, storing the picture stream information on the server, then acquiring the IP addresses of other servers in the configuration system and synchronizing the picture stream to the other servers;
step four: if the distributed server is a rental server, caching the picture stream information in the rental server, acquiring the IP address of the server in the configuration system, synchronizing the picture stream to the servers, and then clearing the picture stream in the cache.
Further, the first step is to divide all servers into owned servers and leased servers, and configure the IP addresses of all owned servers in the configuration system.
Furthermore, the configuration system is a back-end management system which can add and delete the server IP address and take effect in real time aiming at the server IP address.
Further, the second step is specifically that the mobile terminal acquires picture stream information of a user and uploads the picture stream information to a distributed server, and simultaneously judges whether the server is a self-owned server or a leased server, the distributed server acquires an IP address list in a configuration system, compares the IP addresses in the list with the IP addresses of the local computer one by one, if any IP address in the IP address list is the same as the IP address of the local computer, the server is judged to be the self-owned server, and if no IP address is the same as the IP address of the local computer, the server is judged to be the leased server.
Further, the third step is specifically that if the allocated server is the own server, a picture directory is created on the own server to store the picture stream information on the own server, then the IP addresses of other servers in the configuration system are obtained, the jsch JAR package is used to initialize the ChannelSftp object according to the IP address required to be synchronized, and then the picture stream is synchronized to other servers according to the ChannelSftp.
Further, the fourth step is specifically that if the allocated server is a leased server, a picture cache directory is created on the leased server to cache the picture stream information on the leased server, then the IP address of the server in the configuration system is obtained, a jsch packet is used to initialize the channelstp object according to the IP address required to be synchronized, then the picture stream is synchronized to the servers according to the channelstp.put cycle, and finally the picture stream in the cache directory is cleared.
Compared with the prior art, the invention has the following advantages and effects: the invention can automatically identify the type of the server and synchronize the uploaded picture stream to the own server, thereby greatly shortening the request time of a user for previewing the picture, improving the experience of the user and simultaneously ensuring the safety of the user information.
Drawings
Fig. 1 is a schematic diagram of a method for synchronizing a multi-end server with a picture stream according to the present invention.
Detailed Description
The present invention is further illustrated by the following examples, which are illustrative of the present invention and are not to be construed as being limited thereto.
As shown in fig. 1, a method for synchronizing a multi-end server with a picture stream according to the present invention includes the following steps:
the method comprises the following steps: configuring the IP address of the own server needing synchronization in a configuration system;
all servers are divided into owned servers and leased servers, and the IP addresses of all owned servers are configured in a configuration system. The configuration system is a back-management system which can add and delete the IP addresses of the servers and take effect in real time aiming at the IP addresses of the servers.
Step two: the mobile terminal collects the picture stream information of a user and uploads the picture stream information to a distributed server, and meanwhile, whether the server is a self-owned server or a rented server is judged;
the method comprises the steps that a mobile terminal collects picture stream information of a user and uploads the picture stream information to a distributed server, whether the server is a self-owned server or a renting server is judged at the same time, the distributed server obtains an IP address list in a configuration system and compares IP addresses in the list with IP addresses of a local machine one by one, if any IP address in the IP address list is the same as the IP address of the local machine, the server is judged to be the self-owned server, and if no IP address is the same as the IP address of the local machine, the server is judged to be the renting server.
Step three: if the distributed server is the own server, storing the picture stream information on the server, then acquiring the IP addresses of other servers in the configuration system and synchronizing the picture stream to the other servers;
if the distributed server is the self-owned server, a picture directory is created on the self-owned server to store the picture stream information on the self-owned server, then the IP addresses of other servers in the configuration system are obtained, a jsch JAR packet is used for initializing a ChannelSftp object according to the IP addresses needing synchronization, and then the picture stream is synchronized to other servers according to ChannelSftp.
Step four: if the distributed server is a rental server, caching the picture stream information in the rental server, acquiring the IP address of the server in the configuration system, synchronizing the picture stream to the servers, and then clearing the picture stream in the cache.
If the distributed server is a leased server, a picture cache directory is created on the leased server to cache the picture stream information on the leased server, then the IP address of the server in the configuration system is obtained, a ChannelSftp object is initialized according to the IP address needing synchronization through a jsch JAR packet, then the picture stream is synchronized to the servers according to ChannelSftp.
The invention can automatically identify the type of the server and synchronize the uploaded picture stream to the own server, thereby greatly shortening the request time of a user for previewing the picture, improving the experience of the user and simultaneously ensuring the safety of the user information.
The above description of the present invention is intended to be illustrative. Various modifications, additions and substitutions for the specific embodiments described may be made by those skilled in the art without departing from the scope of the invention as defined in the accompanying claims.

Claims (4)

1. A method for synchronizing a multi-end server with a picture stream is characterized by comprising the following steps:
the method comprises the following steps: configuring the IP address of the own server needing synchronization in a configuration system;
the first step is to divide all servers into own servers and leased servers, and configure the IP addresses of all the own servers in a configuration system;
step two: the mobile terminal collects the picture stream information of a user and uploads the picture stream information to a distributed server, and meanwhile, whether the server is a self-owned server or a rented server is judged;
the second step is that the mobile terminal collects the picture stream information of the user and uploads the picture stream information to a distributed server, and simultaneously judges whether the server is a self-owned server or a leased server, the distributed server obtains an IP address list in a configuration system, compares IP addresses in the list with local IP addresses one by one, if any IP address in the IP address list is the same as the local IP address, the server is judged to be the self-owned server, and if any IP address is not the same as the local IP address, the server is judged to be the leased server;
step three: if the distributed server is the own server, storing the picture stream information on the server, then acquiring the IP addresses of other servers in the configuration system and synchronizing the picture stream to the other servers;
step four: if the distributed server is a rental server, caching the picture stream information in the rental server, acquiring the IP address of the server in the configuration system, synchronizing the picture stream to the servers, and then clearing the picture stream in the cache.
2. The method for synchronizing a multi-end server for a picture stream according to claim 1, wherein: the configuration system is a back-management system which can add and delete the IP addresses of the servers and take effect in real time aiming at the IP addresses of the servers.
3. The method for synchronizing a multi-end server for a picture stream according to claim 1, wherein: and step three, specifically, if the distributed server is the self-owned server, creating a picture directory on the self-owned server to store the picture stream information on the self-owned server, then acquiring the IP addresses of other servers in the configuration system, initializing a ChannelSftp object according to the IP address required to be synchronized through a jsch JAR packet, and then synchronizing the picture stream to the other servers according to ChannelSftp.
4. The method for synchronizing a multi-end server for a picture stream according to claim 1, wherein: if the distributed server is a leased server, creating a picture cache directory on the leased server to cache the picture stream information on the leased server, then obtaining an IP address of the server in the configuration system, initializing a ChannelSftp object according to the IP address needing synchronization through a jsch JAR packet, synchronizing the picture stream into the servers according to the ChannelSftp.
CN201910567005.5A 2019-06-27 2019-06-27 Method for synchronizing multi-end server by picture stream Active CN110263195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910567005.5A CN110263195B (en) 2019-06-27 2019-06-27 Method for synchronizing multi-end server by picture stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910567005.5A CN110263195B (en) 2019-06-27 2019-06-27 Method for synchronizing multi-end server by picture stream

Publications (2)

Publication Number Publication Date
CN110263195A CN110263195A (en) 2019-09-20
CN110263195B true CN110263195B (en) 2021-06-01

Family

ID=67922229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910567005.5A Active CN110263195B (en) 2019-06-27 2019-06-27 Method for synchronizing multi-end server by picture stream

Country Status (1)

Country Link
CN (1) CN110263195B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130972A (en) * 2011-04-27 2011-07-20 苏州阔地网络科技有限公司 Method and system for synchronizing white board after picture centralization under different resolution ratios
CN103617165A (en) * 2013-10-22 2014-03-05 小米科技有限责任公司 Picture loading method, device and terminal
CN104380789A (en) * 2012-11-15 2015-02-25 僖迪网络科技株式会社 Method and apparatus for providing content according to type of communication network
CN105049504A (en) * 2015-07-09 2015-11-11 国云科技股份有限公司 A big data transfer transmission synchronization and storage method
CN106059777A (en) * 2016-08-23 2016-10-26 浪潮电子信息产业股份有限公司 Trusted middleware design method of cloud platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730187B2 (en) * 2006-10-05 2010-06-01 Limelight Networks, Inc. Remote domain name service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130972A (en) * 2011-04-27 2011-07-20 苏州阔地网络科技有限公司 Method and system for synchronizing white board after picture centralization under different resolution ratios
CN104380789A (en) * 2012-11-15 2015-02-25 僖迪网络科技株式会社 Method and apparatus for providing content according to type of communication network
CN103617165A (en) * 2013-10-22 2014-03-05 小米科技有限责任公司 Picture loading method, device and terminal
CN105049504A (en) * 2015-07-09 2015-11-11 国云科技股份有限公司 A big data transfer transmission synchronization and storage method
CN106059777A (en) * 2016-08-23 2016-10-26 浪潮电子信息产业股份有限公司 Trusted middleware design method of cloud platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Markov-modulated infinite-server queues with general service times;Joke G Blom;《Queueing Systems》;20131231;全文 *
综合利用服务器和接入层交换机的云数据中心租户网络性能保证方法研究;王红伟;《中国优秀硕士学位论文全文数据库信息科技辑》;20160215(第2016年第02期);第I137-22页 *

Also Published As

Publication number Publication date
CN110263195A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN107580029B (en) Computer readable storage medium
CN107092686B (en) File management method and device based on cloud storage platform
CN108600281B (en) Cloud storage system, media data storage method and system
US8539041B2 (en) Method, apparatus, and network system for acquiring content
EP3614650B1 (en) Separation of forwarding plane and control plane of cgn
CN102394948B (en) DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN110933357A (en) Method and system for integrating monitoring system with video conference system
CN103888539A (en) P2P cache guiding method and device and P2P cache system
CN110347656B (en) Method and device for managing requests in file storage system
CN108574666B (en) Data stream scheduling method, device and system
CN105979405A (en) Method and device for accessing video device
CN115826845B (en) Storage resource allocation method and device, storage medium, and electronic device
CN111225248B (en) On-demand content management method and content distribution network on-demand server
CN110263195B (en) Method for synchronizing multi-end server by picture stream
CN113656683B (en) Subscription data pushing method, device and system, electronic equipment and storage medium
CN107959704A (en) A kind of data processing method and home gateway
CN109299048A (en) The method for handling data and issuing data
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
WO2017096886A1 (en) Content pushing method, apparatus and system
CN106649528A (en) Picture writing and reading methods and devices
CN110505083A (en) Hybrid Architecture Operation Method and System Based on Data Center and Local Edge Computing
JP2001320694A (en) Scalable media index system to display 'live media index menu' on browser of web client
CN103685367A (en) Offline download system and offline download method
CN110519400B (en) Method for realizing Internet of things platform for carrying out multi-inlet separation on equipment flow
CN103731506B (en) A kind of content injection method, the first business service node and content distributing network

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: No.88, Huaihai Road, Qinhuai District, Nanjing, Jiangsu 210001

Patentee after: Nanyin Faba Consumer Finance Co.,Ltd.

Address before: No.88, Huaihai Road, Qinhuai District, Nanjing, Jiangsu 210001

Patentee before: SUNING CONSUMER FINANCE Co.,Ltd.

CP01 Change in the name or title of a patent holder