CN112487218B - Content processing method, system, device, computing device and storage medium - Google Patents
Content processing method, system, device, computing device and storage medium Download PDFInfo
- Publication number
- CN112487218B CN112487218B CN202011359273.7A CN202011359273A CN112487218B CN 112487218 B CN112487218 B CN 112487218B CN 202011359273 A CN202011359273 A CN 202011359273A CN 112487218 B CN112487218 B CN 112487218B
- Authority
- CN
- China
- Prior art keywords
- request
- processing
- content data
- content
- layer
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/435—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/438—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/48—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/483—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本公开涉及云计算技术领域,具体涉及一种内容处理方法、系统、装置、计算设备和存储介质。The present disclosure relates to the technical field of cloud computing, and in particular to a content processing method, system, device, computing device and storage medium.
背景技术Background technique
内容处理可以包括文字处理、视频处理、图像处理、话题处理等。随着计算量的增加,在单个模块中实现全部内容处理功能逐渐变得冗长且无效率。由此,需要一种适当解耦的内容处理方法和系统架构。Content processing may include word processing, video processing, image processing, topic processing, etc. Implementing all content processing functions in a single module gradually becomes tedious and inefficient as the amount of computation increases. Therefore, a properly decoupled content processing method and system architecture are needed.
在此部分中描述的方法不一定是之前已经设想到或采用的方法。除非另有指明,否则不应假定此部分中描述的任何方法仅因其包括在此部分中就被认为是现有技术。类似地,除非另有指明,否则此部分中提及的问题不应认为在任何现有技术中已被公认。The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any approaches described in this section are admitted to be prior art solely by virtue of their inclusion in this section. Similarly, issues mentioned in this section should not be considered to have been recognized in any prior art unless otherwise indicated.
发明内容Contents of the invention
根据本公开的一个方面,公开了一种内容处理方法。所述方法包括由接入层获取第一请求,所述第一请求包括内容数据和针对所述内容数据的处理命令。所述方法还包括由接入层响应于所述第一请求的来源满足安全性指标,向服务层发送第二请求。所述第二请求包括所述内容数据和所述处理命令,并且所述第二请求不包括所述第一请求的所述来源。所述方法还包括由服务层根据所述处理命令对所述内容数据进行处理。According to one aspect of the present disclosure, a content processing method is disclosed. The method includes obtaining, by an access layer, a first request including content data and processing commands for the content data. The method also includes sending, by the access layer, a second request to the service layer in response to the source of the first request meeting a security criterion. The second request includes the content data and the processing command, and the second request does not include the source of the first request. The method further includes processing the content data by the service layer according to the processing command.
根据本公开的另一个方面,公开了一种内容处理系统。所述内容处理系统包括接入层。接入层用于获取第一请求,所述第一请求包括内容数据和针对所述内容数据的处理命令,并且响应于所述第一请求的来源满足安全性指标,向服务层发送第二请求。第二请求包括所述内容数据和所述处理命令,并且第二请求不包括第一请求的来源。所述内容处理系统还包括服务层。所述服务层用于根据所述处理命令对所述内容数据进行处理。According to another aspect of the present disclosure, a content processing system is disclosed. The content processing system includes an access layer. The access layer is used to obtain a first request, the first request includes content data and a processing command for the content data, and sends a second request to the service layer in response to the source of the first request meeting a security index . The second request includes said content data and said processing command, and the second request does not include the source of the first request. The content processing system also includes a service layer. The service layer is configured to process the content data according to the processing command.
根据本公开的又一方面,公开了一种计算设备,可以包括处理器;以及存储程序的存储器,所述程序包括指令,程序包括由处理器执行时使处理器执行上述内容处理方法的指令。According to yet another aspect of the present disclosure, a computing device is disclosed, which may include a processor; and a memory storing a program, the program including instructions, and the program includes instructions for causing the processor to execute the above-mentioned content processing method when executed by the processor.
根据本公开的又一方面,公开了一种存储程序的计算机可读存储介质,程序可以包括在由服务器的处理器执行时使得服务器执行上述内容处理方法的指令。According to still another aspect of the present disclosure, a computer-readable storage medium storing a program may include instructions causing the server to execute the above-mentioned content processing method when executed by a processor of the server.
根据本公开的再另一方面,公开了一种计算机程序产品,包括在由服务器的处理器执行时使得服务器执行上述内容处理方法的计算机指令。According to yet another aspect of the present disclosure, a computer program product is disclosed, including computer instructions that, when executed by a processor of a server, cause the server to perform the above content processing method.
附图说明Description of drawings
附图示例性地示出了实施例并且构成说明书的一部分,与说明书的文字描述一起用于讲解实施例的示例性实施方式。所示出的实施例仅出于例示的目的,并不限制权利要求的范围。在所有附图中,相同的附图标记指代类似但不一定相同的要素。The drawings exemplarily illustrate the embodiment and constitute a part of the specification, and together with the text description of the specification, serve to explain the exemplary implementation of the embodiment. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, like reference numbers designate similar, but not necessarily identical, elements.
图1是根据本公开的实施例的可以在其中实施本文描述的各种方法的示例性系统的示意图;FIG. 1 is a schematic diagram of an exemplary system in which various methods described herein may be implemented, according to an embodiment of the present disclosure;
图2是根据本公开的实施例的内容处理方法的流程图;2 is a flowchart of a content processing method according to an embodiment of the present disclosure;
图3是根据本公开的实施例的内容处理系统的示例架构图;3 is an example architecture diagram of a content processing system according to an embodiment of the present disclosure;
图4(a)是根据本公开的实施例的服务层的并发处理的示意图;FIG. 4(a) is a schematic diagram of concurrent processing of a service layer according to an embodiment of the present disclosure;
图4(b)是根据本公开的实施例的服务层的示例功能示意图;Fig. 4 (b) is the exemplary functional schematic diagram of the service layer according to the embodiment of the present disclosure;
图5(a)是根据本公开的另一个实施例的内容处理方法的流程图;FIG. 5(a) is a flowchart of a content processing method according to another embodiment of the present disclosure;
图5(b)是根据本公开的另一个实施例的内容处理系统的示例架构图;Figure 5(b) is an example architecture diagram of a content processing system according to another embodiment of the present disclosure;
图6示出了根据本公开的实施例的内容处理装置的结构框图;Fig. 6 shows a structural block diagram of a content processing device according to an embodiment of the present disclosure;
图7示出了能够用于实现本公开的实施例的示例性服务器和客户端的结构框图。FIG. 7 shows a structural block diagram of an exemplary server and client that can be used to implement the embodiments of the present disclosure.
具体实施方式Detailed ways
在本公开中,除非另有说明,否则使用术语“第一”、“第二”等来描述各种要素不意图限定这些要素的位置关系、时序关系或重要性关系,这种术语只是用于将一个元件与另一元件区分开。在一些示例中,第一要素和第二要素可以指向该要素的同一实例,而在某些情况下,基于上下文的描述,它们也可以指代不同实例。In the present disclosure, unless otherwise stated, using the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship or importance relationship of these elements, and such terms are only used for Distinguishes one element from another. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, they may also refer to different instances based on contextual description.
在本公开中对各种所述示例的描述中所使用的术语只是为了描述特定示例的目的,而并非旨在进行限制。除非上下文另外明确地表明,如果不特意限定要素的数量,则该要素可以是一个也可以是多个。此外,本公开中所使用的术语“和/或”涵盖所列出的项目中的任何一个以及全部可能的组合方式。The terminology used in describing the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, there may be one or more elements. In addition, the term "and/or" used in the present disclosure covers any one and all possible combinations of the listed items.
下面将结合附图详细描述本公开的实施例。Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
图1示出了根据本公开的实施例可以将本文描述的各种方法和装置在其中实施的示例性系统100的示意图。参考图1,该系统100包括一个或多个客户端设备101、102、103、104、105和106、服务器120以及将一个或多个客户端设备耦接到服务器120的一个或多个通信网络110。客户端设备101、102、103、104、105和106可以被配置为执行一个或多个应用程序。FIG. 1 shows a schematic diagram of an
在本公开的实施例中,服务器120可以运行使得能够进行内容处理的方法的一个或多个服务或软件应用。In an embodiment of the present disclosure, the
在某些实施例中,服务器120还可以提供可以包括非虚拟环境和虚拟环境的其他服务或软件应用。在某些实施例中,这些服务可以作为基于web的服务或云服务提供,例如在软件即服务(SaaS)模型下提供给客户端设备101、102、103、104、105和/或106的用户。In some embodiments,
在图1所示的配置中,服务器120可以包括实现由服务器120执行的功能的一个或多个组件。这些组件可以包括可由一个或多个处理器执行的软件组件、硬件组件或其组合。操作客户端设备101、102、103、104、105和/或106的用户可以依次利用一个或多个客户端应用程序来与服务器120进行交互以利用这些组件提供的服务。应当理解,各种不同的系统配置是可能的,其可以与系统100不同。因此,图1是用于实施本文所描述的各种方法的系统的一个示例,并且不旨在进行限制。In the configuration shown in FIG. 1 ,
用户可以使用客户端设备101、102、103、104、105和/或106来对内容进行处理。客户端设备可以提供使客户端设备的用户能够与客户端设备进行交互的接口。客户端设备还可以经由该接口向用户输出信息。尽管图1仅描绘了六种客户端设备,但是本领域技术人员将能够理解,本公开可以支持任何数量的客户端设备。A user may use
客户端设备101、102、103、104、105和/或106可以包括各种类型的计算系统,例如便携式手持设备、通用计算机(诸如个人计算机和膝上型计算机)、工作站计算机、可穿戴设备、游戏系统、瘦客户端、各种消息收发设备、传感器或其他感测设备等。这些计算设备可以运行各种类型和版本的软件应用程序和操作系统,例如Microsoft Windows、Apple iOS、类UNIX操作系统、Linux或类Linux操作系统(例如Google Chrome OS);或包括各种移动操作系统,例如Microsoft Windows Mobile OS、iOS、Windows Phone、Android。便携式手持设备可以包括蜂窝电话、智能电话、平板电脑、个人数字助理(PDA)等。可穿戴设备可以包括头戴式显示器和其他设备。游戏系统可以包括各种手持式游戏设备、支持互联网的游戏设备等。客户端设备能够执行各种不同的应用程序,例如各种与Internet相关的应用程序、通信应用程序(例如电子邮件应用程序)、短消息服务(SMS)应用程序,并且可以使用各种通信协议。
网络110可以是本领域技术人员熟知的任何类型的网络,其可以使用多种可用协议中的任何一种(包括但不限于TCP/IP、SNA、IPX等)来支持数据通信。仅作为示例,一个或多个网络110可以是局域网(LAN)、基于以太网的网络、令牌环、广域网(WAN)、因特网、虚拟网络、虚拟专用网络(VPN)、内部网、外部网、公共交换电话网(PSTN)、红外网络、无线网络(例如蓝牙、WIFI)和/或这些和/或其他网络的任意组合。
服务器120可以包括一个或多个通用计算机、专用服务器计算机(例如PC(个人计算机)服务器、UNIX服务器、中端服务器)、刀片式服务器、大型计算机、服务器群集或任何其他适当的布置和/或组合。服务器120可以包括运行虚拟操作系统的一个或多个虚拟机,或者涉及虚拟化的其他计算架构(例如可以被虚拟化以维护服务器的虚拟存储设备的逻辑存储设备的一个或多个灵活池)。在各种实施例中,服务器120可以运行提供下文所描述的功能的一个或多个服务或软件应用。
服务器120中的计算系统可以运行包括上述任何操作系统以及任何商业上可用的服务器操作系统的一个或多个操作系统。服务器120还可以运行各种附加服务器应用程序和/或中间层应用程序中的任何一个,包括HTTP服务器、FTP服务器、CGI服务器、JAVA服务器、数据库服务器等。The computing system in
在一些实施方式中,服务器120可以包括一个或多个应用程序,以分析和合并从客户端设备101、102、103、104、105和106的用户接收的数据馈送和/或事件更新。服务器120还可以包括一个或多个应用程序,以经由客户端设备101、102、103、104、105和106的一个或多个显示设备来显示数据馈送和/或实时事件。In some implementations,
系统100还可以包括一个或多个数据库130。在某些实施例中,这些数据库可以用于存储数据和其他信息。例如,数据库130中的一个或多个可用于存储诸如音频文件和视频文件的信息。数据存储库130可以驻留在各种位置。例如,由服务器120使用的数据存储库可以在服务器120本地,或者可以远离服务器120且可以经由基于网络或专用的连接与服务器120通信。数据存储库130可以是不同的类型。在某些实施例中,由服务器120使用的数据存储库可以是数据库,例如关系数据库。这些数据库中的一个或多个可以响应于命令而存储、更新和检索到数据库以及来自数据库的数据。
在某些实施例中,数据库130中的一个或多个还可以由应用程序使用来存储应用程序数据。由应用程序使用的数据库可以是不同类型的数据库,例如键值存储库,对象存储库或由文件系统支持的常规存储库。In some embodiments, one or more of
图1的系统100可以以各种方式配置和操作,以使得能够应用根据本公开所描述的各种方法和装置。The
下面结合图2描述根据本公开的实施例的示例内容处理方法200的流程。The flow of an example content processing method 200 according to an embodiment of the present disclosure is described below with reference to FIG. 2 .
在步骤S201处,接入层获取第一请求,第一请求包括内容数据和针对内容数据的处理命令。At step S201, the access layer acquires a first request, where the first request includes content data and a processing command for the content data.
在步骤S202处,接入层响应于第一请求的来源满足安全性指标,向服务层发送第二请求。第二请求包括内容数据和处理命令,并且第二请求不包括第一请求的来源。At step S202, the access layer sends the second request to the service layer in response to the source of the first request meeting the security index. The second request includes content data and processing commands, and the second request does not include the source of the first request.
在步骤S203处,服务层根据处理命令对内容数据进行处理。At step S203, the service layer processes the content data according to the processing command.
根据上述方法,能够使接入层接收经过初步处理的数据,对其进行安全校验,然后传递给服务层以供计算。接入层不需要将数据来源传递给服务层,服务层不必知道数据的来源。由此,能够实现模块之间的功能解耦,简化更新迭代所需的工作量。安全性指标可以是基于服务所需的安全性要求等,判断第一请求的来源(例如在内部请求的情况下是前续模块例如前端或表示层,或者在外部请求的情况下,可以是网关等)是否能够访问服务层。通过拆分安全校验功能,只需要对所需的少量接口进行安全校验,减少了计算所需的资源。According to the above method, the access layer can receive the preliminarily processed data, perform safety verification on it, and then pass it to the service layer for calculation. The access layer does not need to pass the data source to the service layer, and the service layer does not need to know the source of the data. As a result, functional decoupling between modules can be achieved, and the workload required for update iterations can be simplified. The security index can be based on the security requirements required by the service, etc., to determine the source of the first request (for example, in the case of an internal request, it is a previous module such as a front-end or presentation layer, or in the case of an external request, it can be a gateway etc.) can access the service layer. By splitting the security check function, only a small number of required interfaces need to be checked for security, reducing the resources required for computing.
上述方法可以应用于内容处理场景。内容数据可以包括文本内容、图片内容、音频内容、视频内容,并且可以包括话题、新闻、主题、事件等。对内容数据的处理可以包括对各种类型内容的编辑、剪裁、版本替换、修饰、润色、扩充等,并且本公开不限于此,内容数据可以包括任何能够承载内容并且能够被处理的数据,并且处理命令可以指代任何期望的对以一定格式呈现的内容数据的对应处理方式。可以对内容数据进行处理以获得需要的数据。The above method can be applied to content processing scenarios. Content data may include text content, picture content, audio content, video content, and may include topics, news, topics, events, and the like. The processing of content data may include editing, clipping, version replacement, modification, embellishment, expansion, etc. of various types of content, and the present disclosure is not limited thereto. Content data may include any data that can carry content and be processed, and A processing command may refer to any desired corresponding processing of content data presented in a certain format. Content data can be processed to obtain desired data.
例如,内容处理可以包括对事件内容进行处理以展示热点事件,利用全网抓取的能力标识事件的时效性、稀缺性、相关内容的丰富性。内容处理可以包括根据正文和标题提取关键词,可以包括根据关键词生成标题,还可以包括根据正文、标题、关键词等文字内容生成或搜索对应的版权图、动态话题、百度百科、背景资料等。内容处理可以包括检测图片是否包含低清晰、纯色、广告、马赛克等不期望的特征,检测文本是否有错别字、段落是否格式得当并可选地对其进行修改,检测视频是否模糊并可选地对其进行加工或者搜寻或生成类似视频等。For example, content processing may include processing event content to display hot events, and using the ability to crawl the entire network to identify the timeliness, scarcity, and richness of related content of events. Content processing can include extracting keywords based on text and title, generating titles based on keywords, and generating or searching corresponding copyright images, dynamic topics, Baidu Encyclopedia, background information, etc. based on text, titles, keywords, etc. . Content processing can include detecting whether images contain low-resolution, solid colors, advertisements, mosaics, etc., undesirable features, detecting typos in text, properly formatted paragraphs and optionally modifying them, detecting blurry video and optionally modifying It processes or searches or generates similar videos, etc.
进一步,上述方法可以与人工智能相结合,进一步应用于智能写作助手或者辅助写作产品中,以自动地或遵循用户偏好地对内容数据进行处理,而不需要用户手动选择处理命令等。例如,内容处理功能可以围绕作者创作的不同阶段,并且利用人工智能计算能力,辅助作者完成更好的文章。可以利用智能化的内容处理来实现以下功能:通过展示热点事件和对事件的内容处理,能够在创作前引导作者的选题方向,并且引导作者创作非同质化的文章,提升文章的阅读量;能够在创作中提供丰富的写作素材:根据作者输入的正文、标题、关键词等内容自动地在编辑器的相应区域展示生成的相关内容,减少作者在写作途中跳出页面自行查询素材的次数,保证作者创作的高效率;能够在创作后检测文章的创作质量,提醒作者在编辑阶段就提前去修改和完善,提高文章最终的发布质量。Furthermore, the above method can be combined with artificial intelligence and further applied to intelligent writing assistants or assisted writing products to process content data automatically or according to user preferences, without requiring users to manually select processing commands. For example, the content processing function can focus on the different stages of the author's creation, and use artificial intelligence computing power to assist the author to complete better articles. Intelligent content processing can be used to achieve the following functions: By displaying hot events and processing the content of events, it can guide the direction of the author's topic selection before creation, and guide the author to create non-homogeneous articles to increase the reading volume of the article ;Able to provide rich writing materials during creation: automatically display the generated relevant content in the corresponding area of the editor according to the text, title, keywords and other content input by the author, reducing the number of times the author jumps out of the page to search for materials on the way of writing, Guarantee the high efficiency of the author's creation; be able to detect the creation quality of the article after creation, remind the author to revise and improve in advance during the editing stage, and improve the final publication quality of the article.
根据一些实施例,内容数据可以表示图片。对应的处理命令可以是以下各项中的至少一项:获取与所述图片相关的关键词、对所述图片进行裁剪、对所述图片进行旋转加工、对所述图片进行色彩处理、获取所述图片的关联图片、获取所述图片的更高清晰度的版本、获取与所述图片相似的有版权图片。上述处理命令是针对图片内容数据的获得更期望的内容数据的典型处理命令,能够显著提高用户体验。处理命令可以不限于上述命令,其他满足用户期望或者人工智能计算指标的处理命令也是可能的。例如,处理命令可以包括对图片中的人物进行替换、对图片的氛围进行调整等。According to some embodiments, the content data may represent pictures. The corresponding processing command may be at least one of the following items: obtain keywords related to the picture, crop the picture, rotate the picture, perform color processing on the picture, obtain the Associated pictures of the picture in question, higher-resolution versions of the picture in question, and copyrighted pictures similar to the picture in question. The above processing commands are typical processing commands for obtaining more desired content data for picture content data, which can significantly improve user experience. The processing commands may not be limited to the above commands, and other processing commands that meet user expectations or artificial intelligence calculation indicators are also possible. For example, the processing command may include replacing a person in the picture, adjusting the atmosphere of the picture, and the like.
根据一些实施例,内容数据可以表示文本。对应的处理命令可以是以下各项中的至少一项:对所述文本进行纠错处理、获取与所述文本内容相关的关键词、获取与所述文本内容相关的话题。文本处理是内容处理中的重要组成部分。上述处理命令是针对文本内容数据的获得更期望的内容数据的典型处理命令,能够显著提高用户体验。处理命令可以不限于上述命令,其他满足用户期望或者人工智能计算指标的处理命令也是可能的。例如,处理命令可以包括对文本进行扩充、仿写、改写等。According to some embodiments, content data may represent text. The corresponding processing command may be at least one of the following items: performing error correction processing on the text, obtaining keywords related to the text content, and obtaining topics related to the text content. Text processing is an important part of content processing. The above processing commands are typical processing commands for obtaining more desired content data for text content data, which can significantly improve user experience. The processing commands may not be limited to the above commands, and other processing commands that meet user expectations or artificial intelligence calculation indicators are also possible. For example, processing commands may include expanding, simulating, rewriting, etc. text.
根据一些实施例,内容数据可以表示视频。对应的处理命令可以是以下各项中的至少一项:获取与所述视频相关的关键词、对所述视频进行裁剪、对所述视频进行旋转加工、对所述视频进行色彩处理、获取所述视频的关联视频、以及获取所述视频的更高清晰度的版本。视频往往携带较大的内容量,并且需要较大的处理资源。上述处理命令针对视频内容数据,能够显著提高用户体验。According to some embodiments, the content data may represent video. The corresponding processing command may be at least one of the following items: obtain keywords related to the video, crop the video, rotate the video, perform color processing on the video, obtain all Associated videos of the above videos, and obtain higher-resolution versions of the videos. Videos often carry a large amount of content and require large processing resources. The above processing commands are aimed at video content data, which can significantly improve user experience.
根据一些实施例,内容数据可以表示事件。对应的处理命令可以是以下各项中的至少一项:获取与所述事件相关的关键词、获取所述事件的稀缺度、获取所述事件的话题度、获取与所述事件相关的图片、获取与所述事件相关的视频、获取与所述事件相关的文章。事件作为非典型的内容数据,对其的上述处理能够以智能的方式提取出事件的关键点、流行度、价值等,有利于用户的体验,并且尤其是在用户需要基于时间进行创作的背景下非常有用。例如,关键词可以表征事件的核心特征,获取稀缺度可以表征事件在网络中是否有相关文章以及文章的点击量等、话题度可以表征相关创作是否会带来较高的价值,相关的图片或视频等则有利于在基于该事件进行创作时减少用户的手动搜索,从而节省资源和提高效率。According to some embodiments, content data may represent events. The corresponding processing command may be at least one of the following items: obtaining keywords related to the event, obtaining the scarcity of the event, obtaining the topic degree of the event, obtaining pictures related to the event, Obtain videos related to the event, and obtain articles related to the event. Events are atypical content data. The above-mentioned processing of events can intelligently extract the key points, popularity, and value of events, which is beneficial to user experience, especially in the context of users needing to create based on time very useful. For example, keywords can characterize the core features of an event, acquisition scarcity can represent whether there are related articles in the network and the number of clicks on the articles, etc., topic degree can represent whether related creations will bring higher value, related pictures or Videos and the like are beneficial to reduce the user's manual search when creating based on the event, thereby saving resources and improving efficiency.
如果将内容处理功能的代码耦合在同一模块,尤其是在同一个模块中完成流量来源过滤、业务逻辑与校验、数据库连接、网络调用等全部的功能,前端请求直接到达该模块,无法很好地区分功能。将代码耦合在同一模块也会导致开发迭代效率慢,改动小部分也可能影响到其他模块的功能,所以每次上线的测试回归成本大。此外,对于长耗时的接口如果采用简单的重试轮询策略,会导致策略服务耗时长,浪费后端的机器资源,并且需要减少全流程的耗时以保证用户体验。基于此,本公开针对结合产品功能与服务依赖,提供一种服务架构的设计方案,提升代码的开发效率,优化用户的耗时体验,并且提供适当的安全校验。If the code of the content processing function is coupled in the same module, especially in the same module to complete all functions such as traffic source filtering, business logic and verification, database connection, network call, etc., the front-end request directly reaches the module, which will not work well area distinguishing function. Coupling the code in the same module will also lead to slow development iteration efficiency, and small changes may also affect the functions of other modules, so the test regression cost for each online test is high. In addition, if a simple retry polling strategy is used for long-time-consuming interfaces, the policy service will take a long time, wasting the back-end machine resources, and it is necessary to reduce the time-consuming of the whole process to ensure user experience. Based on this, the present disclosure provides a service architecture design scheme for combining product functions and service dependencies, improves code development efficiency, optimizes time-consuming experience for users, and provides appropriate security checks.
图3是根据本公开的实施例的内容处理系统300的示例架构。FIG. 3 is an example architecture of a
内容处理系统300可以包括接入层301和服务层302:The
接入层301被配置成获取第一请求。第一请求包括内容数据和针对内容数据的处理命令。接入层301还被配置成响应于第一请求的来源满足安全性指标,向服务层302发送第二请求。第二请求包括内容数据和处理命令,并且第二请求不包括第一请求的来源。The access layer 301 is configured to obtain the first request. The first request includes content data and a processing command for the content data. The access layer 301 is further configured to send a second request to the service layer 302 in response to the source of the first request satisfying the security criterion. The second request includes content data and processing commands, and the second request does not include the source of the first request.
服务层302被配置成根据处理命令对内容数据进行处理。The service layer 302 is configured to process content data according to processing commands.
再次参考图3,接入层301可以从表示层311也可以从网关321获取第一请求。来自表示层的请求可以表征来自本地、内部网络或者本产品线的请求。来自网关321的请求可以表征来自外部来源例如外部网络或者其他产品的请求。在一些实施例中,内容处理系统300可以包括表示层311。表示层被配置成解析前端请求以获得内容数据和处理命令;并且向接入层发送第一请求。由此,接入层能够获取经过预先处理的请求命令,进一步实现模块的解耦和轻量级实现。在其他的示例中,可以不存在表示层,或者这里描述的表示层的功能可以并入前端等,并且由接入层获取内容数据和处理命令的任何其他方法在这里都是适用的。Referring again to FIG. 3 , the access layer 301 may obtain the first request from the presentation layer 311 or from the gateway 321 . Requests from the presentation layer can represent requests from the local, internal network, or this product line. Requests from gateway 321 may represent requests from external sources such as external networks or other products. In some embodiments,
对于长耗时的特征计算,接入层与服务层之间的连接可能已经因为超时而关闭。此时,可以采用生产者-消费者模型,由服务层将对应图片的计算结果发布到异步的消息队列中,由消息队列通知表示层,表示层接收到消息后将图片特征的计算结果放入表示层的缓存中。当前端下一次重试或轮询时,表示层能够检查缓存中的结果并直接响应。由此,不需要再额外请求服务层,减少了网络耗时和开销。For long-time-consuming feature calculations, the connection between the access layer and the service layer may have been closed due to timeout. At this time, the producer-consumer model can be adopted. The service layer publishes the calculation results of the corresponding pictures to the asynchronous message queue, and the message queue notifies the presentation layer. After receiving the message, the presentation layer puts the calculation results of picture features into In the cache of the presentation layer. When the front end retries or polls next time, the presentation layer can check the results in the cache and respond directly. Therefore, there is no need to request an additional service layer, which reduces network time consumption and overhead.
在一些实施例中,服务层302还被配置成在根据处理命令对内容数据进行处理以生成结果数据后,响应于第二请求超时,创建消息队列。服务层302还被配置成通过消息队列将结果数据发送到表示层。由此,在例如计算量大或者网络繁忙等情况下,如果请求超时则建立消息队列,直接将结果数据发送到表示层。由于服务层不必知道数据的来源,而只需要遵循如果超时则发布到消息队列、如果不超时则回传的简单逻辑即可。消息队列是在连接关闭后由服务层建立的。由于来自外部的流量有单次网络请求上限,所以不会存在超时的问题,因此也不会存在消息队列。由此,不再需要长耗时接口的轮询,节省计算资源,提高计算稳定性。In some embodiments, the service layer 302 is further configured to create a message queue in response to the second request timeout after processing the content data according to the processing command to generate result data. The service layer 302 is also configured to send the result data to the presentation layer via a message queue. Therefore, in the case of a large amount of calculation or a busy network, etc., if the request times out, a message queue is established, and the result data is directly sent to the presentation layer. Since the service layer does not need to know the source of the data, it only needs to follow the simple logic of posting to the message queue if it times out, and sending it back if it does not time out. Message queues are created by the service layer after the connection is closed. Since the traffic from the outside has a single network request upper limit, there will be no timeout problem, so there will be no message queue. As a result, long-time-consuming interface polling is no longer required, computing resources are saved, and computing stability is improved.
在一些实施例中,结合图2描述的方法可以在图3的接入层301侧实行。In some embodiments, the method described in conjunction with FIG. 2 may be implemented at the side of the access layer 301 in FIG. 3 .
下面将描述图2所述的内容处理方法的一些替选实施例。Some alternative embodiments of the content processing method described in Fig. 2 will be described below.
根据一些实施例,第一请求还包括服务接口标识,并且接入层向服务层发送第二请求包括接入层将第二请求发送到服务层中的服务接口。服务接口标识能够指示所述服务层中的与内容数据和处理命令对应的服务接口,例如是调用图片处理模块的借口还是调用视频处理模块的接口等。从第一请求中获取服务接口并且直接将请求参数转发到对应的接口,由此免除了对请求的进一步计算,而只需要根据路由规则转发请求。由此,实现了功能的恰当分布,减轻了计算量,并且能够进一步实现模块之间的解耦。According to some embodiments, the first request further includes a service interface identification, and the access layer sending the second request to the service layer includes the access layer sending the second request to the service interface in the service layer. The service interface identifier can indicate the service interface corresponding to the content data and the processing command in the service layer, for example, it is an interface for calling the image processing module or an interface for calling the video processing module. The service interface is obtained from the first request and the request parameters are directly forwarded to the corresponding interface, thus avoiding further calculation of the request and only needing to forward the request according to the routing rules. In this way, the proper distribution of functions is realized, the amount of calculation is reduced, and the decoupling between modules can be further realized.
上述服务接口标识的提取可以通过表示层来实现。根据本公开的一些实施例的架构,表示层是与前端直接交互的第一个模块。也就是说,除了对前端请求进行处理以解析获得请求的数据和处理命令之外,表示层还可以对来自前端的请求参数进行初步处理,以选择将调用的服务层能力,从而使得接入层不再需要对请求参数进行处理,只负责基于表示层已经选好的能力将由表示层传入的数据传递到对应的服务层。The extraction of the above service interface identifier can be realized through the presentation layer. According to the architecture of some embodiments of the present disclosure, the presentation layer is the first module that directly interacts with the front end. That is to say, in addition to processing the front-end request to parse the requested data and process commands, the presentation layer can also perform preliminary processing on the request parameters from the front-end to select the service layer capabilities to be called, so that the access layer It is no longer necessary to process the request parameters, and is only responsible for passing the data passed in from the presentation layer to the corresponding service layer based on the capabilities selected by the presentation layer.
根据一些实施例,内容数据满足以下各项中的至少一项:内容数据是适合于处理命令的格式,内容数据来自有处理权限的用户,或者内容数据来自登录用户。这意味着在由方法200进行处理之前,内容数据已经经过了初步的数据校验。由此,能够进一步实现模块的解耦和每个功能模块的轻量级实现。According to some embodiments, the content data satisfies at least one of the following: the content data is in a format suitable for processing commands, the content data comes from a user with processing rights, or the content data comes from a logged-in user. This means that the content data has already undergone a preliminary data check before being processed by the method 200 . Thus, the decoupling of modules and the lightweight implementation of each functional module can be further realized.
上述过程可以通过如图3所述的表示层311来实现。例如,表示层可以对内容数据进行初步校验,判断内容数据是适合于处理命令的格式(例如,针对图片裁剪处理命令,内容数据是.JPG或.BMP格式等),判断内容数据来自登录用户(例如,对来自前端请求的用户登录态进行判断),或者内容数据来自有处理权限的用户等。表示层还可以可以用来完成请求参数的合法性校验、前端响应字段格式化、数据日志打点等处理。数据日志打点是指某接口中某功能的点击量,或某状态的统计量等。可以在表示层的指定位置增加数据日志文件。对于一些和业务强耦合的校验,比如用户登录态、用户权限等,可以在表示层获取对应用户的数据并完成检查。在表示层还可以完成请求参数是否为空、是否是需要的数组类型等过滤。当然,本公开不限于从表示层311接收数据的场景,也不要求系统300中一定包括表示层或类似功能的单独模块。例如,上述处理可以通过前端来实现等。或者,在例如从网关321接受第一请求的场景下,可以事先对接口进行限定,以使得外部来源的请求需要遵循一定的规则或者来自外部来源的数据需要先经过一定的预先处理才能访问接入层。The above process can be realized through the presentation layer 311 as shown in FIG. 3 . For example, the presentation layer can perform preliminary verification on the content data, judge that the content data is in a format suitable for processing commands (for example, for a picture cropping processing command, the content data is in .JPG or .BMP format, etc.), and judge that the content data comes from the logged-in user (For example, judging the user login status requested from the front end), or the content data comes from a user with processing authority, etc. The presentation layer can also be used to verify the validity of request parameters, format front-end response fields, and manage data logs. Data log management refers to the click volume of a certain function in a certain interface, or the statistics of a certain state, etc. Data log files can be added at specified locations in the presentation layer. For some checks that are strongly coupled with the business, such as user login status, user permissions, etc., the corresponding user data can be obtained and checked at the presentation layer. In the presentation layer, it is also possible to filter whether the request parameter is empty, whether it is the required array type, etc. Of course, the present disclosure is not limited to the scenario of receiving data from the presentation layer 311 , nor does it require that the
根据一些实施例,内容数据是内容的内网存储版本或指向内网中存储要处理的内容的位置的链接。这样的本地存储版本能够提高计算效率。例如,这样的处理也可以通过如图3所述的表示层311来实现,但是如上所述,本公开不限于此。According to some embodiments, the content data is an intranet stored version of the content or a link to a location in the intranet where the content to be processed is stored. Such a locally stored version can improve computational efficiency. For example, such processing can also be implemented through the presentation layer 311 as described in FIG. 3 , but as mentioned above, the present disclosure is not limited thereto.
此外,在和前端的请求交互时,存在一些用于方便前端进行展示而单独拆分出来的个性化的字段处理,例如用于前端对模板进行区分的资源的类型、或者文案的拼接等。这些处理由于不涉及核心功能的字段输出,因此也可以由表示层或者表示层配合前端来完成。In addition, when interacting with the front-end request, there are some personalized field processing that is separated separately for the convenience of the front-end display, such as the type of resource used by the front-end to distinguish templates, or the splicing of copywriting, etc. Since these processes do not involve field output of core functions, they can also be completed by the presentation layer or the presentation layer in cooperation with the front end.
根据一些实施例,在向所述服务层发送所述第二请求之前,由所述接入层检查所述服务层的对应端口是否可用。发送第二请求包括响应于服务层的对应端口的状态为可用,向服务层发送第二请求。在调用服务层的服务之前对可用状态进行检查。由此,能够避免对超时或者故障的服务层机器的调用,增加计算效率和稳定性。According to some embodiments, before sending the second request to the service layer, it is checked by the access layer whether the corresponding port of the service layer is available. Sending the second request includes sending the second request to the service layer in response to the status of the corresponding port of the service layer being available. Check availability before invoking services in the service layer. Thus, calls to timeout or faulty service layer machines can be avoided, increasing computing efficiency and stability.
上述过程可以由例如图3的接入层301来实现。接入层可以检查服务层的机器的可用状态。例如,如果出现超过一定次数连接失败,就视为该机器的服务不可用,下一个请求流量就分配到其他机器。The above process can be realized by, for example, the access layer 301 in FIG. 3 . The access layer can check the availability status of the machines in the service layer. For example, if there are more than a certain number of connection failures, it is considered that the service of the machine is unavailable, and the next request traffic will be allocated to other machines.
接入层还能够在服务层的不同端口和机器之间分配流量。例如,接入层可以根据随机的策略在不同的机器或端口间分配流量,以避免同一个机器上的流量过大。根据一些实施例,发送第二请求包括基于流量控制指标向服务层发送第二请求。流量控制指标可以是基于机器、计算量或者预定分配策略的每端口请求量或者每端口计算量。接入层能够实现流量控制和负载均衡。由此,一方面能够实现模块的解耦,另一方面可以提升系统的运行稳定性,避免流量超载以及由此引发的故障等问题。The access layer is also able to distribute traffic among different ports and machines in the service layer. For example, the access layer can distribute traffic among different machines or ports according to a random policy to avoid excessive traffic on the same machine. According to some embodiments, sending the second request includes sending the second request to the service layer based on the flow control indicator. The flow control indicator may be the request amount per port or the calculation amount per port based on the machine, calculation amount, or a predetermined allocation strategy. The access layer enables traffic control and load balancing. As a result, on the one hand, the decoupling of the modules can be achieved, and on the other hand, the stability of the system operation can be improved, and problems such as traffic overload and resulting failures can be avoided.
接入层位于服务层之上,能够所有的请求流量做负载均衡和路由转发。接入层除了连接到表示层之外,还能够连接到网关。网关用于接入外部来源的调用。来自外部来源例如其他产品线或团队调用本功能时,这部分流量就从网关进行接入。可以在网关完成外部流量来源的权限检验、区分来源进行限流等处理。为防止外部流量包含各种网络安全问题,网关需要控制访问权限,还要避免预期外的流量过大冲垮服务,所以需要对来源进行检查和限流。接入层能够接收来自表示层和网关两者的请求。接收请求后,接入层可以将相同的接口按照相同的路由转发规则分配到服务层。The access layer is located above the service layer and can perform load balancing and routing forwarding for all request traffic. In addition to connecting to the presentation layer, the access layer can also connect to the gateway. Gateways are used to access calls from external sources. When this function is invoked from external sources such as other product lines or teams, this part of the traffic is accessed through the gateway. The gateway can complete the authority inspection of external traffic sources, distinguish sources for flow limiting, and other processing. In order to prevent external traffic from containing various network security issues, the gateway needs to control access rights and prevent unexpected traffic from overwhelming the service, so it is necessary to check and limit the source. The access layer is capable of receiving requests from both the presentation layer and the gateway. After receiving the request, the access layer can assign the same interface to the service layer according to the same routing and forwarding rules.
根据一些实施例,所述方法还包括在根据处理命令对内容数据进行处理以生成结果数据后,响应于第二请求未超时,由服务层向接入层发送结果数据作为对第二请求的响应;以及由接入层将结果数据回传到第一请求的来源。由此,可以直接从服务层接收结果数据,并且服务层仍然不需要知道请求来源,仅仅回传即可,节省了服务层的负担。基于保存在接入层中的数据来源信息,例如该请求原本是来自表示层还是网关,继而将生成的结果数据进行回传,实现了独立的模块和便捷的数据回传机制。According to some embodiments, the method further includes, after processing the content data according to the processing command to generate the result data, in response to the second request not timing out, sending the result data by the service layer to the access layer as a response to the second request ; and returning the result data by the access layer to the source of the first request. As a result, the result data can be received directly from the service layer, and the service layer still does not need to know the source of the request, and only needs to send it back, saving the burden on the service layer. Based on the data source information stored in the access layer, such as whether the request originally came from the presentation layer or the gateway, and then return the generated result data, an independent module and a convenient data return mechanism are realized.
根据一些实施例,从表示层接收第一请求,并且所述方法还包括在根据处理命令对内容数据进行处理以生成结果数据后,响应于第二请求超时,在服务层与表示层之间创建消息队列。之后,由服务层将结果数据推送到消息队列。这样的设计采取了如果请求超时则建立消息队列的思路。因为来自外部来源的请求有单次访问上限,不会出现超时问题,因此超时的时候来源必定是表示层,此时不需要对来源进行判断,直接在服务层和表示层之间建立消息队列即可。因此,不再需要长耗时接口的轮询,节省每个模块的计算资源,并且增加计算效率。According to some embodiments, the first request is received from the presentation layer, and the method further includes, after processing the content data according to the processing command to generate the result data, in response to the second request timeout, creating an message queue. After that, the result data is pushed to the message queue by the service layer. This design adopts the idea of establishing a message queue if the request times out. Because the request from the external source has a single access limit, there will be no timeout problem, so when the timeout occurs, the source must be the presentation layer. At this time, there is no need to judge the source, and a message queue is directly established between the service layer and the presentation layer. Can. Therefore, long time-consuming interface polling is no longer required, the computing resources of each module are saved, and computing efficiency is increased.
服务层是内容计算功能实现的核心部分。服务层可以连接关系型数据库、全文检索引擎、缓存等,或者通过网络调用其他的第三方服务获取更多的数据。根据一些实施例,服务层通过调用以下中的至少一项来生成结果数据:关系型数据库、全文检索引擎、缓存、第三方服务。结果数据的生成方式。由此,能够准确地对所需内容进行处理。服务层会根据不同的内容类型,提供不同的响应。例如,对于图片内容,能够计算图片的清晰度、信息熵等特征,并根据阈值标记每张图片的结果;能够根据期望的图片尺寸进行裁剪,将图片压缩并转存生成新的链接;能够进行版权图检索,根据图片的标签在数据库中查询相似的图片,提供正版图片避免创作风险。对于文本内容,能够识别长短文本中的错别字并提示纠正,能够提取出文本的关键词作为话题或标题,能够使用文本的关键词在数据库中检索相关的内容。对于视频内容,能够计算视频特征,检查视频是否模糊,生成清晰度更高的视频链接。对于事件内容,能够检索对应事件在全网文章中的稀缺度,并且能够获取该事件的相关文章、动态、视频等。可以理解的是,服务层的功能不限于此,并且可以响应于任何内容数据和对应的处理命令。The service layer is the core part of the realization of the content computing function. The service layer can connect to relational databases, full-text search engines, caches, etc., or call other third-party services through the network to obtain more data. According to some embodiments, the service layer generates result data by invoking at least one of the following: relational database, full-text search engine, cache, and third-party service. How the resulting data was generated. As a result, desired content can be accurately processed. The service layer will provide different responses according to different content types. For example, for the content of pictures, it is possible to calculate the characteristics of pictures such as sharpness and information entropy, and mark the results of each picture according to the threshold value; it can crop according to the desired picture size, compress and dump the picture to generate a new link; Copyright image retrieval, query similar images in the database according to the label of the image, and provide genuine images to avoid creative risks. For text content, it can identify typos in long and short texts and prompt for corrections, can extract text keywords as topics or titles, and can use text keywords to retrieve related content in the database. For video content, it can calculate video features, check whether the video is blurry, and generate a higher-definition video link. For the content of the event, it is possible to retrieve the scarcity of the corresponding event in the articles of the whole network, and to obtain related articles, dynamics, videos, etc. of the event. It can be understood that the function of the service layer is not limited thereto, and can respond to any content data and corresponding processing commands.
根据一些实施例,服务层能够对多个内容数据和多个处理命令进行批量处理。服务层的并发处理能力能够实现数据的大批量处理,增加计算效率。服务层的并发处理方式将在下文结合图4(a)进行更详细的描述。例如,可以将服务层中并发处理的逻辑描述为先并行处理特征,再并行处理内容。通过两级并行处理,能够进一步增加计算效率。根据一些实施例,批量处理包括:针对分别对应于所述多个处理命令的多个处理特征,建立多个协程,所述多个协程中的每个协程对应于所述多个处理特征中的每个处理特征;并行处理所述多个协程;并且在所述多个协程中的每个协程内,针对对应的处理特征并行处理所述多个内容数据。According to some embodiments, the service layer is capable of batch processing multiple content data and multiple processing commands. The concurrent processing capability of the service layer can realize large-scale data processing and increase computing efficiency. The concurrent processing method of the service layer will be described in more detail in conjunction with Fig. 4(a) below. For example, the logic for concurrent processing in the service layer can be described as processing features in parallel first, and then processing content in parallel. Through two-stage parallel processing, the computational efficiency can be further increased. According to some embodiments, the batch processing includes: establishing a plurality of coroutines for a plurality of processing features respectively corresponding to the plurality of processing commands, each coroutine in the plurality of coroutines corresponding to the plurality of processing Each of the processing features; processing the plurality of coroutines in parallel; and within each of the plurality of coroutines, processing the plurality of content data in parallel for the corresponding processing feature.
在这里,处理特征指的是与处理相关的属性。例如,针对图片处理,特征可以是图像清晰度/是否存在二维码/图片大小等。针对视频可以是清晰度、长度等。针对文本可以是内容属性、错别字、流畅度、相关话题等。先计算特征再处理内容可以以两次并发处理的方式来更高效地实现批处理。Here, processing characteristics refer to attributes related to processing. For example, for image processing, features can be image clarity/presence of QR code/image size, etc. For video, it can be resolution, length, etc. For the text, it can be content attributes, typos, fluency, related topics, etc. Computing features first and then processing content can achieve batch processing more efficiently by doing two concurrent processing.
下面以图片计算为例,结合图4(a)描述服务层的并发处理方式。容易理解的是,服务层的并发处理方式并不限于图片内容的计算,并且其他类型和格式的内容处理与计算都可以按照相似的思路与逻辑来处理。The following takes image computing as an example, and describes the concurrent processing method of the service layer in conjunction with Figure 4(a). It is easy to understand that the concurrent processing method of the service layer is not limited to the calculation of image content, and the content processing and calculation of other types and formats can be handled according to similar ideas and logic.
服务层中的接口支持多特征、多内容的批量处理。在批量处理中,输入参数中指定一组特征,分别为特征1、特征2……特征n,并且指定一组内容,分别为内容1、内容2……内容m。例如,特征1至特征n可以分别是与剪裁处理、清晰度处理、获取有版权相似图片、提取关键词对应的特征等。例如,内容1至内容m可以是m个不同的图片,这m个不同个图片分别需要经历上述特征1至特征n方面的处理。当然,内容不限于图片,并且图4(b)示出了根据本公开的实施例的服务层的示例功能示意图。The interface in the service layer supports batch processing of multiple features and multiple contents. In batch processing, a set of features is specified in the input parameters, which are feature 1, feature 2...feature n, and a set of content is specified, which are content 1, content 2...content m. For example, feature 1 to feature n may be features corresponding to clipping processing, sharpness processing, obtaining similar images with copyright, and extracting keywords, respectively. For example, content 1 to content m may be m different pictures, and these m different pictures need to undergo the above-mentioned processing of feature 1 to feature n respectively. Of course, the content is not limited to pictures, and Fig. 4(b) shows an example functional diagram of the service layer according to an embodiment of the present disclosure.
在并发处理多个特征时,对于其中的每个特征开启的时间点不一样,依次激活多个处理单元的时间差构成一个循环,在这里称为“第一次循环C1”。循环结束开启并发之后,可以由多个处理单元同时处理多个特征。例如,由多个处理单元同时并分别处理剪裁处理、清晰度处理、获取有版权相似图片、提取关键词等特征。具体地,在第一次循环C1中,为每个特征开启一个协程用于处理,每个特征之间可以视为在同一个时间点开始并发的。接下来,并发处理多个内容,对于其中的每个内容开启的时间点的时间差构成一个循环,在这里称为“第二次循环C2”。第二次循环结束,由多个处理单元中的对应处理单元,针对每个特征,对多个内容进行并发处理。类似地,在第二次循环中,在每个特征内,为批量处理中的每个内容开启一个协程以用于计算。由此,每个特征内的内容间也可以视为是并发的。例如,由第一处理单元对多个图片1至图片m并行执行剪裁操作,由第二处理单元对多个图片1至图片m并行执行获取有版权相似图片的操作等等,并且这些处理单元也是可以并发执行的。When multiple features are processed concurrently, the time points for each feature to be turned on are different, and the time difference between sequentially activating multiple processing units constitutes a cycle, which is referred to as "the first cycle C1" here. After the loop ends and concurrency is enabled, multiple processing units can process multiple features at the same time. For example, multiple processing units simultaneously and separately process features such as cropping, definition processing, obtaining copyrighted similar images, and extracting keywords. Specifically, in the first cycle C1, a coroutine is started for each feature for processing, and each feature can be considered to be concurrent at the same time point. Next, a plurality of contents are processed concurrently, and the time difference between the opening time points of each of the contents constitutes a cycle, which is referred to as "the second cycle C2" here. At the end of the second cycle, the corresponding processing units among the multiple processing units perform concurrent processing on multiple contents for each feature. Similarly, in the second loop, within each feature, a coroutine is started for each item in the batch for computation. Thus, the content within each feature can also be considered concurrent. For example, the first processing unit executes the trimming operation on multiple pictures 1 to picture m in parallel, and the second processing unit executes the operation of obtaining copyrighted similar pictures on multiple pictures 1 to picture m in parallel, etc., and these processing units are also can be executed concurrently.
如果在某特征的某内容出现计算失败,则单独关闭对应的协程以抛弃结果,避免影响其他协程的处理。在等待所有特征的所有内容的结果计算完成之后,将结果存入到服务层对应的缓存中。可选地,可以在将结果存入到服务层对应的缓存中之前,先对结果按规范进行格式化处理。由此,在下次接收到对相同内容请求时,可以直接复用缓存中的计算结果。此后,如果接入层的请求还没有关闭连接,则直接在这次连接中响应计算结果。如果如果接入层的请求已经因为超时而关闭,则可以通过上文描述的消息队列的方式来响应计算结果。If there is a calculation failure in a certain content of a feature, the corresponding coroutine is closed separately to discard the result, so as to avoid affecting the processing of other coroutines. After waiting for the calculation of the results of all contents of all features to be completed, store the results in the corresponding cache of the service layer. Optionally, before storing the result in the cache corresponding to the service layer, the result may be formatted according to the specification. Thus, when a request for the same content is received next time, the calculation results in the cache can be directly reused. Afterwards, if the request of the access layer has not closed the connection, it will directly respond to the calculation result in this connection. If the request of the access layer has been closed due to timeout, the calculation result can be responded to through the message queue described above.
下面结合图5(a),描述根据本公开的另一个实施例的示例内容处理方法500的流程。The flow of an example content processing method 500 according to another embodiment of the present disclosure will be described below with reference to FIG. 5( a ).
在步骤S501处,由前端获取前端请求,并将其传送到表示层。例如,可以与前端请求一起发送待处理的内容,或者待处理的内容或其链接可以包括在前端请求内,并且本公开不限于此处的消息传递方式。At step S501, the front end obtains the front end request and transmits it to the presentation layer. For example, the content to be processed may be sent together with the front-end request, or the content to be processed or a link thereof may be included in the front-end request, and the present disclosure is not limited to the message delivery method here.
在步骤S502处,表示层解析来自前端的请求以获得内容数据和处理命令,并且向接入层发送第一请求。通过第一请求传递到接入层的数据可以包括内容数据(例如,保存内容数据文件的本地链接)和处理命令等(例如,是裁剪还是清晰度处理)。表示层对来自前端请求进行解析还可以包括对内容数据进行初步处理。例如,初步处理可以包括将待处理的内容(例如,图片文件等)保存到内网,并读取保存的文件的内网链接作为内容数据。表示层对内容数据进行处理可以包括进行细粒度请求参数的规范性(或称合法性)校验,包括校验传入的内容是否是合法格式(例如对于图片,jpg格式、gif格式等),校验请求参数,校验用户是否是合法用户(用户是否登录,用户权限等)。通过第一请求传递到接入层的数据可以包括数据来源。数据来源可以向接入层表示本请求来自于“表示层”而非外部来源或外部网关。通过第一请求传递到接入层的数据可选地还可以包括服务接口标识,其表征需要调用的服务层中的服务接口。也就是说,表示层还对来自前端的请求参数进行初步处理,以选择将调用的服务层能力,从而使得接入层不再需要对请求参数进行处理,只负责基于表示层已经选好的能力将由表示层传入的数据传递到对应的服务层。At step S502, the presentation layer parses the request from the front end to obtain content data and processing commands, and sends a first request to the access layer. The data delivered to the access layer through the first request may include content data (for example, save a local link of the content data file) and processing commands (for example, cropping or resolution processing). Parsing the request from the front end by the presentation layer may also include preliminary processing of the content data. For example, the preliminary processing may include saving the content to be processed (for example, picture files, etc.) to the intranet, and reading the intranet link of the saved file as content data. The processing of content data by the presentation layer may include standardization (or legality) verification of fine-grained request parameters, including verification of whether the incoming content is in a legal format (for example, for pictures, jpg format, gif format, etc.), Verify the request parameters and verify whether the user is a legal user (whether the user is logged in, user permissions, etc.). The data communicated to the access layer by the first request may include a data source. The data source can indicate to the access layer that the request is from the "presentation layer" and not an external source or external gateway. The data transmitted to the access layer through the first request may optionally further include a service interface identifier, which represents a service interface in the service layer that needs to be invoked. That is to say, the presentation layer also preliminarily processes the request parameters from the front end to select the service layer capabilities to be called, so that the access layer no longer needs to process the request parameters, and is only responsible for the capabilities that have been selected based on the presentation layer Pass the data passed in from the presentation layer to the corresponding service layer.
在步骤S503处,接入层接收第一请求,基于满足转发指标,向服务层发送第二请求。第二请求可以包括内容数据和处理命令以供服务层进行处理。例如,接入层可以基于预定路由规则,或者可以基于表示层的请求中的服务接口标识,将请求中的内容数据和处理命令转发到服务层的对应接口。不需要将请求中的来源信息等转发到服务层。步骤S503中的转发指标可以包括安全性校验和流量控制指标。接入层可以基于数据来源即表示层或外部来源网关等,判断该来源是否能够访问服务层。接入层可以对来自不同来源和去往不同服务层端口的流量进行分配和均衡。接入层可以响应于满足安全性校验和流量控制指标后,将包括内容和处理参数的数据传递给服务层对应的接口。At step S503, the access layer receives the first request, and based on satisfying the forwarding index, sends the second request to the service layer. The second request may include content data and processing commands for processing by the service layer. For example, the access layer may forward the content data and processing commands in the request to the corresponding interface of the service layer based on predetermined routing rules, or based on the service interface identifier in the request of the presentation layer. There is no need to forward origin information etc. in the request to the service layer. The forwarding indicators in step S503 may include security check and flow control indicators. The access layer can judge whether the source can access the service layer based on the data source, that is, the presentation layer or external source gateway, etc. The access layer can distribute and balance traffic from different sources and to different service layer ports. The access layer may pass the data including content and processing parameters to the corresponding interface of the service layer in response to satisfying the security check and the flow control index.
在步骤S504处,服务层接收第二请求,基于处理命令对内容数据进行处理,生成结果数据。服务层可以通过调用各种数据库或者外部功能来对内容数据进行处理。服务层可以有多种不同的处理能力。例如,对于图片内容数据,可以生成裁剪的图片或更高清晰度的图片作为结果数据;对于文本内容数据,可以生成纠错后的文本、关键词、相关话题等作为结果数据。可以理解的是,本公开不限于此。At step S504, the service layer receives the second request, processes the content data based on the processing command, and generates result data. The service layer can process content data by calling various databases or external functions. The service layer can have many different processing capabilities. For example, for picture content data, cropped pictures or higher-definition pictures can be generated as result data; for text content data, error-corrected text, keywords, related topics, etc. can be generated as result data. It is understood that the present disclosure is not limited thereto.
在步骤S505处,判断请求是否超时。At step S505, it is determined whether the request times out.
如果请求超时,步骤转入S506,在服务层与表示层之间建立消息队列。服务层将结果数据推送到消息队列。在步骤S507处,表示层从消息队列中读取结果,并且将其保存到缓存。接下来,在步骤S508处,表示层响应于再次接收到来自前端的轮询,将缓存中的结果发送回前端。If the request times out, the step goes to S506, and a message queue is established between the service layer and the presentation layer. The service layer pushes the resulting data to a message queue. At step S507, the presentation layer reads the result from the message queue and saves it to the cache. Next, at step S508, the presentation layer sends the result in the cache back to the front end in response to receiving the polling from the front end again.
之后,转到步骤S509,由前端对数据进行处理和呈现,并且内容处理过程结束。Afterwards, go to step S509, the data is processed and presented by the front end, and the content processing process ends.
如果请求未超时,步骤转入S510,服务层将直接在本次请求中,例如作为对第二请求的响应,将结果数据传送回接入层。之后,接入层结合数据来源信息,回传结果数据。例如,接入层结合本身存储的数据来源信息表征该请求和对应数据内容来源于表示层还是网关,将数据传回对应的表示层或网关。在数据回传到表示层的情况下,表示层将数据传回前端。表示层在此不需要再对数据进行处理,或者表示层可以进行一些不涉及核心功能的拼接、展示、个性化等的处理。如果数据回传给网关,则由网关以本领域人员将容易理解的任何方式将结果数据转发到对应的网络设备,并且在此省略网关情况下的数据流通过程。之后,可以转到由前端对数据进行处理和呈现的步骤S509,内容处理过程结束。If the request has not timed out, the step goes to S510, and the service layer will directly send the result data back to the access layer in this request, for example, as a response to the second request. After that, the access layer combines the data source information and returns the result data. For example, the access layer combines the data source information stored by itself to indicate whether the request and the corresponding data content come from the presentation layer or the gateway, and sends the data back to the corresponding presentation layer or gateway. In the case of data being passed back to the presentation layer, the presentation layer passes the data back to the front end. The presentation layer does not need to process the data, or the presentation layer can perform splicing, display, personalization, etc. that do not involve core functions. If the data is passed back to the gateway, the resulting data is forwarded by the gateway to the corresponding network device in any manner that would be easily understood by a person skilled in the art, and the data circulation process in the case of the gateway is omitted here. Afterwards, it may turn to step S509 where the front end processes and presents the data, and the content processing process ends.
通过解耦模块内不同功能区,划分表示层、服务层等,每个分层各自负责独立的功能点,避免在同一模块内互相牵连,同时每个分层可以独立进行升级。整体流程能够更规范地控制流量来源与转发,并能够对外提供服务层抽象后的接口与能力,作为服务化的中台。提升迭代效率,降低研发成本,优化接口耗时。图5(b)示出了根据本公开的另一个实施例的内容处理系统的示例架构图。By decoupling different functional areas in the module, dividing the presentation layer, service layer, etc., each layer is responsible for an independent function point, avoiding mutual involvement in the same module, and each layer can be upgraded independently. The overall process can control traffic sources and forwarding in a more standardized manner, and can provide external interfaces and capabilities after the abstraction of the service layer as a service center. Improve iteration efficiency, reduce R&D costs, and optimize interface time-consuming. Fig. 5(b) shows an example architecture diagram of a content processing system according to another embodiment of the present disclosure.
下面结合图6描述根据本公开的另一方面的内容处理装置600。内容处理装置600可以包括接入层601和服务层602。接入层601可以被配置成由接入层获取第一请求,所述第一请求包括内容数据和针对所述内容数据的处理命令。服务层602可以被配置成响应于所述第一请求的来源满足安全性指标,向服务层发送第二请求。服务层用于根据所述处理命令对所述内容数据进行处理。所述第二请求包括所述内容数据和所述处理命令,并且所述第二请求不包括所述第一请求的所述来源。A
根据本公开的另一方面,还提供一种计算设备,可以包括:处理器;以及存储程序的存储器,程序包括由处理器执行时使处理器执行上述内容处理方法的指令。According to another aspect of the present disclosure, there is also provided a computing device, which may include: a processor; and a memory storing a program, where the program includes instructions for causing the processor to execute the above content processing method when executed by the processor.
根据本公开的又一方面,还提供一种存储程序的计算机可读存储介质,程序可以包括在由服务器的处理器执行时使得服务器执行上述内容处理方法的指令。According to still another aspect of the present disclosure, there is also provided a computer-readable storage medium storing a program, and the program may include instructions for causing the server to execute the above content processing method when executed by a processor of the server.
参考图7,现将描述可以作为本公开的服务器或客户端的计算设备700的结构框图,其是可以应用于本公开的各方面的硬件设备的示例。Referring to FIG. 7 , a structural block diagram of a
计算设备700可以包括(可能经由一个或多个接口)与总线702连接或与总线702通信的元件。例如,计算设备700可以包括总线702、一个或多个处理器704、一个或多个输入设备706以及一个或多个输出设备708。一个或多个处理器704可以是任何类型的处理器,并且可以包括但不限于一个或多个通用处理器和/或一个或多个专用处理器(例如特殊处理芯片)。处理器704可以对在计算设备700内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个计算设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图7中以一个处理器704为例。
输入设备706可以是能向计算设备700输入信息的任何类型的设备。输入设备706可以接收输入的数字或字符信息,以及产生与内容处理计算设备的用户设置和/或功能控制有关的键信号输入,并且可以包括但不限于鼠标、键盘、触摸屏、轨迹板、轨迹球、操作杆、麦克风和/或遥控器。输出设备708可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。
计算设备700还可以包括非暂时性存储设备710或者与非暂时性存储设备710连接,非暂时性存储设备可以是非暂时性的并且可以实现数据存储的任何存储设备,并且可以包括但不限于磁盘驱动器、光学存储设备、固态存储器、软盘、柔性盘、硬盘、磁带或任何其他磁介质,光盘或任何其他光学介质、ROM(只读存储器)、RAM(随机存取存储器)、高速缓冲存储器和/或任何其他存储器芯片或盒、和/或计算机可从其读取数据、指令和/或代码的任何其他介质。非暂时性存储设备710可以从接口拆卸。非暂时性存储设备710可以具有用于实现上述方法和步骤的数据/程序(包括指令)/代码/模块(例如,附图6所示的接入层601和服务层602)。
计算设备700还可以包括通信设备712。通信设备712可以是使得能够与外部设备和/或与网络通信的任何类型的设备或系统,并且可以包括但不限于调制解调器、网卡、红外通信设备、无线通信设备和/或芯片组,例如蓝牙TM设备、1301.11设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。
计算设备700还可以包括工作存储器714,其可以是可以存储对处理器704的工作有用的程序(包括指令)和/或数据的任何类型的工作存储器,并且可以包括但不限于随机存取存储器和/或只读存储器设备。
软件要素(程序)可以位于工作存储器714中,包括但不限于操作系统716、一个或多个应用程序718、驱动程序和/或其他数据和代码。用于执行上述方法和步骤的指令可以包括在一个或多个应用程序718中,并且上述方法可以通过由处理器704读取和执行一个或多个应用程序718的指令来实现。软件要素(程序)的指令的可执行代码或源代码也可以从远程位置下载。Software elements (programs) may be located in working
还应该理解,可以根据具体要求而进行各种变型。例如,也可以使用定制硬件,和/或可以用硬件、软件、固件、中间件、微代码,硬件描述语言或其任何组合来实现特定元件。例如,所公开的方法和设备中的一些或全部可以通过使用根据本公开的逻辑和算法,用汇编语言或硬件编程语言(诸如VERILOG,VHDL,C++)对硬件(例如,包括现场可编程门阵列(FPGA)和/或可编程逻辑阵列(PLA)的可编程逻辑电路)进行编程来实现。It should also be understood that various modifications may be made according to specific requirements. For example, custom hardware could also be used, and/or particular elements could be implemented in hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. For example, some or all of the disclosed methods and devices can be implemented by programming hardware (e.g., including Field Programmable Gate Arrays) in assembly language or hardware programming languages (such as VERILOG, VHDL, C++) using logic and algorithms according to the present disclosure. (FPGA) and/or Programmable Logic Circuits of Programmable Logic Array (PLA)) to implement programming.
还应该理解,前述方法可以通过服务器-客户端模式来实现。例如,客户端可以接收用户输入的数据并将所述数据发送到服务器。客户端也可以接收用户输入的数据,进行前述方法中的一部分处理,并将处理所得到的数据发送到服务器。服务器可以接收来自客户端的数据,并且执行前述方法或前述方法中的另一部分,并将执行结果返回给客户端。客户端可以从服务器接收到方法的执行结果,并例如可以通过输出设备呈现给用户。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算设备上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以为分布式系统的服务器,或者是结合了区块链的服务器。服务器也可以是云服务器,或者是带人工智能技术的智能云计算服务器或智能云主机。It should also be understood that the aforementioned methods can be implemented in a server-client mode. For example, a client may receive user-entered data and send the data to a server. The client may also receive the data input by the user, perform part of the processing in the aforementioned method, and send the processed data to the server. The server may receive data from the client, execute the aforementioned method or another part of the aforementioned method, and return the execution result to the client. The client can receive the execution result of the method from the server, and can present it to the user, for example, through an output device. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on respective computing devices and having a client-server relationship to each other. The server can be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server, or an intelligent cloud computing server or an intelligent cloud host with artificial intelligence technology.
还应该理解,计算设备700的组件可以分布在网络上。例如,可以使用一个处理器执行一些处理,而同时可以由远离该一个处理器的另一个处理器执行其他处理。计算设备700的其他组件也可以类似地分布。这样,计算设备700可以被解释为在多个位置执行处理的分布式计算系统。It should also be understood that components of
虽然已经参照附图描述了本公开的实施例或示例,但应理解,上述的方法、系统和设备仅仅是示例性的实施例或示例,本公开的范围并不由这些实施例或示例限制,而是仅由授权后的权利要求书及其等同范围来限定。实施例或示例中的各种要素可以被省略或者可由其等同要素替代。此外,可以通过不同于本公开中描述的次序来执行各步骤。进一步地,可以以各种方式组合实施例或示例中的各种要素。重要的是随着技术的演进,在此描述的很多要素可以由本公开之后出现的等同要素进行替换。Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present disclosure is not limited by these embodiments or examples, but rather It is limited only by the appended claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by equivalent elements thereof. Also, steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples can be combined in various ways. Importantly, as technology advances, many of the elements described herein may be replaced by equivalent elements appearing after this disclosure.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011359273.7A CN112487218B (en) | 2020-11-27 | 2020-11-27 | Content processing method, system, device, computing device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011359273.7A CN112487218B (en) | 2020-11-27 | 2020-11-27 | Content processing method, system, device, computing device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112487218A CN112487218A (en) | 2021-03-12 |
CN112487218B true CN112487218B (en) | 2023-07-14 |
Family
ID=74936063
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011359273.7A Active CN112487218B (en) | 2020-11-27 | 2020-11-27 | Content processing method, system, device, computing device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112487218B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113792267B (en) * | 2021-08-09 | 2023-03-14 | 中国人民银行数字货币研究所 | Method and device for checking digital copyright of card surface picture of payment mechanism |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6336135B1 (en) * | 1996-05-24 | 2002-01-01 | International Business Machines Corporation | Gateway for converting synchronous client/server protocols into asynchronous messaging protocols and storing session state information at the client |
CN105763426A (en) * | 2016-04-12 | 2016-07-13 | 北京理工大学 | Multiprotocol instant messaging system-based Internet of Things business processing system |
CN106664514A (en) * | 2014-07-18 | 2017-05-10 | 康维达无线有限责任公司 | Enhanced operation between service layer and management layer in M2M systems by allowing multiple commands to be executed on multiple devices |
CN110311974A (en) * | 2019-06-28 | 2019-10-08 | 东北大学 | A cloud storage service method based on asynchronous messages |
CN110609506A (en) * | 2019-09-30 | 2019-12-24 | 重庆元韩汽车技术设计研究院有限公司 | Signal conversion system and method for remote control |
CN111143087A (en) * | 2019-12-18 | 2020-05-12 | 中国平安财产保险股份有限公司 | Interface calling method and device, storage medium and server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10303678B2 (en) * | 2016-06-29 | 2019-05-28 | International Business Machines Corporation | Application resiliency management using a database driver |
-
2020
- 2020-11-27 CN CN202011359273.7A patent/CN112487218B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6336135B1 (en) * | 1996-05-24 | 2002-01-01 | International Business Machines Corporation | Gateway for converting synchronous client/server protocols into asynchronous messaging protocols and storing session state information at the client |
CN106664514A (en) * | 2014-07-18 | 2017-05-10 | 康维达无线有限责任公司 | Enhanced operation between service layer and management layer in M2M systems by allowing multiple commands to be executed on multiple devices |
CN105763426A (en) * | 2016-04-12 | 2016-07-13 | 北京理工大学 | Multiprotocol instant messaging system-based Internet of Things business processing system |
CN110311974A (en) * | 2019-06-28 | 2019-10-08 | 东北大学 | A cloud storage service method based on asynchronous messages |
CN110609506A (en) * | 2019-09-30 | 2019-12-24 | 重庆元韩汽车技术设计研究院有限公司 | Signal conversion system and method for remote control |
CN111143087A (en) * | 2019-12-18 | 2020-05-12 | 中国平安财产保险股份有限公司 | Interface calling method and device, storage medium and server |
Non-Patent Citations (1)
Title |
---|
基于Agent的ERPⅡ网络数据传输模式实现;罗剑;;计算机应用与软件(08);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112487218A (en) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210191944A1 (en) | Dynamic self-reconfiguration of nodes in a processing pipeline | |
US11768707B2 (en) | Workflow selection | |
WO2021184725A1 (en) | User interface test method and apparatus, storage medium, and computer device | |
US8543972B2 (en) | Gateway data distribution engine | |
CN109634718B (en) | Method and system for creating mirror image by cloud platform | |
US8762408B2 (en) | Optimizing software applications | |
JP2022501736A (en) | Efficient state maintenance of the execution environment in the on-demand code execution system | |
CN111752587B (en) | Mini-program batch processing method, device, electronic device, and readable storage medium | |
WO2022164754A1 (en) | Extension framework for an information technology and security operations application | |
US20220012050A1 (en) | Mini program batch processing method and apparatus, electronic device, and readable storage medium | |
US12348599B2 (en) | Techniques for distributed interface component generation | |
CN103597464B (en) | Method, system and apparatus for adapting runtime application to multiple clients | |
US11307984B2 (en) | Optimized sorting of variable-length records | |
CN112487218B (en) | Content processing method, system, device, computing device and storage medium | |
CN115756696A (en) | Information processing method, device, equipment and medium | |
CN113448649B (en) | A server and method for loading home page data based on Redis | |
WO2021233042A1 (en) | Page data loading method, apparatus, and system | |
US12367241B2 (en) | System and techniques for enriching log records with fields from other log records in structured format | |
US12306821B2 (en) | System and techniques for traversing a dependency graph or tree structure in one step | |
US20220391388A1 (en) | Automatic replacement of command parameters during command history searching | |
US20180341717A1 (en) | Providing instant preview of cloud based file | |
US12001408B2 (en) | Techniques for efficient migration of key-value data | |
CN115269090A (en) | Marketing page generation method and device, terminal and storage medium | |
CN113064987A (en) | Data processing method, apparatus, electronic device, medium, and program product | |
US12287841B2 (en) | Runtime completion of web component metadata |
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 |