CN113238756B - Live broadcast service processing method and device, electronic equipment and storage medium - Google Patents

Live broadcast service processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113238756B
CN113238756B CN202110770239.7A CN202110770239A CN113238756B CN 113238756 B CN113238756 B CN 113238756B CN 202110770239 A CN202110770239 A CN 202110770239A CN 113238756 B CN113238756 B CN 113238756B
Authority
CN
China
Prior art keywords
configuration item
service
identifier
configuration
target
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
CN202110770239.7A
Other languages
Chinese (zh)
Other versions
CN113238756A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110770239.7A priority Critical patent/CN113238756B/en
Publication of CN113238756A publication Critical patent/CN113238756A/en
Application granted granted Critical
Publication of CN113238756B publication Critical patent/CN113238756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a live broadcast service processing method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a live broadcast service request sent by an anchor client based on a uniform application program interface, wherein the live broadcast service request comprises an anchor identifier and a service identifier; acquiring configuration item information corresponding to a target service of a anchor client from a target database based on an anchor identifier and a service identifier, wherein the target service is a live broadcast service corresponding to the service identifier, and the target database is used for storing configuration information of a plurality of live broadcast services; acquiring preset configuration item information corresponding to the service identifier from a configuration platform; determining a target configuration item parameter according to the configuration item information and preset configuration item information; and sending the target configuration item parameters to the anchor client so that the anchor client performs target service interface display based on the target configuration item parameters. According to the technical scheme provided by the disclosure, the development cost of the live broadcast service can be reduced and the development efficiency can be improved.

Description

