CN106878056B - Method and device for configuring synchronous interface in multi-environment - Google Patents

Method and device for configuring synchronous interface in multi-environment Download PDF

Info

Publication number
CN106878056B
CN106878056B CN201611254988.XA CN201611254988A CN106878056B CN 106878056 B CN106878056 B CN 106878056B CN 201611254988 A CN201611254988 A CN 201611254988A CN 106878056 B CN106878056 B CN 106878056B
Authority
CN
China
Prior art keywords
environment
interface
interface configuration
configuration
request
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
CN201611254988.XA
Other languages
Chinese (zh)
Other versions
CN106878056A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201611254988.XA priority Critical patent/CN106878056B/en
Publication of CN106878056A publication Critical patent/CN106878056A/en
Application granted granted Critical
Publication of CN106878056B publication Critical patent/CN106878056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a method and a device for configuring a synchronous interface in multiple environments, wherein the method comprises the following steps: determining an environment Y to be synchronized after a new interface is input into any one environment X; configuring the environment to be synchronized of the environment X as the address of the environment Y, and configuring the interface configuration pull environment of the environment Y as the address of the environment X, thereby establishing the relation between the environment X and the environment Y; the environment X sends a synchronization request of the interface to an environment Y to be synchronized; after receiving the synchronous request, the environment Y initiates a pull request of interface configuration to an interface configuration pull environment X; after receiving the pull request, the environment X returns the interface configuration of the new input interface to the environment Y; and after receiving the returned interface configuration, the environment Y records the interface configuration for the gateway of the environment Y to use. By applying the embodiment of the application, the interface configuration of the new input interface can be automatically synchronized in multiple environments.

Description