Live broadcast service processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer processing technologies, and in particular, to a live broadcast service processing method and apparatus, an electronic device, and a storage medium.
Background
In order to increase the broadcasting rate of the anchor in the live scene, a plurality of live broadcast services (play methods or modes) are designed, such as chat rooms, live online broadcast services and the like, to attract audiences. However, in the related art, each service corresponds to an API (Application Programming Interface) and a database. In the face of more and more abundant live broadcast services, when a new service is added, an API interaction interface and a database corresponding to the new service need to be repeatedly developed, which consumes manpower and resources, has high maintenance cost, and has low development efficiency of the new service.
Disclosure of Invention
The present disclosure provides a live broadcast service processing method, apparatus, electronic device, and storage medium, to at least solve the problem of how to reduce the development cost and improve the development efficiency of a live broadcast service in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a live broadcast service processing method is provided, including:
receiving a live broadcast service request sent by an anchor client based on a uniform application program interface, wherein the live broadcast service request comprises an anchor identifier and a service identifier;
acquiring configuration item information corresponding to a target service of the anchor client from a target database based on the anchor identification and the service identification, wherein the target service is a live broadcast service corresponding to the service identification, and the target database is used for storing the configuration item information of a plurality of live broadcast services;
acquiring preset configuration item information corresponding to the service identifier from a configuration platform;
determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
and sending the target configuration item parameters to the anchor client so that the anchor client performs target business interface display based on the target configuration item parameters.
In a possible implementation manner, the configuration item information includes a first configuration item identifier and a corresponding first configuration item parameter, and the preset configuration item information includes a preset configuration item identifier and a corresponding preset configuration item parameter; the step of determining the parameters of the target configuration item according to the configuration item information and the preset configuration item information comprises the following steps:
taking the preset configuration item identifier which is not matched with the first configuration item identifier in the preset configuration item identifiers as a second configuration item identifier;
acquiring a second configuration item parameter corresponding to the second configuration item identifier from the preset configuration item parameters;
taking the first configuration item parameter and the second configuration item parameter as the target configuration item parameter.
In a possible implementation manner, before the step of obtaining, from a target database, configuration item information corresponding to a target service of the anchor client based on the anchor identifier and the service identifier, the live broadcast service processing method further includes:
inquiring corresponding configuration item information of the anchor client in the target service in a cache system based on the anchor identification and the service identification;
if the cache system has the corresponding configuration item information of the anchor client in the target service, acquiring the corresponding configuration item information of the anchor client in the target service from the cache system;
if the cache system does not have the corresponding configuration item information of the anchor client in the target service, the step of obtaining the corresponding configuration item information of the anchor client in the target service from a target database based on the anchor identification and the service identification is switched to.
In one possible implementation, the method further includes:
receiving a live broadcast service configuration request sent by the anchor client based on a uniform application program interface, wherein the live broadcast service configuration request comprises an anchor identifier, the service identifier, a configuration item identifier and a configuration item parameter;
generating service configuration updating information according to the anchor identification, the service identification, the configuration item identification and the configuration item parameter;
and sending the service configuration updating information to the target database so that the target database updates the configuration item information of the target service according to the service configuration updating information.
In a possible implementation manner, after the step of receiving a live broadcast service configuration request sent by the anchor client based on a unified application program interface, the live broadcast service processing method further includes:
acquiring a preset service identifier and a preset configuration item identifier corresponding to the preset service identifier from a configuration platform;
and if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier, generating the service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter.
In a possible implementation manner, after the step of obtaining the preset service identifier and the preset configuration item identifier corresponding to the preset service identifier from the configuration platform, the live broadcast service processing method further includes:
if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier, acquiring the flow information of the target database;
and if the flow information is smaller than a flow threshold value, generating the service configuration updating information according to the anchor identification, the service identification, the configuration item identification and the configuration item parameter.
In a possible implementation manner, the live broadcast service processing method further includes:
receiving a configuration item acquisition request sent by a service application layer, wherein the configuration item acquisition request comprises the anchor identifier and the service identifier;
acquiring corresponding configuration item information of the anchor client in the target service from the target database based on the anchor identification and the service identification;
acquiring preset configuration item information corresponding to the service identifier from the configuration platform;
determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
and sending the target configuration item parameters to the service application layer so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identification based on the target configuration item parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided a live broadcast service processing apparatus, including:
the system comprises a live broadcast service request receiving module, a live broadcast service request receiving module and a live broadcast service request receiving module, wherein the live broadcast service request receiving module is configured to execute and receive a live broadcast service request sent by an anchor client based on a uniform application program interface, and the live broadcast service request comprises an anchor identifier and a service identifier;
a first configuration item information obtaining module, configured to perform, based on the anchor identifier and the service identifier, obtaining, from a target database, configuration item information corresponding to the anchor client in a target service, where the target service is a live broadcast service corresponding to the service identifier, and the target database is used to store configuration item information of a plurality of live broadcast services;
the first preset configuration item information acquisition module is configured to execute the acquisition of preset configuration item information corresponding to the service identifier from a configuration platform;
a first target configuration item parameter determination module configured to perform determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
the first target configuration item parameter sending module is configured to send the target configuration item parameters to the anchor client, so that the anchor client performs target business interface display based on the target configuration item parameters.
In a possible implementation manner, the configuration item information includes a first configuration item identifier and a corresponding first configuration item parameter, and the preset configuration item information includes a preset configuration item identifier and a corresponding preset configuration item parameter; the first target configuration item parameter determination module comprises:
a configuration item identifier obtaining unit configured to perform, as a second configuration item identifier, a preset configuration item identifier that does not match the first configuration item identifier in the preset configuration item identifiers;
a configuration item parameter obtaining unit configured to perform obtaining a second configuration item parameter corresponding to the second configuration item identifier from the preset configuration item parameter;
a target configuration item parameter determination unit configured to perform taking the first configuration item parameter and the second configuration item parameter as the target configuration item parameter.
In a possible implementation manner, the live service processing apparatus further includes:
the cache query module is configured to execute query of configuration item information corresponding to the anchor client in the target service in a cache system based on the anchor identification and the service identification;
a second configuration item information obtaining module, configured to execute, if there is configuration item information corresponding to the anchor client in the target service in the cache system, obtaining, from the cache system, configuration item information corresponding to the anchor client in the target service;
a third configuration item information obtaining module, configured to execute, if there is no configuration item information corresponding to the anchor client in the target service in the cache system, switching to the step of obtaining, based on the anchor identifier and the service identifier, configuration item information corresponding to the anchor client in the target service from a target database.
In one possible implementation, the apparatus further includes:
a live broadcast service configuration request sending module configured to execute receiving of a live broadcast service configuration request sent by the anchor client based on a unified application program interface, where the live broadcast service configuration request includes the anchor identifier, the service identifier, a configuration item identifier, and a configuration item parameter;
a first service configuration update information generation module configured to execute generating service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter;
and the service configuration updating information sending module is configured to execute sending of the service configuration updating information to the target database, so that the target database performs updating processing on the configuration item information of the target service according to the service configuration updating information.
In a possible implementation manner, the live service processing apparatus further includes:
the system comprises a preset configuration information acquisition module, a configuration platform and a configuration information processing module, wherein the preset configuration information acquisition module is configured to execute acquisition of a preset service identifier and a preset configuration item identifier corresponding to the preset service identifier from the configuration platform;
and the second service configuration updating information generating module is configured to execute generating the service configuration updating information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier.
In a possible implementation manner, the live service processing apparatus further includes:
a traffic information obtaining module configured to obtain traffic information of the target database if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier;
and the third service configuration updating information generating module is configured to execute generating the service configuration updating information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter if the flow information is smaller than a flow threshold value.
In a possible implementation manner, the live service processing apparatus further includes:
a configuration item acquisition request sending module configured to execute a configuration item acquisition request sent by a service application layer, where the configuration item acquisition request includes the anchor identifier and the service identifier;
a fourth configuration item information obtaining module configured to perform obtaining, based on the anchor identifier and the service identifier, configuration item information corresponding to the anchor client in a target service from the target database;
the second preset configuration item information acquisition module is configured to execute the acquisition of preset configuration item information corresponding to the service identifier from the configuration platform;
a second target configuration item parameter determination module configured to perform determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
and the second target configuration item parameter sending module is configured to execute sending of the target configuration item parameter to the service application layer, so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identifier based on the target configuration item parameter.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any of the first aspects above.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of the first aspect of the embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when executed by a processor, cause a computer to perform the method of any one of the first aspects of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
by setting the direct broadcast service request to comprise the anchor identification and the service identification, different services can be distinguished through the service identification, so that the application program interface and the target database can be suitable for different services, namely the compatibility of different services is better, and the possibility of setting one application program interface and one target database to be suitable for the request processing of different direct broadcast services is provided; and then the processing of the live broadcast service request is carried out based on the uniform application program interface and the uniform target database, the understanding cost of developers for different service data can be reduced, the mode of setting a set of complete API service and the target database for each live broadcast service can be avoided, the development cost can be reduced, the development efficiency can be improved, and the timeliness requirement of a live broadcast service scene can be effectively met.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram illustrating an application environment in accordance with an exemplary embodiment.
Fig. 2 is an interactive flowchart illustrating a method of live traffic processing according to an example embodiment.
Fig. 3 is a flowchart illustrating a method for determining a target configuration item parameter according to configuration item information and preset configuration item information, according to an exemplary embodiment.
Fig. 4 is an interactive flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment.
Fig. 5 is an interactive flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment.
Fig. 6 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment.
Fig. 7 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment.
Fig. 8 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment.
Fig. 9 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment.
Fig. 10 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment.
Fig. 11 is a block diagram illustrating a live service processing apparatus according to an example embodiment.
Fig. 12 is a block diagram illustrating an electronic device for live traffic processing in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) referred to in the present disclosure is information authorized by the user or sufficiently authorized by each party.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment according to an exemplary embodiment, which may include a server 01 and a terminal 02, as shown in fig. 1.
In an alternative embodiment, server 01 may be used for processing of live traffic. Specifically, the server 01 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like. In one example, server 01 may be an RPC (Remote Procedure Call Protocol) server.
In an alternative embodiment, the terminal 02 may be configured to provide user-oriented live service processing, for example, a user may request and configure different services in a live room of the terminal 02. Specifically, the terminal 02 may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and other types of electronic devices. Optionally, the operating system running on the electronic device may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.
In addition, it should be noted that fig. 1 illustrates only one application environment of the image processing method provided by the present disclosure.
In the embodiment of the present specification, the server 01 and the terminal 02 may be directly or indirectly connected by a wired or wireless communication method, and the present application is not limited herein.
Fig. 2 is an interactive flowchart illustrating a method of live traffic processing according to an example embodiment. As shown in fig. 2, the live service processing method may include the following steps:
in step S201, the anchor client responds to the configuration item parameter obtaining instruction, and obtains a preset data structure corresponding to the configuration item parameter obtaining instruction.
In this embodiment of the present description, the anchor may trigger a corresponding live broadcast service in the live broadcast room to trigger a configuration item parameter acquisition instruction. The anchor client responds to the configuration item parameter acquisition instruction, and can acquire a preset data structure corresponding to the configuration item parameter acquisition instruction.
The live broadcast service may include a chat room, a live online broadcast, and the like, which is not limited in this disclosure. The preset data structure may refer to a uniform data structure mode, that is, the preset data structure may include a preset number of parameters and an order of the preset number of parameters.
In practical application, the preset data structure, the configuration item parameter acquisition instruction, and the live broadcast service request may correspond one to one, that is, the preset data structure, the instruction type, and the request type may correspond one to one. In one example, the instruction types may include live service configuration instructions, configuration item parameter acquisition instructions, and configuration item acquisition instructions. The request types may include a live broadcast service configuration request (anchor set-setting request) corresponding to the live broadcast service configuration instruction, a live broadcast service request (anchor get-settings request) corresponding to the configuration item parameter acquisition instruction, and a configuration item acquisition request (service get-settings request) corresponding to the configuration item acquisition instruction. The preset data structure corresponding to the anchor set-setting request may be (UserId, BizType, sublype, Value); the preset data structure corresponding to the anchor get-settings request may be (UserId, BizType); the preset data structure corresponding to the service get-settings request may be (UserId, BizType).
For example, the UserId, BizType, sublype, and Value may be parameters of a preset number in a preset data structure corresponding to the anchor set-setting request, and the preset number parameters are in the order of UserId, BizType, sublype, and Value; wherein, the UserId may refer to a anchor identity; the BizType can refer to a service identifier and can be used for uniquely identifying one service (play method); the SubType can refer to configuration item identification and can represent identification of one configuration item in one service; value may refer to a configuration item parameter. The configuration item parameter may be used to modify the value of the configuration item identification. By setting corresponding unified data structure modes for different request types, the method can be suitable for different live broadcast service configurations, service configuration services do not need to be independently developed for new services, and the service compatibility is good. The preset data structure corresponding to the configuration item parameter obtaining instruction may be (anchor identifier 1, service identifier 1).
In step S203, the anchor client generates configuration item parameter acquisition information according to the preset data structure corresponding to the configuration item parameter acquisition instruction.
In this embodiment of the present specification, the anchor client may generate configuration item parameter acquisition information based on a preset data structure. For example, the anchor client may generate configuration item parameter acquisition information based on the (UserId, BizType), for example, the anchor identifier 1 and the service identifier 1 corresponding to each parameter in the anchor client may be acquired as the UserId and the BizType according to a parameter required in a preset data structure, so that the configuration item parameter acquisition information may be generated as the (anchor identifier 1 and service identifier 1).
In step S205, the anchor client obtains information based on the unified application program interface and the configuration item parameter, and sends a live broadcast service request to the multi-service configuration server.
In this embodiment of the present description, the anchor client may Call a uniform application program interface API, and may obtain information based on the uniform application program interface API and the configuration item parameter, and send a live broadcast service request to a multi-service configuration server, where the multi-service configuration server may be an RPC (Remote Procedure Call Protocol) server. For example, the configuration item parameter acquisition information is (anchor identifier 1, service identifier 1); if the pre-designed unified application program interface comprises:
set, modify a configuration item with parameters (UserId, BizType, SubType, Value);
and/get, acquiring all configuration items of a service or a playing method of the anchor, wherein the parameters are (UserId, BizType), returning configuration item information of the whole configuration item Settings, and the configuration item information can be in a Map format of a configuration structure body Json (JavaScript Object Notation).
The anchor client can provide the configuration item parameter acquisition information (anchor identifier 1, service identifier 1) to the unified application program interface, that is, the unified application program interface can be called to generate a live broadcast service request as follows: get (anchor identification 1, service identification 1).
It should be noted that the preset data structure may be matched with parameters corresponding to different functions of the unified application program interface. The different functions of the unified application interface may include the/set function and/get function described above.
In step S207, the multi-service configuration server queries, in the cache system, configuration item information corresponding to the anchor client in the target service based on the anchor identifier and the service identifier;
in step S209, if there is configuration item information corresponding to the anchor client in the target service in the cache system, based on the anchor identifier and the service identifier, acquiring configuration item information corresponding to the anchor client in the target service from the cache system;
in step S211, if there is no configuration item information corresponding to the anchor client in the target service in the cache system, based on the anchor identifier and the service identifier, the multi-service configuration server obtains the configuration item information corresponding to the anchor client in the target service from the target database; the target service can be a live broadcast service corresponding to the service identifier; the target database may be used to store configuration item information for a plurality of live services.
In this embodiment of the present specification, the target database and the cache system may store configuration item information configured by a host, and the configuration platform may store preset configuration item information. When the configuration item information corresponding to the anchor client in the target service does not exist in the cache system, the multi-service configuration server may obtain the configuration item information corresponding to the anchor client in the target service from the target database based on the anchor identifier and the service identifier. The configuration item information may include a first configuration item identifier and a corresponding first configuration item parameter.
In one example, the step S211 may include the steps of:
in step S2111, the multi-service configuration server may send a configuration item information acquisition request to the target database;
in step S2113, the multi-service configuration server may receive configuration item information, corresponding to the anchor client in the target service, obtained by the target database based on the anchor identifier and the service identifier.
In step S213, the multi-service configuration server obtains the preset configuration item information corresponding to the service identifier from the configuration platform.
In this embodiment, the multi-service configuration server may obtain preset configuration item information corresponding to the service identifier from the configuration platform. The preset configuration item information may include a preset configuration item identifier and a corresponding preset configuration item parameter.
In one example, the step S213 may include the steps of:
in step S2131, the multi-service configuration server may send a preset configuration item information acquisition request to the configuration platform;
in step S2133, the multi-service provisioning server may receive preset provisioning item information obtained by the provisioning platform based on the service identifier.
In step S215, the multi-service provisioning server determines a target provisioning item parameter according to the provisioning item information and the preset provisioning item information.
In this embodiment of the present specification, the configuration item information and the preset configuration item information may be merged, so as to determine the target configuration item parameter. For example, the preset configuration item parameter and the first configuration item parameter corresponding to the preset configuration item identifier except the first configuration item identifier in the preset configuration item identifiers may be used as the target configuration item parameter.
In one example, as shown in fig. 3, the step S215 may include the steps of:
in step S301, a preset configuration item identifier that does not match the first configuration item identifier in the preset configuration item identifiers is used as the second configuration item identifier.
In this embodiment of the present specification, a preset configuration item identifier that does not match the first configuration item identifier in the preset configuration item identifiers may be used as the second configuration item identifier. The mismatch here may mean that the preset configuration item identification is different from the first configuration item identification.
In step S303, a second configuration item parameter corresponding to the second configuration item identifier is obtained from the preset configuration item parameters;
in step S305, the first configuration item parameter and the second configuration item parameter are taken as target configuration item parameters.
In this embodiment of the present specification, a second configuration item parameter corresponding to a second configuration item identifier may be obtained from preset configuration item parameters; and the first configuration item parameter and the second configuration item parameter can be used as target configuration item parameters. The modified first configuration item parameter of the anchor can be combined with the preset second configuration item parameter to serve as a target configuration item parameter, and the target configuration item parameter corresponding to the anchor can be comprehensively and efficiently obtained; and the preset configuration item parameters and the configuration item parameters modified by the anchor are respectively processed, so that the storage pressure of the target database can be reduced and the misoperation can be effectively avoided.
Optionally, the first configuration item identifier and the second configuration item identifier may be used as a target configuration item identifier, so that the target configuration item identifier and the target configuration item parameter may be used as target configuration item information to send the target configuration item information to the anchor client.
In step S217, the multi-service configuration server sends the target configuration item parameter to the anchor client, so that the anchor client performs target service interface display based on the target configuration item parameter.
In this embodiment, the multi-service configuration server may send the target configuration item parameter to the anchor client, so that the anchor client performs target service interface display based on the target configuration item parameter. For example, the target service is a chat room, so that the anchor client can show an interface of the chat room based on the target configuration item parameters, and the interface of the chat room can show personalized settings of the anchor.
Fig. 4 is an interactive flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment. As shown in fig. 4, the live service processing method may include the following steps:
in step S401, the anchor client responds to the live broadcast service configuration instruction, and acquires a preset data structure corresponding to the live broadcast service configuration instruction.
In this embodiment of the present description, the anchor may configure a live broadcast service in a live broadcast room, and may trigger a live broadcast service configuration instruction by triggering a configuration item corresponding to a corresponding live broadcast service. And the anchor client responds to the live broadcast service configuration instruction and can acquire a preset data structure corresponding to the live broadcast service configuration instruction.
In step S403, the anchor client generates service configuration information based on a preset data structure; the service configuration information may include a host identity, a service identity, a configuration item identity and a configuration item parameter.
In this embodiment, the anchor client may generate the service configuration information based on a preset data structure. For example, the anchor client may generate the service configuration information based on (UserId, BizType, sublype, Value), for example, the anchor identifier 1, the service identifier 1, the configuration item identifier 2, and the configuration item parameter a1 corresponding to each parameter in the anchor client may be obtained according to a parameter required in a preset data structure and respectively used as the UserId, BizType, SubType, and Value, so that the service configuration information may be generated as (anchor identifier 1, service identifier 1, configuration item identifier 2, configuration item parameter a 1).
In step S405, the anchor client sends a live service configuration request to the multi-service configuration server based on the unified application program interface API and the service configuration information.
In this embodiment of the present description, the anchor client may call a unified application program interface API, and may send a live broadcast service configuration request to a multi-service configuration server based on the unified application program interface API and service configuration information, where the multi-service configuration server may be an RPC server. For example, the service configuration information is (anchor identifier 1, service identifier 1, configuration item identifier 2, configuration item parameter a 1); if the pre-designed unified application program interface comprises:
set, modify a configuration item with parameters (UserId, BizType, SubType, Value);
and/get, acquiring all configuration items of a service or a playing method of the anchor, wherein the parameters are (UserId, BizType), returning configuration item information of the whole configuration item Settings, and the configuration item information can be in a Map format of a configuration structure body Json (JavaScript Object Notation).
The anchor client may provide the service configuration information (anchor identifier 1, service identifier 1, configuration item identifier 2, configuration item parameter a1) to the unified application program interface, that is, the live service configuration request may be generated by calling the unified application program interface as follows: set (anchor identifier 1, service identifier 1, configuration item identifier 2, configuration item parameter a 1).
It should be noted that the preset data structure may be matched with parameters corresponding to different functions of the unified application program interface. The different functions of the unified application interface may include the/set function and/get function described above.
In step S407, the multi-service configuration server obtains the preset service identifier and the preset configuration item identifier corresponding to the preset service identifier from the configuration platform.
In this embodiment of the present specification, the configuration platform may be configured to store a preset service identifier corresponding to a preset live broadcast service and a preset configuration item identifier corresponding to the preset service identifier, and optionally, may further store a preset configuration item parameter of each preset configuration item identifier, that is, an initial configuration item parameter. In one example, the step S407 may include the steps of:
in step S4071, the multi-service configuration server may send an acquisition request of a preset service and a preset configuration item to the configuration platform;
in step S4073, the multi-service configuration server may receive the preset service identifier obtained by querying and sent by the configuration platform and the preset configuration item identifier corresponding to the preset service identifier.
In step S409, the multi-service configuration server generates service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier, and the configuration item parameter.
In this embodiment of the present specification, the service configuration update information may be an operation instruction of the database, so as to instruct the database to perform operations such as modification, query, and storage. As one example, the database operation instruction may include a database modification statement, a database storage statement, a database query statement, and the like.
In practical applications, the target database may store a service configuration table using (UserId, BizType) as an index entry, and a service configuration entry table using each service as an index entry and composed of a plurality of configuration entries corresponding to each service. In an example, the service configuration item table may be in a Json Map format, and for example, in live online broadcasting, the stored service configuration items may be as follows:
{
"ForbiddenMatch": true,
"AllowFansInvite": false ,
"AllowReco": false
}
the forbiddenbatch, the allowfensinvite, and the allowretco may be configuration item identifiers, true and false may be values corresponding to the configuration item identifiers, true may indicate permission, and false may indicate non-permission. The present disclosure is not limited thereto.
Accordingly, the fields in the target database may be consistent with the parameters in the preset data format, for example, the target database may be provided with anchor identification, service identification, and configuration item identification fields. Thus, the multi-service server can generate a database modification statement for the configuration item identification field corresponding to the anchor identification and the service identification in the target database based on the anchor identification, the service identification, the configuration item identification and the configuration item parameter, so that the database modification statement can be used as service configuration updating information. The service configuration update information may include a host identifier, a service identifier, a configuration item identifier, and a configuration item parameter.
In one example, the step S409 may include the steps of:
in step S4091, if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier, the traffic information of the target database is obtained.
In practical application, the preset service identifier and the preset configuration item identifier corresponding to the preset service identifier can be used as a white list, so that whether the service identifier and the configuration item identifier in the live broadcast service configuration request are in the white list or not can be judged based on the white list, and if the service identifier and the configuration item identifier are not in the white list, the live broadcast service configuration request can be rejected; if the flow information is in the white list, the flow information of the target database can be obtained, so that the flow of the target database is further judged.
In step S4093, if the traffic information is smaller than the traffic threshold, generating service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier, and the configuration item parameter.
In this embodiment of the present description, if the traffic information is smaller than the traffic threshold, that is, the load pressure of the target database is low, the service configuration update information may be generated according to the anchor identifier, the service identifier, the configuration item identifier, and the configuration item parameter. For a specific implementation, reference may be made to the above corresponding contents, which are not described herein again.
In step S411, the multi-service provisioning server sends the service provisioning update information to the target database.
In this embodiment of the present specification, the target database may be a database that stores multi-service configuration information, that is, the target database may store configuration information of different services. The anchor client can send the service configuration update information to the target database to realize the modification of the anchor client to the service configuration. Optionally, a success message may be returned to the anchor client.
In step S413, the target database performs parameter configuration of the live service according to the service configuration update information.
In this embodiment of the present specification, the target database may perform parameter configuration of the live broadcast service according to the service configuration update information, for example, may perform operations such as parameter modification of the live broadcast service according to the service configuration update information, so as to implement modification of the service configuration by the anchor client. The parameters in the live broadcast service configuration request sent from the anchor client can be consistent with the parameters in the service configuration updating information by setting the fields in the target database to be consistent with the parameters in the preset data format, and the preset data format has a corresponding relation with the request type. The parameters in the service configuration updating information can correspond to all fields in the target database, so that the parameter configuration of the live broadcast service in the target database can be realized.
Fig. 5 is an interactive flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment. As shown in fig. 5, in a possible implementation manner, the live service processing method may further include:
in step S501, the service application layer sends a configuration item acquisition request to the multi-service configuration server.
In the embodiment of the present specification, the service application layer sends a configuration item acquisition request to the multi-service configuration server. The configuration item acquisition request includes configuration item acquisition information generated based on a preset data structure corresponding to the configuration item acquisition request, and the configuration item acquisition information may include a multicast identifier and a service identifier. For example, the configuration item acquisition request may be: and acquiring (anchor identifier 1 and service identifier 1). The service application layer may refer to a service application module in a live broadcast scene, for example, the service application module may be a service application module that determines whether a anchor in the live broadcast can issue a red packet, and the service application module may control the red packet issue in the live broadcast room based on a configuration item parameter of the anchor for the red packet by acquiring the configuration item parameter of the anchor for the red packet. The present disclosure is not limited thereto, and may be set according to actual requirements.
In step S503, the multi-service configuration server obtains, from the target database, configuration item information corresponding to the anchor client in the target service based on the anchor identifier and the service identifier, where the target service may be a live broadcast service corresponding to the service identifier.
In one example, the step S503 may include the steps of:
in step S5031, the multi-service configuration server may send a configuration item information acquisition request to the target database; the configuration item information acquisition request may be: and acquiring (anchor identifier 1 and service identifier 1).
In step S5033, the multi-service configuration server may receive configuration item information, corresponding to the anchor client in the target service, obtained by the target database based on the anchor identifier and the service identifier.
In step S505, preset configuration item information corresponding to the service identifier is obtained from the configuration platform.
In one example, the step S505 may include the steps of:
in step S5051, the multi-service provisioning server may send a preset provisioning item information acquisition request to the provisioning platform;
in step S5053, the multi-service provisioning server may receive preset provisioning item information obtained by the provisioning platform based on the service identifier.
In step S507, determining a target configuration item parameter according to the configuration item information and preset configuration item information;
the specific implementation manner of the steps S503 to S507 can be referred to in steps S211 to S215, which is not described herein again.
In step S509, the target configuration item parameter is sent to the service application layer, so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identifier based on the target configuration item parameter.
In this embodiment of the present description, the target configuration item parameter may be sent to the service application layer, so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identifier based on the target configuration item parameter. For example, the service application layer may control red packet distribution of the anchor live broadcast room based on the anchor red packet target configuration item parameters.
Fig. 6 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment. As shown in fig. 6, in a possible implementation manner, the live service processing method may include the following steps:
in step S601, receiving a live broadcast service request sent by an anchor client based on a unified application program interface, where the live broadcast service request may include an anchor identifier and a service identifier;
in this embodiment of the present description, a live broadcast service request sent by an anchor client based on a unified application program interface may be received, where the live broadcast service request may include configuration item parameter acquisition information generated based on a preset data structure corresponding to the live broadcast service request, and the configuration item parameter acquisition information may include an anchor identifier and a service identifier.
In step S603, based on the anchor identifier and the service identifier, obtaining, from a target database, configuration item information corresponding to the anchor client in a target service, where the target service is a live broadcast service corresponding to the service identifier, and the target database is used to store configuration information of multiple live broadcast services;
in step S605, obtaining preset configuration item information corresponding to the service identifier from a configuration platform;
in step S607, determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
in step S609, the target configuration item parameter is sent to the anchor client, so that the anchor client performs target service interface display based on the target configuration item parameter.
In the embodiment of the present specification, the steps S601 to S609 may refer to the corresponding contents in fig. 2, and are not described herein again.
By setting the direct broadcast service request to comprise the anchor identification and the service identification, different services can be distinguished through the service identification, so that the application program interface and the target database can be suitable for different services, namely the compatibility of different services is better, and the possibility of setting one application program interface and one target database to be suitable for the request processing of different direct broadcast services is provided; and then the processing of the live broadcast service request is carried out based on the uniform application program interface and the uniform target database, the understanding cost of developers for different service data can be reduced, the mode of setting a set of complete API service and the target database for each live broadcast service can be avoided, the development cost can be reduced, the development efficiency can be improved, and the timeliness requirement of a live broadcast service scene can be effectively met.
In a possible implementation manner, before the step of obtaining, based on the anchor identifier and the service identifier, the configuration item information corresponding to the anchor client in the target service from the target database, the live broadcast service processing method may further include the following steps:
inquiring corresponding configuration item information of the anchor client in the target service in a cache system based on the anchor identification and the service identification;
if the cache system has the configuration item information corresponding to the anchor client in the target service, acquiring the configuration item information corresponding to the anchor client in the target service from the cache system;
if the cache system does not have the configuration item information corresponding to the anchor client in the target service, the step of obtaining the configuration item information corresponding to the anchor client in the target service from the target database based on the anchor identification and the service identification is carried out.
In this embodiment of the present specification, the implementation manner of the above steps may refer to the corresponding content in fig. 2, and is not described herein again.
The corresponding configuration item information of the anchor client in the target service is acquired from the cache system by inquiring the corresponding configuration item information of the anchor client in the target service in the cache system and when the corresponding configuration item information of the anchor client in the target service exists in the cache system, so that the acquisition efficiency of the configuration item information can be improved.
Fig. 7 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment. As shown in fig. 7, the live service processing method may include the following steps:
in step S701, receiving a live broadcast service configuration request sent by an anchor client based on a unified application program interface, where the live broadcast service configuration request includes an anchor identifier, a service identifier, a configuration item identifier, and a configuration item parameter;
in step S703, generating service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier, and the configuration item parameter;
in step S705, the service configuration update information is sent to the target database, so that the target database performs update processing on the configuration item information of the target service according to the service configuration update information.
In the embodiment of this specification, the steps S701 to S705 may refer to the corresponding contents in fig. 4, and are not described herein again.
By setting the live broadcast service configuration request to include the service configuration information generated based on the preset data structure, the service configuration information of different services can comprise the anchor identification, the service identification, the configuration item identification and the configuration item parameter, and by the unified parameter, when the development of a new live broadcast service is faced, the understanding cost solution of developers to different service data can be reduced, so that the development cost can be reduced; the live broadcast service configuration request comprising the uniform parameters can be used for carrying out live broadcast service configuration on different services, and different services can be distinguished through the service identifiers by including the service identifiers in the live broadcast service configuration request, so that the application program interface and the database can be suitable for different services, namely, the compatibility of different services is better, and the possibility is provided for setting one application program interface and one database to be suitable for the configuration of different live broadcast services. The method can avoid setting a set of complete API service and database for each live broadcast service, further reduces the development cost, improves the development efficiency, and can effectively meet the timeliness requirement of the live broadcast service scene.
Fig. 8 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment. As shown in fig. 8, in a possible implementation manner, after step S701, the live service processing method may further include the following steps:
in step S801, a preset service identifier and a preset configuration item identifier corresponding to the preset service identifier are obtained from a configuration platform;
in step S803, if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier, generating service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier, and the configuration item parameter.
In the embodiment of this specification, the steps S801 to S803 may refer to the corresponding contents in fig. 4, and are not described herein again.
The anchor identification and the service identification in the live broadcast service configuration request are verified through the preset service identification and the preset configuration item identification, so that the error configuration of the anchor to the service can be avoided, and the safety of the live broadcast service configuration is improved.
Fig. 9 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment. As shown in fig. 9, in a possible implementation manner, after step S801, the live service processing method may further include the following steps:
in step S901, if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier, acquiring traffic information of the target database;
in step S903, if the traffic information is smaller than the traffic threshold, service configuration update information is generated according to the anchor identifier, the service identifier, the configuration item identifier, and the configuration item parameter.
In the embodiment of the present specification, the steps S901 to S903 may refer to corresponding contents in fig. 4, and are not described herein again.
And generating service configuration updating information according to the anchor identification, the service identification, the configuration item identification and the configuration item parameter by acquiring the flow information of the target database and when the flow information is smaller than a flow threshold value. The configuration operation of the live broadcast service is guaranteed only when the pressure of the target database is low, and the operation efficiency of the database can be guaranteed.
Fig. 10 is a flow diagram illustrating a method of live traffic processing in accordance with an exemplary embodiment. As shown in fig. 10, in a possible implementation manner, the live service processing method may further include the following steps:
in step S1001, a configuration item acquisition request sent by a service application layer is received, where the configuration item acquisition request includes a anchor identifier and a service identifier;
in step S1003, based on the anchor identifier and the service identifier, obtaining configuration item information corresponding to the anchor client in the target service from the target database, where the target service is a live broadcast service corresponding to the service identifier;
in step S1005, preset configuration item information corresponding to the service identifier is acquired from the configuration platform;
in step S1007, determining a target configuration item parameter according to the configuration item information and preset configuration item information;
in step S1009, the target configuration item parameter is sent to the service application layer, so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identifier based on the target configuration item parameter.
In this embodiment, in steps S1001 to S1009, reference may be made to corresponding contents in fig. 5, which is not described herein again.
The configuration item acquisition request comprises configuration item acquisition information generated based on a preset data structure corresponding to the configuration item acquisition request, so that different services can acquire corresponding target configuration item parameters through the configuration item acquisition request. The development efficiency can be improved while the development cost and resources are reduced.
Fig. 11 is a block diagram illustrating a live service processing apparatus according to an example embodiment. Referring to fig. 11, the apparatus may include:
a live broadcast service request receiving module 1101 configured to execute receiving a live broadcast service request sent by an anchor client based on a unified application program interface, where the live broadcast service request may include an anchor identifier and a service identifier;
a first configuration item information obtaining module 1103 configured to perform, based on the anchor identifier and the service identifier, obtaining, from a target database, configuration item information corresponding to a target service of the anchor client in the target service, where the target service is a live service corresponding to the service identifier, and the target database is used to store configuration item information of a plurality of live services;
a first preset configuration item information obtaining module 1105, configured to perform obtaining preset configuration item information corresponding to the service identifier from a configuration platform;
a first target configuration item parameter determining module 1107 configured to determine a target configuration item parameter according to the configuration item information and the preset configuration item information;
a first target configuration item parameter sending module 1109, configured to execute sending the target configuration item parameter to the anchor client, so that the anchor client performs target service interface presentation based on the target configuration item parameter.
By setting the direct broadcast service request to comprise the anchor identification and the service identification, different services can be distinguished through the service identification, so that the application program interface and the target database can be suitable for different services, namely the compatibility of different services is better, and the possibility of setting one application program interface and one target database to be suitable for the request processing of different direct broadcast services is provided; and then the processing of the live broadcast service request is carried out based on the uniform application program interface and the uniform target database, the understanding cost of developers for different service data can be reduced, the mode of setting a set of complete API service and the target database for each live broadcast service can be avoided, the development cost can be reduced, the development efficiency can be improved, and the timeliness requirement of a live broadcast service scene can be effectively met.
In a possible implementation manner, the configuration item information includes a first configuration item identifier and a corresponding first configuration item parameter, and the preset configuration item information includes a preset configuration item identifier and a corresponding preset configuration item parameter; the first target configuration item parameter determining module 1107 may include:
a configuration item identifier obtaining unit configured to perform, as a second configuration item identifier, a preset configuration item identifier that does not match the first configuration item identifier in the preset configuration item identifiers;
a configuration item parameter obtaining unit configured to perform obtaining a second configuration item parameter corresponding to the second configuration item identifier from the preset configuration item parameter;
a target configuration item parameter determination unit configured to perform taking the first configuration item parameter and the second configuration item parameter as the target configuration item parameter.
In a possible implementation manner, the live service processing apparatus may further include:
the cache query module is configured to execute query of configuration item information corresponding to the anchor client in the target service in a cache system based on the anchor identification and the service identification;
a second configuration item information obtaining module, configured to execute, if there is configuration item information corresponding to the anchor client in the target service in the cache system, obtaining, from the cache system, configuration item information corresponding to the anchor client in the target service;
a third configuration item information obtaining module, configured to execute, if there is no configuration item information corresponding to the anchor client in the target service in the cache system, switching to the step of obtaining, based on the anchor identifier and the service identifier, configuration item information corresponding to the anchor client in the target service from a target database.
In one possible implementation, the apparatus may further include:
a live broadcast service configuration request sending module configured to execute receiving of a live broadcast service configuration request sent by the anchor client based on a unified application program interface, where the live broadcast service configuration request includes the anchor identifier, the service identifier, a configuration item identifier, and a configuration item parameter;
a first service configuration update information generation module configured to execute generating service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter;
and the service configuration updating information sending module is configured to execute sending of the service configuration updating information to the target database, so that the target database performs updating processing on the configuration item information of the target service according to the service configuration updating information.
In a possible implementation manner, the live service processing apparatus may further include:
the system comprises a preset configuration information acquisition module, a configuration platform and a configuration information processing module, wherein the preset configuration information acquisition module is configured to execute acquisition of a preset service identifier and a preset configuration item identifier corresponding to the preset service identifier from the configuration platform;
and the second service configuration updating information generating module is configured to execute generating the service configuration updating information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier.
In a possible implementation manner, the live service processing apparatus further includes:
a traffic information obtaining module configured to obtain traffic information of the target database if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier;
and the third service configuration updating information generating module is configured to execute generating the service configuration updating information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter if the flow information is smaller than a flow threshold value.
In a possible implementation manner, the live service processing apparatus may further include:
a configuration item acquisition request sending module configured to execute a configuration item acquisition request sent by a service application layer, where the configuration item acquisition request includes the anchor identifier and the service identifier;
a fourth configuration item information obtaining module configured to perform obtaining, based on the anchor identifier and the service identifier, configuration item information corresponding to the anchor client in a target service from the target database;
the second preset configuration item information acquisition module is configured to execute the acquisition of preset configuration item information corresponding to the service identifier from the configuration platform;
a second target configuration item parameter determination module configured to perform determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
and the second target configuration item parameter sending module is configured to execute sending of the target configuration item parameter to the service application layer, so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identifier based on the target configuration item parameter.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 12 is a block diagram illustrating an electronic device for live traffic processing, which may be a server, according to an exemplary embodiment, and an internal structure diagram of the electronic device may be as shown in fig. 12. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of live service processing.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a live service processing method as in an embodiment of the present disclosure.
In an exemplary embodiment, a computer-readable storage medium is also provided, and when executed by a processor of an electronic device, enables the electronic device to perform a live traffic processing method in the embodiments of the present disclosure. The computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product containing instructions is also provided, which when run on a computer, causes the computer to perform the live service processing method in the embodiments of the present disclosure.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A live broadcast service processing method is applied to a multi-service configuration server, and comprises the following steps:
receiving a live broadcast service request sent by a main broadcast client based on a uniform application program interface in a live broadcast room, wherein the live broadcast service request comprises configuration item parameter acquisition information generated based on a preset data structure corresponding to the live broadcast service request, and the configuration item parameter acquisition information comprises a main broadcast identifier and a service identifier;
acquiring modified configuration item information of the anchor client in a target service from a unified target database based on the anchor identification and the service identification, wherein the target service is a live broadcast service corresponding to the service identification, the target database is used for storing the configuration item information of a plurality of live broadcast services, and fields in the target database are consistent with parameters in a preset data structure;
acquiring preset configuration item information corresponding to the service identifier from preset configuration item information stored in a configuration platform;
determining a target configuration item parameter according to the modified configuration item information and the preset configuration item information;
and sending the target configuration item parameters to the anchor client so that the anchor client performs target business interface display based on the target configuration item parameters.
2. The live broadcast service processing method according to claim 1, wherein the configuration item information includes a first configuration item identifier and a corresponding first configuration item parameter, and the preset configuration item information includes a preset configuration item identifier and a corresponding preset configuration item parameter; the step of determining the parameters of the target configuration item according to the configuration item information and the preset configuration item information comprises the following steps:
taking the preset configuration item identifier which is not matched with the first configuration item identifier in the preset configuration item identifiers as a second configuration item identifier;
acquiring a second configuration item parameter corresponding to the second configuration item identifier from the preset configuration item parameters;
taking the first configuration item parameter and the second configuration item parameter as the target configuration item parameter.
3. The live broadcast service processing method according to claim 2, wherein before the step of obtaining, from a target database, configuration item information corresponding to the anchor client in a target service based on the anchor identifier and the service identifier, the live broadcast service processing method further comprises:
inquiring corresponding configuration item information of the anchor client in the target service in a cache system based on the anchor identification and the service identification;
if the cache system has the corresponding configuration item information of the anchor client in the target service, acquiring the corresponding configuration item information of the anchor client in the target service from the cache system;
if the cache system does not have the corresponding configuration item information of the anchor client in the target service, the step of obtaining the corresponding configuration item information of the anchor client in the target service from a target database based on the anchor identification and the service identification is switched to.
4. The live broadcast service processing method of claim 1, wherein the method further comprises:
receiving a live broadcast service configuration request sent by the anchor client based on a uniform application program interface, wherein the live broadcast service configuration request comprises an anchor identifier, the service identifier, a configuration item identifier and a configuration item parameter;
generating service configuration updating information according to the anchor identification, the service identification, the configuration item identification and the configuration item parameter;
and sending the service configuration updating information to the target database so that the target database updates the configuration item information of the target service according to the service configuration updating information.
5. The live broadcast service processing method according to claim 4, wherein after the step of receiving the live broadcast service configuration request sent by the anchor client based on a unified application program interface, the live broadcast service processing method further comprises:
acquiring a preset service identifier and a preset configuration item identifier corresponding to the preset service identifier from a configuration platform;
and if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier, generating the service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter.
6. The live broadcast service processing method according to claim 5, wherein after the step of obtaining the preset service identifier and the preset configuration item identifier corresponding to the preset service identifier from the configuration platform, the live broadcast service processing method further comprises:
if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier, acquiring the flow information of the target database;
and if the flow information is smaller than a flow threshold value, generating the service configuration updating information according to the anchor identification, the service identification, the configuration item identification and the configuration item parameter.
7. The live broadcast service processing method according to claim 1, wherein the live broadcast service processing method further comprises:
receiving a configuration item acquisition request sent by a service application layer, wherein the configuration item acquisition request comprises the anchor identifier and the service identifier;
acquiring corresponding configuration item information of the anchor client in the target service from the target database based on the anchor identification and the service identification;
acquiring preset configuration item information corresponding to the service identifier from the configuration platform;
determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
and sending the target configuration item parameters to the service application layer so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identification based on the target configuration item parameters.
8. A live broadcast service processing device is applied to a multi-service configuration server and comprises the following components:
the system comprises a live broadcast service request receiving module, a live broadcast service request receiving module and a live broadcast service request receiving module, wherein the live broadcast service request is sent by an anchor client based on a uniform application program interface in a live broadcast room, the live broadcast service request comprises configuration item parameter acquisition information generated based on a preset data structure corresponding to the live broadcast service request, and the configuration item parameter acquisition information comprises an anchor identifier and a service identifier;
a first configuration item information obtaining module, configured to execute obtaining, from a unified target database, configuration item information modified by the anchor client in a target service based on the anchor identifier and the service identifier, where the target service is a live broadcast service corresponding to the service identifier, the target database is used to store configuration item information of multiple live broadcast services, and a field in the target database is consistent with a parameter in the preset data structure;
the first preset configuration item information acquisition module is configured to execute the preset configuration item information corresponding to the service identifier from preset configuration item information stored in a configuration platform;
a first target configuration item parameter determination module configured to perform determining a target configuration item parameter according to the modified configuration item information and the preset configuration item information;
the first target configuration item parameter sending module is configured to send the target configuration item parameters to the anchor client, so that the anchor client performs target business interface display based on the target configuration item parameters.
9. The live broadcast service processing apparatus according to claim 8, wherein the configuration item information includes a first configuration item identifier and a corresponding first configuration item parameter, and the preset configuration item information includes a preset configuration item identifier and a corresponding preset configuration item parameter; the first target configuration item parameter determination module comprises:
a configuration item identifier obtaining unit configured to perform, as a second configuration item identifier, a preset configuration item identifier that does not match the first configuration item identifier in the preset configuration item identifiers;
a configuration item parameter obtaining unit configured to perform obtaining a second configuration item parameter corresponding to the second configuration item identifier from the preset configuration item parameter;
a target configuration item parameter determination unit configured to perform taking the first configuration item parameter and the second configuration item parameter as the target configuration item parameter.
10. The live service processing apparatus according to claim 9, wherein the live service processing apparatus further comprises:
the cache query module is configured to execute query of configuration item information corresponding to the anchor client in the target service in a cache system based on the anchor identification and the service identification;
a second configuration item information obtaining module, configured to execute, if there is configuration item information corresponding to the anchor client in the target service in the cache system, obtaining, from the cache system, configuration item information corresponding to the anchor client in the target service;
a third configuration item information obtaining module, configured to execute, if there is no configuration item information corresponding to the anchor client in the target service in the cache system, switching to the step of obtaining, based on the anchor identifier and the service identifier, configuration item information corresponding to the anchor client in the target service from a target database.
11. The live traffic processing apparatus of claim 8, wherein the apparatus further comprises:
a live broadcast service configuration request sending module configured to execute receiving of a live broadcast service configuration request sent by the anchor client based on a unified application program interface, where the live broadcast service configuration request includes the anchor identifier, the service identifier, a configuration item identifier, and a configuration item parameter;
a first service configuration update information generation module configured to execute generating service configuration update information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter;
and the service configuration updating information sending module is configured to execute sending of the service configuration updating information to the target database, so that the target database performs updating processing on the configuration item information of the target service according to the service configuration updating information.
12. The live service processing apparatus as claimed in claim 11, wherein the live service processing apparatus further comprises:
the system comprises a preset configuration information acquisition module, a configuration platform and a configuration information processing module, wherein the preset configuration information acquisition module is configured to execute acquisition of a preset service identifier and a preset configuration item identifier corresponding to the preset service identifier from the configuration platform;
and the second service configuration updating information generating module is configured to execute generating the service configuration updating information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier.
13. The live service processing apparatus as claimed in claim 12, wherein the live service processing apparatus further comprises:
a traffic information obtaining module configured to obtain traffic information of the target database if the service identifier is in the preset service identifier and the configuration item identifier is in the preset configuration item identifier;
and the third service configuration updating information generating module is configured to execute generating the service configuration updating information according to the anchor identifier, the service identifier, the configuration item identifier and the configuration item parameter if the flow information is smaller than a flow threshold value.
14. The live service processing apparatus of claim 8, wherein the live service processing apparatus further comprises:
a configuration item acquisition request sending module configured to execute a configuration item acquisition request sent by a service application layer, where the configuration item acquisition request includes the anchor identifier and the service identifier;
a fourth configuration item information obtaining module configured to perform obtaining, based on the anchor identifier and the service identifier, configuration item information corresponding to the anchor client in a target service from the target database;
the second preset configuration item information acquisition module is configured to execute the acquisition of preset configuration item information corresponding to the service identifier from the configuration platform;
a second target configuration item parameter determination module configured to perform determining a target configuration item parameter according to the configuration item information and the preset configuration item information;
and the second target configuration item parameter sending module is configured to execute sending of the target configuration item parameter to the service application layer, so that the service application layer performs service application processing on the target service of the anchor client corresponding to the anchor identifier based on the target configuration item parameter.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live traffic processing method of any of claims 1 to 7.
16. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the live traffic processing method of any of claims 1-7.
CN202110770239.7A 2021-07-08 2021-07-08 Live broadcast service processing method and device, electronic equipment and storage medium Active CN113238756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110770239.7A CN113238756B (en) 2021-07-08 2021-07-08 Live broadcast service processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110770239.7A CN113238756B (en) 2021-07-08 2021-07-08 Live broadcast service processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113238756A CN113238756A (en) 2021-08-10
CN113238756B true CN113238756B (en) 2021-10-22