Method and device for configuring synchronous interface in multi-environment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for configuring a synchronous interface in multiple environments.
Background
The environment described herein may refer to a computer network environment. In a multi-environment, if an interface is newly entered in any environment, it is usually necessary to synchronize the interface to other environments in order to make the services provided by the interface available to other environments.
For example, during application development, there are generally three environments: a development environment (an environment for developing applications), a test environment (an environment for testing applications), and a production environment (an environment for online applications). If an interface is newly input in a production environment, the interface configuration needs to be synchronized into a development environment and a test environment; thus, all three environments can use the services provided by the interface.
Due to isolation among different environments, such as data isolation, it may be that each environment uses a separate database to store data of the current environment; machine isolation, which may mean that the hosts of each environment are not the same. Therefore, in the prior art, the same interface configuration can only be entered in each environment requiring synchronization manually. However, it is inefficient to synchronize the interface configuration manually.
Disclosure of Invention
The application provides a method and a device for configuring a synchronous interface in a multi-environment, which aim to solve the problem that the efficiency of the configuration of the synchronous interface is low in the prior art.
According to the embodiment of the application, a method for configuring a synchronous interface in multiple environments is provided, and the method comprises the following steps:
determining an environment Y to be synchronized after a new interface is input into any environment X, wherein the environment Y is any environment except the environment X in the multiple environments;
configuring the environment to be synchronized of the environment X as the address of the environment Y, and configuring the interface configuration pull environment of the environment Y as the address of the environment X, thereby establishing the relation between the environment X and the environment Y;
the environment X sends a synchronization request of the interface to an environment Y to be synchronized;
after receiving the synchronous request, the environment Y initiates a pull request of interface configuration to an interface configuration pull environment X;
after receiving the pull request, the environment X returns the interface configuration of the new input interface to the environment Y;
and after receiving the returned interface configuration, the environment Y records the interface configuration so as to be used by a gateway of the environment Y.
Optionally, after receiving the pull request, the environment X returns the interface configuration of the new entry interface to the environment Y, which specifically includes:
after receiving the pull request, the environment X acquires the interface configuration of the new entry interface from a core configuration system corresponding to the environment X, and returns the interface configuration to the environment Y, wherein the core configuration system is used for recording the interface configuration;
after receiving the returned interface configuration, the environment Y records the interface configuration, and specifically includes:
and after receiving the returned interface configuration, the environment Y records the interface configuration into a core configuration system corresponding to the environment Y.
Optionally, the request is an HTTP request.
According to the embodiment of the application, a method for configuring a synchronous interface in multiple environments is provided, and the method comprises the following steps:
determining an environment Y to be synchronized after a new interface is input into an environment X, wherein the environment Y is any environment except the environment X in the multiple environments;
configuring an environment to be synchronized as an address of the environment Y;
sending a synchronization request of the interface to an environment Y to be synchronized;
and after receiving a pulling request of the interface configuration initiated by the environment Y, returning the interface configuration of the new input interface to the environment Y.
Optionally, after receiving a pull request of the interface configuration initiated by the environment Y, returning the interface configuration of the new entry interface to the environment Y, specifically including:
and after receiving a pull request initiated by the environment Y, acquiring the interface configuration of the new input interface from a core configuration system corresponding to the environment X, and returning the interface configuration to the environment Y, wherein the core configuration system is used for recording the interface configuration.
Optionally, the request is an HTTP request.
According to the embodiment of the application, a method for configuring a synchronous interface in multiple environments is provided, and the method comprises the following steps:
after determining an environment Y to be synchronized, configuring an interface configuration pull environment of the environment Y as an address of an environment X of a new input interface;
after receiving a synchronization request aiming at the new input interface sent by the environment X, initiating a pulling request of interface configuration to the interface configuration pulling environment X;
and after receiving the interface configuration returned by the environment X, recording the interface configuration for the gateway of the environment Y to use.
Optionally, the recording the interface configuration specifically includes:
recording the interface configuration into a core configuration system corresponding to the environment Y; wherein, the core configuration system is used for recording interface configuration.
Optionally, the request is an HTTP request.
According to the embodiment of the application, a device for configuring a synchronous interface in multiple environments is provided, and the device comprises:
the device comprises a to-be-synchronized environment determining unit, a synchronization unit and a synchronization unit, wherein the to-be-synchronized environment determining unit determines an environment Y to be synchronized after a new interface is input into an environment X, and the environment Y is any environment except the environment X in the multiple environments;
the environment to be synchronized is configured as the address of the environment Y by the environment to be synchronized configuration unit;
the synchronous request sending unit is used for sending a synchronous request of the interface to the environment Y to be synchronized;
and the interface configuration returning unit returns the interface configuration of the new input interface to the environment Y after receiving the pull request of the interface configuration initiated by the environment Y.
Optionally, the interface configuration returning unit specifically includes:
and the interface configuration returning subunit is configured to, after receiving the pull request initiated by the environment Y, obtain the interface configuration of the new entry interface from the core configuration system corresponding to the environment X, and return the interface configuration to the environment Y, where the core configuration system is configured to record the interface configuration.
Optionally, the request is an HTTP request.
According to the embodiment of the application, a device for configuring a synchronous interface in multiple environments is provided, and the device comprises:
the pull environment configuration unit is used for configuring an interface configuration pull environment of an environment Y into an address of an environment X of a new input interface after the environment Y to be synchronized is determined;
a pull request initiating unit, configured to initiate a pull request of interface configuration to the interface configuration pull environment X after receiving a synchronization request for the new entry interface sent by the environment X;
and the interface configuration recording unit is used for recording the interface configuration after receiving the interface configuration returned by the environment X so as to be used by the gateway of the environment Y.
Optionally, the interface configuration recording unit specifically includes:
the interface configuration recording subunit records the interface configuration to a core configuration system corresponding to the environment Y after receiving the interface configuration returned by the environment X, so as to be used by a gateway of the environment Y; wherein, the core configuration system is used for recording interface configuration.
Optionally, the request is an HTTP request.
In the embodiment of the application, the to-be-synchronized environment of the environment X is configured to be the address of the environment Y, and the interface configuration of the environment Y is pulled to configure the environment to be the address of the environment X, so that the relation between the environment X and the environment Y is established, the isolation between different environments can be bypassed, the interface configuration can be automatically synchronized to other environments Y after any one environment X is newly configured with one interface under multiple environments, and the efficiency of the configuration of the synchronous interface is greatly improved; the problems that a manual mode is easy to make mistakes and the labor cost is high are solved; moreover, consistency of interface configuration in different environments is facilitated to be maintained.
Drawings
FIG. 1 is a flow chart illustrating a method for synchronizing interface configuration in multiple environments according to an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating a method for synchronizing interface configuration in multiple environments according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method for synchronizing interface configuration in multiple environments according to an embodiment of the present application;
FIG. 4 is a hardware block diagram of a device for synchronizing interface configuration in multiple environments provided by the present application;
FIG. 5 is a block diagram of an apparatus for multi-environment synchronous interface configuration according to an embodiment of the present application;
FIG. 6 is a hardware block diagram of a device for synchronizing interface configuration in multiple environments provided by the present application;
fig. 7 is a block diagram of an apparatus configured to synchronize interfaces in multiple environments according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
To solve the above problem, please refer to fig. 1, which is a flowchart of a method for configuring a synchronous interface in multiple environments according to an embodiment of the present application, the method includes the following steps:
step 110: after an interface is newly recorded in any environment X, determining an environment Y to be synchronized, wherein the environment Y is any environment except the environment X in the multiple environments.
In this embodiment, the interface is a software-oriented interface, and is generally a specific calling specification that some application or program provides all or part of its service to the outside, and may include various calling forms, such as HTTP call, js call, sdk call, and the like.
The number of determined environments Y to be synchronized may be 1 or more.
For example, all other environments except the environment X in the multi-environment may be determined as the environment Y to be synchronized.
Alternatively, it may be determined 1 or more environments Y to be synchronized according to a user instruction.
Step 120: and configuring the environment to be synchronized of the environment X as the address of the environment Y, and configuring the interface configuration pull environment of the environment Y as the address of the environment X, thereby establishing the relation between the environment X and the environment Y.
In this embodiment, the address of the environment Y may be an HTTP address or an HTTP address of the environment Y;
similarly, the address of the environment X may be an HTTP address or an HTTP address of the environment X.
By configuring the environment to be synchronized of the environment X as the address of the environment Y, the environment X can be enabled to initiate to the environment Y
Step 130: and the environment X sends a synchronization request of the interface to the environment Y to be synchronized.
In this embodiment, since the to-be-synchronized environment of the environment X is configured as the address of the environment Y in step 120, the environment X may send the synchronization request of the interface to the to-be-synchronized environment Y.
The synchronous request is used for prompting the environment Y, a new interface is input in the i environment X, and the interface configuration of the interface can be pulled from the environment X, so that the purpose of synchronous interface configuration is fulfilled.
Generally, the synchronization request may be, for example, an HTTP request, or the like.
Step 140: and after receiving the synchronous request, the environment Y initiates a pull request of the interface configuration to an interface configuration pull environment X.
In this embodiment, since the interface configuration pull environment of the environment Y is configured as the address of the environment X in step 120, the environment Y may initiate a pull request of the interface configuration to the interface configuration pull environment X after receiving the interface synchronization request sent by the environment X.
And the pulling request is used for pulling the interface configuration of the new input interface to the environment X, so that the aim of synchronizing the interface configuration is fulfilled.
Generally, the pull request may be, for example, an HTTP request, or the like.
Step 150: and after receiving the pulling request, the environment X returns the interface configuration of the new entry interface to the environment Y.
Step 160: and after receiving the returned interface configuration, the environment Y records the interface configuration so as to be used by a gateway of the environment Y.
In this embodiment, the interface configuration includes a basic configuration, a distribution configuration, and the like.
The basic configuration can comprise basic information such as interface name, parameters, type and the like;
the distribution configuration may include the address, manner in which the interface service route is provided.
In general, the gateway may route to a corresponding interface service system, which is a system providing interface services, according to the distribution configuration.
According to the embodiment of the application, the to-be-synchronized environment of the environment X is configured to be the address of the environment Y, and the interface configuration of the environment Y is pulled to configure the environment to be the address of the environment X, so that the relation between the environment X and the environment Y is established, the isolation between different environments can be bypassed, the interface configuration can be automatically synchronized to other environments Y after any one environment X is newly configured with one interface under multiple environments, and the efficiency of synchronous interface configuration is greatly improved; the problems that a manual mode is easy to make mistakes and the labor cost is high are solved; moreover, consistency of interface configuration in different environments is facilitated to be maintained.
In practical application, each environment may correspond to a core configuration system for recording interface configuration.
Therefore, the step 150 may specifically include:
and after receiving the pull request, the environment X acquires the interface configuration of the new input interface from a core configuration system corresponding to the environment X and returns the interface configuration to the environment Y.
Correspondingly, the step 160 may specifically include:
and after receiving the returned interface configuration, the environment Y records the interface configuration into a core configuration system corresponding to the environment Y.
An embodiment of the method based on environment X of the present application is described below with reference to fig. 2, and the embodiment may correspond to fig. 1:
step 210: determining an environment Y to be synchronized after a new interface is input into an environment X, wherein the environment Y is any environment except the environment X in a multi-environment;
step 220: configuring an environment to be synchronized as an address of the environment Y;
step 230: sending a synchronization request of the interface to an environment Y to be synchronized;
step 240: and after receiving a pulling request of the interface configuration initiated by the environment Y, returning the interface configuration of the new input interface to the environment Y.
As in the foregoing embodiment, in this embodiment, the address of the environment Y may be an HTTP address or an HTTP address of the environment Y.
The number of the determined environments Y to be synchronized is 1 or more.
The synchronization request may be, for example, an HTTP request, or the like.
In a specific embodiment, the step 240 may specifically include:
and after receiving a pull request initiated by the environment Y, acquiring the interface configuration of the new input interface from a core configuration system corresponding to the environment X, and returning the interface configuration to the environment Y, wherein the core configuration system is used for recording the interface configuration.
An embodiment of the method based on environment Y of the present application is described below with reference to fig. 3, and the embodiment may correspond to fig. 1:
step 310: after determining an environment Y to be synchronized, configuring an interface configuration pull environment of the environment Y as an address of an environment X of a new input interface;
step 320: after receiving a synchronization request aiming at the new input interface sent by the environment X, initiating a pulling request of interface configuration to the interface configuration pulling environment X;
step 330: and after receiving the interface configuration returned by the environment X, recording the interface configuration for the gateway of the environment Y to use.
As in the foregoing embodiment, in this embodiment, the address of the environment X may be an HTTP address or an HTTP address of the environment X.
The pull request may be, for example, an HTTP request, or the like.
In a specific embodiment, the recording the interface configuration may specifically include:
recording the interface configuration into a core configuration system corresponding to the environment Y; wherein, the core configuration system is used for recording interface configuration.
Corresponding to the foregoing method embodiments for configuring a multi-environment synchronous interface, the present application further provides embodiments of an apparatus for configuring a multi-environment synchronous interface.
Embodiments of the apparatus for synchronizing interface configurations in an environment of the present application may be applied to environment X. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 4, a hardware structure diagram of a device configured by a synchronization interface in a multi-environment according to the present application is shown, except for the processor, the network interface, the memory, and the nonvolatile memory shown in fig. 4, the device in the embodiment may also include other hardware according to an actual function configured by the synchronization interface in the multi-environment, which is not described again.
Referring to fig. 5, a block diagram of an apparatus for configuring a multi-environment synchronous interface according to an embodiment of the present application is provided, where the apparatus includes: a to-be-synchronized environment determining unit 410, a to-be-synchronized environment configuring unit 420, a synchronization request transmitting unit 430, and an interface configuration returning unit 440.
The to-be-synchronized environment determining unit 410 determines an environment Y to be synchronized after a new interface is entered into an environment X, where the environment Y is any environment except the environment X in the multiple environments;
a to-be-synchronized environment configuration unit 420, configured to configure the to-be-synchronized environment as the address of the environment Y;
a synchronization request sending unit 430, configured to send a synchronization request of the interface to the environment to be synchronized Y;
the interface configuration returning unit 440 returns the interface configuration of the new entry interface to the environment Y after receiving the pull request of the interface configuration initiated by the environment Y.
In an alternative embodiment:
the interface configuration returning unit specifically includes:
and the interface configuration returning subunit is configured to, after receiving the pull request initiated by the environment Y, obtain the interface configuration of the new entry interface from the core configuration system corresponding to the environment X, and return the interface configuration to the environment Y, where the core configuration system is configured to record the interface configuration.
In an alternative embodiment:
the request is an HTTP request.
Corresponding to the foregoing method embodiments for configuring a multi-environment synchronous interface, the present application further provides embodiments of an apparatus for configuring a multi-environment synchronous interface.
Embodiments of the apparatus for synchronizing interface configurations in an environment of the present application may be applied to environment Y. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 6, a hardware structure diagram of a device configured by a synchronization interface in a multi-environment according to the present application is shown, except for the processor, the network interface, the memory, and the nonvolatile memory shown in fig. 6, the device in the embodiment may also include other hardware according to an actual function configured by the synchronization interface in the multi-environment, which is not described again.
Referring to fig. 7, a block diagram of an apparatus for configuring a multi-environment synchronous interface according to an embodiment of the present application is shown, where the apparatus includes: a pull environment configuration unit 510, a pull request initiation unit 520, and an interface configuration recording unit 530.
A pull environment configuration unit 510, configured to configure, after determining an environment Y to be synchronized, an interface configuration pull environment of the environment Y as an address of an environment X of a newly entered interface;
a pull request initiating unit 520, configured to initiate a pull request of interface configuration to the interface configuration pull environment X after receiving the synchronization request for the new entry interface sent by the environment X;
and an interface configuration recording unit 530, configured to record the interface configuration returned by the environment X for use by the gateway of the environment Y after receiving the interface configuration.
In an alternative embodiment:
the interface configuration recording unit specifically includes:
the interface configuration recording subunit records the interface configuration to a core configuration system corresponding to the environment Y after receiving the interface configuration returned by the environment X, so as to be used by a gateway of the environment Y; wherein the core configuration system is used for recording interface configuration
In an alternative embodiment:
the request is an HTTP request.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application 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 application is limited only by the appended claims.

Claims (15)

1. A method for synchronizing interface configuration in multiple environments, the method comprising:
determining an environment Y to be synchronized after a new interface is input into any environment X, wherein the environment Y is any environment except the environment X in the multiple environments; the multiple environments include a development environment, a test environment, and a production environment;
configuring the environment to be synchronized of the environment X as the address of the environment Y, and configuring the interface configuration pull environment of the environment Y as the address of the environment X, thereby establishing the relation between the environment X and the environment Y;
the environment X sends a synchronization request of the interface to an environment Y to be synchronized;
after receiving the synchronous request, the environment Y initiates a pull request of interface configuration to an interface configuration pull environment X;
after receiving the pull request, the environment X returns the interface configuration of the new input interface to the environment Y;
and after receiving the returned interface configuration, the environment Y records the interface configuration so as to be used by a gateway of the environment Y.
2. The method according to claim 1, wherein the returning, by the environment X after receiving the pull request, the interface configuration of the new entry interface to the environment Y specifically includes:
after receiving the pull request, the environment X acquires the interface configuration of the new entry interface from a core configuration system corresponding to the environment X, and returns the interface configuration to the environment Y, wherein the core configuration system is used for recording the interface configuration;
after receiving the returned interface configuration, the environment Y records the interface configuration, and specifically includes:
and after receiving the returned interface configuration, the environment Y records the interface configuration into a core configuration system corresponding to the environment Y.
3. The method of claim 1, wherein the request is an HTTP request.
4. A method for synchronizing interface configuration in multiple environments, the method comprising:
determining an environment Y to be synchronized after a new interface is input into an environment X, wherein the environment Y is any environment except the environment X in the multiple environments; the multiple environments include a development environment, a test environment, and a production environment;
configuring an environment to be synchronized as an address of the environment Y;
sending a synchronization request of the interface to an environment Y to be synchronized;
and after receiving a pulling request of the interface configuration initiated by the environment Y, returning the interface configuration of the new input interface to the environment Y.
5. The method according to claim 4, wherein the returning the interface configuration of the new entry interface to the environment Y after receiving the pull request of the interface configuration initiated by the environment Y specifically includes:
and after receiving a pull request initiated by the environment Y, acquiring the interface configuration of the new input interface from a core configuration system corresponding to the environment X, and returning the interface configuration to the environment Y, wherein the core configuration system is used for recording the interface configuration.
6. The method of claim 4, wherein the request is an HTTP request.
7. A method for synchronizing interface configurations in multiple environments, the multiple environments including a development environment, a test environment, and a production environment, the method comprising:
after determining an environment Y to be synchronized, configuring an interface configuration pull environment of the environment Y as an address of an environment X of a new input interface;
after receiving a synchronization request aiming at the new input interface sent by the environment X, initiating a pulling request of interface configuration to the interface configuration pulling environment X;
and after receiving the interface configuration returned by the environment X, recording the interface configuration for the gateway of the environment Y to use.
8. The method according to claim 7, wherein the recording the interface configuration specifically includes:
recording the interface configuration into a core configuration system corresponding to the environment Y; wherein, the core configuration system is used for recording interface configuration.
9. The method of claim 7, wherein the request is an HTTP request.
10. An apparatus for synchronizing interface configurations in a multi-environment, the apparatus comprising:
the device comprises a to-be-synchronized environment determining unit, a synchronization unit and a synchronization unit, wherein the to-be-synchronized environment determining unit determines an environment Y to be synchronized after a new interface is input into an environment X, and the environment Y is any environment except the environment X in the multiple environments; the multiple environments include a development environment, a test environment, and a production environment;
the environment to be synchronized is configured as the address of the environment Y by the environment to be synchronized configuration unit;
the synchronous request sending unit is used for sending a synchronous request of the interface to the environment Y to be synchronized;
and the interface configuration returning unit returns the interface configuration of the new input interface to the environment Y after receiving the pull request of the interface configuration initiated by the environment Y.
11. The apparatus according to claim 10, wherein the interface configuration returning unit specifically includes:
and the interface configuration returning subunit is configured to, after receiving the pull request initiated by the environment Y, obtain the interface configuration of the new entry interface from the core configuration system corresponding to the environment X, and return the interface configuration to the environment Y, where the core configuration system is configured to record the interface configuration.
12. The apparatus of claim 10, wherein the request is an HTTP request.
13. An apparatus for synchronizing interface configurations in multiple environments, the multiple environments including a development environment, a test environment, and a production environment, the apparatus comprising:
the pull environment configuration unit is used for configuring an interface configuration pull environment of an environment Y into an address of an environment X of a new input interface after the environment Y to be synchronized is determined;
a pull request initiating unit, configured to initiate a pull request of interface configuration to the interface configuration pull environment X after receiving a synchronization request for the new entry interface sent by the environment X;
and the interface configuration recording unit is used for recording the interface configuration after receiving the interface configuration returned by the environment X so as to be used by the gateway of the environment Y.
14. The apparatus according to claim 13, wherein the interface configuration recording unit specifically includes:
the interface configuration recording subunit records the interface configuration to a core configuration system corresponding to the environment Y after receiving the interface configuration returned by the environment X, so as to be used by a gateway of the environment Y; wherein, the core configuration system is used for recording interface configuration.
15. The apparatus of claim 13, wherein the request is an HTTP request.
CN201611254988.XA 2016-12-30 2016-12-30 Method and device for configuring synchronous interface in multi-environment Active CN106878056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611254988.XA CN106878056B (en) 2016-12-30 2016-12-30 Method and device for configuring synchronous interface in multi-environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611254988.XA CN106878056B (en) 2016-12-30 2016-12-30 Method and device for configuring synchronous interface in multi-environment

Publications (2)

Publication Number Publication Date
CN106878056A CN106878056A (en) 2017-06-20
CN106878056B true CN106878056B (en) 2020-05-19

Family

ID=59165324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611254988.XA Active CN106878056B (en) 2016-12-30 2016-12-30 Method and device for configuring synchronous interface in multi-environment

Country Status (1)

Country Link
CN (1) CN106878056B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650815B (en) * 2021-01-19 2023-06-16 青岛海尔科技有限公司 Method and device for synchronizing environment data, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7953865B1 (en) * 2009-12-28 2011-05-31 Amazon Technologies, Inc. Using virtual networking devices to manage routing communications between connected computer networks
CN102289460A (en) * 2011-07-13 2011-12-21 中国工商银行股份有限公司 Method and system for performing report metadata synchronization on testing environments
CN104320442A (en) * 2014-10-10 2015-01-28 浙江天正思维信息技术有限公司 Application system presentation layer integrated technical platform and integrated mode and method formed thereby

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7962575B2 (en) * 2003-11-03 2011-06-14 Grape Technology Group, Inc. System and method for data synchronization between devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7953865B1 (en) * 2009-12-28 2011-05-31 Amazon Technologies, Inc. Using virtual networking devices to manage routing communications between connected computer networks
CN102289460A (en) * 2011-07-13 2011-12-21 中国工商银行股份有限公司 Method and system for performing report metadata synchronization on testing environments
CN104320442A (en) * 2014-10-10 2015-01-28 浙江天正思维信息技术有限公司 Application system presentation layer integrated technical platform and integrated mode and method formed thereby

Also Published As

Publication number Publication date
CN106878056A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
JP7351907B2 (en) Online document sharing methods, devices, electronic devices and storage media
KR101750429B1 (en) Document editing system and method for collaborative editing
EP2634682A2 (en) Apparatus and method for creating a shortcut menu
CN105515872B (en) The update method of configuration information, apparatus and system
JP5909459B2 (en) Message transmission / reception support system, message transmission / reception support program, and message transmission / reception support method
CN110069919B (en) Information acquisition method and device
CN110007936B (en) Data processing method and device
US20200328907A1 (en) Method, system, and non-transitory computer-readable record medium for providing multiple group calls in one chatroom
CN111464424A (en) Information sharing method, system and non-transitory computer-readable recording medium
US11916983B2 (en) Reducing setup time for online meetings
US20220350681A1 (en) Method, system, and non-transitory computer-readable record medium for managing event messages and system for presenting conversation thread
CN106878056B (en) Method and device for configuring synchronous interface in multi-environment
CN110231923A (en) Data managing method and device
US9577967B2 (en) Method and system for managing an informational site using a social networking application
US9887948B2 (en) Augmenting location of social media posts based on proximity of other posts
CN105204718B (en) Information processing method and electronic equipment
JP6314111B2 (en) TERMINAL DEVICE, TERMINAL DEVICE CONTROL METHOD, AND TERMINAL DEVICE CONTROL PROGRAM
CN106651272B (en) Method and equipment for managing distribution information and mobile terminal
CN114827060B (en) Interaction method and device and electronic equipment
CN109818851A (en) A kind of information persistence method, device and electronic equipment
US11258838B2 (en) Method, system, and non-transitory computer readable record medium for processing chatroom based on usage
CN113163257B (en) Screen projection method, device, equipment and storage medium
CN110557414B (en) Method, device and equipment for downloading service scene
JP6491308B2 (en) TERMINAL DEVICE CONTROL PROGRAM, TERMINAL DEVICE CONTROL METHOD, AND TERMINAL DEVICE
CN112596831A (en) Content display method and device, server and terminal

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
TR01 Transfer of patent right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right