Family

ID=77141291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110770239.7A Active CN113238756B (en) 2021-07-08 2021-07-08 Live broadcast service processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113238756B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630612B (en) * 2021-07-30 2023-09-05 北京达佳互联信息技术有限公司 Data processing and data displaying method and device, electronic equipment and medium
CN114124891B (en) * 2021-10-25 2023-12-19 青岛海尔科技有限公司 Processing method and device of network request, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413261A (en) * 2019-06-26 2019-11-05 上海哔哩哔哩科技有限公司 A kind of configuration method and equipment of direct broadcast function module
CN110858926A (en) * 2018-08-24 2020-03-03 武汉斗鱼网络科技有限公司 Sharing method and device for live broadcast room, terminal and storage medium
CN112528202A (en) * 2020-12-17 2021-03-19 湖南快乐阳光互动娱乐传媒有限公司 Service request processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9411793B2 (en) * 2010-07-13 2016-08-09 Motionpoint Corporation Dynamic language translation of web site content
CN104320680B (en) * 2014-09-30 2018-08-24 广州华多网络科技有限公司 A kind of net cast management method, open method, relevant device and system
CN107124661B (en) * 2017-04-07 2020-05-19 广州市百果园网络科技有限公司 Communication method, device and system in live channel
CN111107441B (en) * 2018-10-25 2022-01-04 武汉斗鱼网络科技有限公司 Microphone connection communication establishing method, storage medium, electronic device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858926A (en) * 2018-08-24 2020-03-03 武汉斗鱼网络科技有限公司 Sharing method and device for live broadcast room, terminal and storage medium
CN110413261A (en) * 2019-06-26 2019-11-05 上海哔哩哔哩科技有限公司 A kind of configuration method and equipment of direct broadcast function module
CN112528202A (en) * 2020-12-17 2021-03-19 湖南快乐阳光互动娱乐传媒有限公司 Service request processing method and device

Also Published As

Publication number Publication date
CN113238756A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN113238756B (en) Live broadcast service processing method and device, electronic equipment and storage medium
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
US20210320845A1 (en) Network function nf management method and nf management device
CN111611091A (en) Service calling method, device and medium for business object
CN111478986B (en) Method, device and equipment for generating equipment fingerprint and storage medium
CN109889401B (en) Flow statistical method, device, computer equipment and storage medium
CN112312061B (en) Video conference method and device, electronic equipment and storage medium
CN113469736A (en) Resource distribution control method, device, system, electronic device and storage medium
CN108595280B (en) Interface adaptation method and device, computer equipment and storage medium
US20220303324A1 (en) Method and system for multi-service processing
CN110933160A (en) Data access method, server, terminal and storage medium
EP4125272A1 (en) Method and apparatus for displaying page, electronic device and storage medium
CN113467855B (en) Webpage request processing method and device, electronic equipment and storage medium
CN115412774A (en) Interactive processing method, device, electronic equipment, storage medium and program product
CN105763545B (en) A kind of BYOD method and device
CN113315981A (en) Task data updating method, device and system, electronic equipment and storage medium
CN112235378A (en) Data updating method and device, storage medium and electronic equipment
US20220405147A1 (en) Task processing method, electronic device and storage medium
CN114338383B (en) Simplified configuration method and system for video equipment
CN115017538A (en) Data processing method and device, electronic equipment and storage medium
CN115629909A (en) Service data processing method and device, electronic equipment and storage medium
CN113630612A (en) Data processing and data display method and device, electronic equipment and medium
CN113691575A (en) Communication method, device and system
CN112463748A (en) Storage system file lock identification method, system, terminal and storage medium
CN113645064B (en) Task issuing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant