Debuggable deployment architecture for cloud-based software applications
The system facilitates efficient debugging of cloud-based software applications by using a split DNS proxy and local traffic support engines to redirect requests to development service engines, addressing the challenges of reconfiguration and scalability in debugging cloud-based applications.
Patent Information
- Application Number
- PCT/CA2024/050594
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-04
- Filing Date
- 2024-05-02
- Publication Date
- 2024-11-07
AI Technical Summary
Debugging cloud-based software applications is challenging due to the non-deterministic nature of service discovery engines and the difficulty in routing traffic to development service engines without significant reconfiguration, which can introduce errors and is impractical for large-scale applications.
A system comprising a split DNS proxy engine, local traffic support engine, and development support service engine that allows seamless redirection of requests to a development service engine on a developer computing device, using a name lookup table and service routing table to manage service intercepts and reconfigure traffic without affecting the production environment.
Enables efficient debugging of cloud-based software applications by allowing traffic to be routed to development service engines locally, reducing reconfiguration errors and handling large-scale applications without overwhelming developer computing resources.
Smart Images

Figure CA2024050594_07112024_PF_FP_ABST
Abstract
Description
DEBUGGABLE DEPLOYMENT ARCHITECTURE FOR CLOUD-BASED SOFTWAREAPPLICATIONSCROSS-REFERENCE(S) TO RELATED APPLICATION(S)
[0001] This application claims the benefit of Provisional Application No. 63 / 500138, filed May 4, 2023, the entire disclosure of which is hereby incorporated by reference herein for all purposes.TECHNICAL FIELD
[0002] This disclosure relates generally to cloud computing, and in particular but not exclusively, relates to architectures for software deployed in a cloud computing environment.BACKGROUND
[0003] Cloud-based software applications, in which complex services are provided by one or more microservices deployed in a cloud computing environment, are becoming increasingly popular. The reliability and scalability provided by cloud computing systems is an attractive deployment option for developers seeking to provide Internet-grade services without having to implement distributed computing features from the ground up.SUMMARY
[0004] This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This summary is not intended to identify key features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
[0005] In some embodiments, a system for efficient development of software-based services is provided. The system comprises a container orchestration system and at least one developer computing device. The container orchestration system includes a service discovery engine and a development support service engine. The at least one developer computing device includes a split domain name service (DNS) proxy engine and a local traffic support engine. The split DNS proxy engine is configured to: receive a request to resolve a host name to a network address; determine whether the host name is associated with a service provided by the container orchestration system; in response to determining that the host name is associated with a service provided by the container orchestration system, resolve the host name to a local networkaddress associated with the local traffic support engine according to an entry in a name lookup table; and in response to determining that the host name is not associated with a service provided by the container orchestration system, provide the request to a default DNS server.
[0006] In some embodiments, a method for efficient development of software-based services is provided. A split DNS proxy engine of a developer computing device receives a request to resolve a host name to a network address. The split DNS proxy engine determines whether the host name is associated with a service provided by a container orchestration system. In response to determining that the host name is associated with a service provided by the container orchestration system, the split DNS proxy engine resolves the host name to a local network address associated with a local traffic support engine of the developer computing device according to an entry in a name lookup table. In response to determining that the host name is not associated with a service provided by the container orchestration system, the split DNS proxy engine provides the request to a default DNS server.BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The foregoing aspects and many of the attendant advantages of this invention will become more readily appreciated as the same become better understood by reference to the following detailed description, when taken in conjunction with the accompanying drawings, wherein:
[0008] FIG. l is a block diagram that illustrates a typical deployment architecture for a cloudbased software application.
[0009] FIG. 2 is a block diagram that illustrates aspects of a non-limiting example embodiment of a container orchestration system according to various aspects of the present disclosure.
[0010] FIG. 3 is a schematic diagram of an end user computing device accessing functionality of a cloud-based software application according to various aspects of the present disclosure.
[0011] FIG. 4 is a block diagram that illustrates aspects of a non-limiting example embodiment of a developer computing device according to various aspects of the present disclosure.
[0012] FIG. 5A - FIG. 5C are a flowchart that illustrates a non-limiting example embodiment of a method for providing configurable redirection of requests to microservices of a cloudbased software application according to various aspects of the present disclosure.
[0013] FIG. 6 illustrates a non-limiting example embodiment of a service routing table according to various aspects of the present disclosure.
[0014] FIG. 7A - FIG. 7C are charts that illustrate non-limiting example embodiments of a name lookup table, a traffic support table, and a local traffic map table according to various aspects of the present disclosure.
[0015] FIG. 8A and FIG. 8B are partial illustrations of requests transmitted by the local HTTP proxy engine 414 to the development support service engine 210 according to various aspects of the present disclosure.
[0016] FIG. 9 is a schematic diagram of a non-limiting example embodiment of operations of the system for providing configurable redirection of requests to microservices of a cloud-based software application according to various aspects of the present disclosure.
[0017] FIG. 10A - FIG. 10D illustrate a non-limiting example embodiment of a user interface for configuring communication within the system according to various aspects of the present disclosure.DETAILED DESCRIPTION
[0018] FIG. l is a block diagram that illustrates a typical deployment architecture for a cloudbased software application. The cloud-based software application is executed by a cloud service provider such as a container orchestration system 104, and is accessed by one or more end user computing devices 110. The container orchestration system 104 is configured to provide the ability to discover services provided by the developed services 112, provide name resolution for services provided by the developed services 112, provide lifecycle management for developed services 112, and load balance requests between developed services 112. One non-limiting example of a container orchestration system 104 is Kubernetes, though in other embodiments, other types of container orchestration systems may be used. The end user computing devices 110 may include any type of computing device capable of accessing the cloud-based software application, including but not limited to laptop computing devices, mobile computing devices (e.g., smartphones, tablets, etc.), desktop computing devices, server computing devices, and / or computing devices of a cloud computing system.
[0019] A cloud-based software application is provided by the container orchestration system 104 as a set of one or more developed services 112. Typically, various functions of the software application will be split up into separate services, or “microservices." This has beenfound to provide various benefits. For example, functionality in an existing developed service 112 can be updated and deployed without having to alter any of the other developed services 112, and new functionality can be added by adding an additional developed service 112 without altering any of the other developed services 112. As another example, multiple copies of a given developed service 112 may be instantiated by the container orchestration system 104 to provide geographically distributed functionality, to provide load balancing, or for other reasons, without having to instantiate all of the developed services 112 multiple times.
[0020] Developed services 112 may communicate with each other, and / or may communicate with one or more third-party services 108, in order to provide the functionality of the cloudbased software application. In some embodiments, the third-party services 108 may be other services provided by the container orchestration system 104 as illustrated in FIG. 1. In other embodiments, one or more of the third-party services 108 may be provided outside of the container orchestration system 104. In some embodiments, the third-party services 108 may block direct access by developer computing devices 102 and / or end user computing devices 110, and may only be accessible via the container orchestration system 104.
[0021] The developed services 112 are created by software developers using one or more developer computing devices 102. A typical workflow for the creation of a developed service 112 may include a developer using a developer computing device 102 to write code for the developed service 112, build the developed service 112 (e.g., compile human-readable software code into machine-executable software code), and test the developed service 112. After local testing of the developed service 112 has been completed, the developer uses the developer computing device 102 to deploy the developed service 112 in the container orchestration system 104.
[0022] The present disclosure uses the terms “developed service,” “production service engine,” and “development service engine” to refer to services of the cloud-based software application. The term “developed service” may refer to any service of the cloud-based software application, and is described as “developed” to indicate that it is designed, created, deployed, tested, and / or maintained by the developer computing devices 102. The term “production service engine” may refer to an instance of a developed service that is instantiated by the container orchestration system 104 and which may be accessed to provide functionality to end user computing devices 110. The term “development service engine” may refer to an instance of a developed service that is instantiated by a developer computing device 102 and which maybe accessed by its instantiating developer computing device 102 or by other developer computing devices 102. Further descriptions of production service engines and development service engines are provided below.
[0023] FIG. 2 is a block diagram that illustrates aspects of a non-limiting example embodiment of a container orchestration system according to various aspects of the present disclosure. While typically implemented using one or more computing devices of a cloud computing system, the illustrated container orchestration system 104 may be implemented by any computing device or collection of computing devices, including but not limited to desktop computing devices, laptop computing devices, mobile computing devices, server computing devices, and / or combinations thereof.
[0024] The container orchestration system 104 is configured to provide services for providing one or more cloud-based software applications for access by end user computing devices 110. For example, the container orchestration system 104 may provide services for deploying, maintaining, load balancing, and scaling cloud-based software applications across one or more physical computing devices. The container orchestration system 104 includes a variety of additional functionality for providing cloud-based software applications that is not expressly listed herein, but that is known to those of ordinary skill in the art.
[0025] As shown, the container orchestration system 104 includes one or more computing devices that each include one or more processors 202, and one or more communication interfaces 204. In some embodiments, the processors 202 may include any suitable type of general-purpose computer processor. In some embodiments, the processors 202 may include one or more special-purpose computer processors or Al accelerators optimized for specific computing tasks, including but not limited to graphical processing units (GPUs), vision processing units (VPUs), and tensor processing units (TPUs). In some embodiments, the communication interfaces 204 include one or more hardware and or software interfaces suitable for providing communication links between components. The communication interfaces 204 may support one or more wired communication technologies (including but not limited to Ethernet, FireWire, and USB), one or more wireless communication technologies (including but not limited to Wi-Fi, WiMAX, Bluetooth, 2G, 3G, 4G, 5G, and LTE), and / or combinations thereof.
[0026] Collectively, the computing devices of the container orchestration system 104 also provide a service routing table 208 and a computer-readable medium 206 that has storedthereon logic that, in response to execution by one or more processors 202, causes the associated computing device to provide a development support service engine 210, a service discovery engine 212, and one or more production service engines 214. In some embodiments, the computer-readable medium 206 may include a shared computer-readable medium accessible by multiple computing devices of the container orchestration system 104, including but not limited to a cloud storage service or a shared networked drive. In some embodiments, the computer-readable medium 206 may be split across multiple storage devices, including but not limited to storage devices within separate computing devices of the container orchestration system 104.
[0027] As used herein, "engine" refers to logic embodied in hardware or software instructions, which can be written in one or more programming languages, including but not limited to C, C++, C#, COBOL, JAVA™, PHP, Perl, HTML, CSS, JavaScript, VBScript, ASPX, Go, and Python. An engine may be compiled into executable programs or written in interpreted programming languages. Software engines may be callable from other engines or from themselves. Generally, the engines described herein refer to logical modules that can be merged with other engines, or can be divided into sub-engines. The engines can be implemented by logic stored in any type of computer-readable medium or computer storage device and be stored on and executed by one or more general purpose computers, thus creating a special purpose computer configured to provide the engine or the functionality thereof. The engines can be implemented by logic programmed into an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or another hardware device. In some embodiments, the engines provided by the container orchestration system 104 may be containerized, such as being provided by Docker containers (or other types of containers), and deployed / executed using cloud computing techniques.
[0028] In some embodiments, the service discovery engine 212 is a standard component of the container orchestration system 104 and is used to route requests to various engines (e.g., engines of developed services 112) instantiated by the container orchestration system 104. Examples of a service discovery engine 212 provided by Kubernetes include the kube-dns service or the CoreDNS service, though in other container orchestration systems 104, other services may be used as the service discovery engine 212. In some embodiments, the production service engines 214 include one or more engines for collectively providing thecloud-based software application that are accessed by end user computing devices 110 via the service discovery engine 212.
[0029] In some embodiments, the development support service engine 210 is an engine added to the container orchestration system 104 that is configured to receive requests from developer computing devices 102 and to provide them for traditional processing by the service discovery engine 212 or to provide them to a development service engine 416 executing on an intercept device, depending on entries in the service routing table 208. An intercept device is a developer computing device 102 configured within the system 100 to receive requests in place of a production service engine 214, as described in further detail below. In some embodiments, the development support service engine 210 is configured to receive and store information including intercept device presence, service availability of one or more development service engines 416 on one or more developer computing devices 102, and service intercept indicator information (associations between a given service intercept indicator and a given development service engine 416 on a given intercept device). In some embodiments, the development support service engine 210 may also be configured to provide traffic to one or more third-party services 108 which are outside of the container orchestration system 104 and are not provided by a developer computing device 102. This may allow the development support service engine 210 to provide access to the third-party service 108 for developer computing devices 102, even if direct access to the third-party service 108 from the developer computing devices 102 is restricted (but is allowed from the container orchestration system 104).
[0030] Further description of the configuration of each of these components is provided below.
[0031] In some embodiments, the service routing table 208 (or other tables disclosed herein) may be stored in a data store. As used herein, "data store" refers to any suitable device configured to store data for access by a computing device. One example of a data store is a highly reliable, high-speed relational database management system (DBMS) executing on one or more computing devices and accessible over a high-speed network. Another example of a data store is a key-value store. However, any other suitable storage technique and / or device capable of quickly and reliably providing the stored data in response to queries may be used, and the computing device may be accessible locally instead of over a network, or may be provided as a cloud-based service. A data store may also include data stored in an organized manner on a computer-readable storage medium, such as a hard disk drive, a flash memory,RAM, ROM, or any other type of computer-readable storage medium. One of ordinary skill in the art will recognize that separate data stores described herein may be combined into a single data store, and / or a single data store described herein may be separated into multiple data stores, without departing from the scope of the present disclosure.
[0032] As used herein, "computer-readable medium" refers to a removable or nonremovable device that implements any technology capable of storing information in a volatile or nonvolatile manner to be read by a processor of a computing device, including but not limited to: a hard drive; a flash memory; a solid state drive; random-access memory (RAM); read-only memory (ROM); a CD-ROM, a DVD, or other disk storage; a magnetic cassette; a magnetic tape; and a magnetic disk storage.
[0033] FIG. 3 is a schematic diagram of an end user computing device accessing functionality of a cloud-based software application according to various aspects of the present disclosure.
[0034] To access functionality of the cloud-based software application, the end user computing device 110 transmits a request (e.g., a hypertext transfer protocol request (HTTP request)) via a web browser, to a network address (e.g., an Internet protocol (IP) address) associated with the cloud-based software application. Typically, the container orchestration system 104 provides a stable network address associated with a host name to identify the cloudbased software application, and the end user computing device 110 uses a domain name system server (DNS server, such as DNS server 106), to resolve the host name into the network address. Typically, the network address provided by the container orchestration system 104 is associated with a computing device providing the service discovery engine 212.
[0035] Once the service discovery engine 212 receives the request, the service discovery engine 212 determines a production service engine 214 to handle the request. The service discovery engine 212 may use any suitable technique to choose a production service engine 214 to handle the request, including but not limited to round robin techniques, techniques that choose a production service engine 214 that is geographically close to the end user computing device 110 to minimize latency, techniques that choose a production service engine 214 on a device with a minimum processor load, or any other suitable technique. The service discovery engine 212 then provides the request to the determined production service engine 214, and a connection is formed between the production service engine 214 and the end user computing device 110. In some embodiments, forming the connection between the production service engine 214 and the end user computing device 110 may include conducting an HTTPhandshake and allowing an HTTP request and response to be transmitted over the connection. In some embodiments, once the request is received by the production service engine 214, a tunnel may be established between the production service engine 214 and the end user computing device 110 that allows any type of network traffic (e.g., TCP traffic, UDP traffic, or any other network protocol) to be exchanged between the production service engine 214 and the end user computing device 110.
[0036] While the architecture illustrated in FIG. 3 provides many benefits in scalability, reliability, and other areas in a production environment, significant challenges exist in the development and maintenance of such services in a container orchestration system 104. For example, because the production service engines 214 are executed on a computing device of the container orchestration system 104 instead of a developer computing device 102, it is exceedingly difficult, if not impossible, to use a debugger on a developer computing device 102 to inspect a production service engine 214 during execution in order to troubleshoot and address problems. Typically, the container orchestration system 104 will not allow remote debugging connections from developer computing devices 102 for the sake of security, and even if a developer computing device 102 is able to connect into the container orchestration system 104 via a virtual private network or other secure communication technique, the non- deterministic nature of the cloud-based software application that is introduced by the service discovery engine 212 makes debugging incoming requests quite complicated. For example, it cannot be known for certain which production service engine 214 of a plurality of production service engines 214 providing duplicate services will be assigned to handle a specific request, and so a debugger may be attached to the wrong production service engine 214.
[0037] One technique that has been used in the past to allow debugging of a developed service is to replace a production service engine 214 with a development service engine 416 executed on a developer computing device 102. However, significant reconfiguration must be performed in order to move one service from being provided as a production service engine 214 by the container orchestration system 104 to being executed locally as a development service engine 416 in order to connect a debugger. For example, a host name used to access a production service engine 214 of a cloud-based software application in production may be my-app- postgres.c3zftdoled9q.us-west-2.rds.amazonaws.com. A host name used to access the production service engine 214 in a staging environment may be changed to postgres. staging. svc. cluster.local, while a host name for a development environment may bepostgres. develop. svc. cluster. local, and a host name for a local environment may be localhost:5432.
[0038] This reconfiguration is likely to introduce additional errors, and is therefore often unsuitable for using alongside production service engines 214 that are providing services of the cloud-based software application to end user computing devices 110. Another technique is to execute all of the production service engines 214 on the developer computing device 102 in order to debug any one of the production service engines 214. This technique has the same reconfiguration drawbacks as the technique described above, and also may be impractical: it has been determined that roughly 80% of cloud-based software applications run over 50 microservices (i.e., production service engines 214), and 67% of cloud-based software applications run over 200 microservices, and the computing power available to a developer computing device 102 may not be adequate to provide such a large number of production service engines 214.
[0039] Accordingly, what is desired are techniques for seamless automatic reconfiguration that allow traffic to be routed to a development service engine 416 executing locally on the developer computing device 102 without significant reconfiguration of other portions of the cloud-based software application.
[0040] FIG. 4 is a block diagram that illustrates aspects of a non-limiting example embodiment of a developer computing device according to various aspects of the present disclosure. The illustrated developer computing device 102 may be implemented by any computing device or collection of computing devices, including but not limited to a desktop computing device, a laptop computing device, a mobile computing device, a server computing device, a computing device of a cloud computing system, and / or combinations thereof. The developer computing device 102 includes components that, along with the development support service engine 210 deployed on the container orchestration system 104, allow requests to be seamlessly redirected to a development service engine 416 executing on the developer computing device 102 instead of a production service engine 214 executing on the container orchestration system 104, thereby allowing for debugging of the development service engine 416 without other significant reconfiguration of the cloud-based software application.
[0041] As shown, the developer computing device 102 includes one or more processors 402, one or more communication interfaces 404, a name lookup table 408, a local traffic map table 418, a traffic support table 420, and a computer-readable medium 406.
[0042] In some embodiments, the processors 402 may include any suitable type of general- purpose computer processor. In some embodiments, the processors 402 may include one or more special-purpose computer processors or Al accelerators optimized for specific computing tasks, including but not limited to graphical processing units (GPUs), vision processing units (VPUs), and tensor processing units (TPUs). In some embodiments, the communication interfaces 404 include one or more hardware and or software interfaces suitable for providing communication links between components. The communication interfaces 404 may support one or more wired communication technologies (including but not limited to Ethernet, FireWire, and USB), one or more wireless communication technologies (including but not limited to Wi-Fi, WiMAX, Bluetooth, 2G, 3G, 4G, 5G, and LTE), and / or combinations thereof.
[0043] As shown, the computer-readable medium 406 has stored thereon logic that, in response to execution by the one or more processors 402, cause the developer computing device 102 to provide a split DNS proxy engine 410, a local traffic support engine 412, a local HTTP proxy engine 414, and, optionally, one or more development service engines 416.
[0044] In some embodiments, the split DNS proxy engine 410 is configured to register one or more watches with the service discovery engine 212 to receive updates when one or more services provided by the container orchestration system 104 are changed (e.g., started, stopped, etc.). In some embodiments, the split DNS proxy engine 410 is configured to store entries in the name lookup table 408 that associate services provided by the container orchestration system 104 (e.g., services provided by the production service engines 214 to create the cloudbased software application) with local network addresses (e.g., combinations of local IP addresses and port numbers, such as 127.0.0.1 : 1234). In some embodiments, the name lookup table 408 is resident in volatile memory (e.g., RAM) and is updated by the split DNS proxy engine 410 in volatile memory in order to avoid reloading the entire name lookup table 408 into volatile memory every time a change occurs. In systems that may include thousands of services and / or production service engines 214, reloading the entire name lookup table 408 (e.g., as would be done if the name lookup table 408 was merely implemented using a hosts text file as is typical in previous techniques) would be very slow, and updating the name lookup table 408 in volatile memory instead provides orders of magnitude faster performance.
[0045] In some embodiments, upon receiving a message from the container orchestration system 104 that a first service having a first service name is available, the split DNS proxy engine 410 is configured to create a first local network address to be associated with the firstservice name, transmit an instruction to the local traffic support engine 412 to listen to the first local network address and to associate the first local network address with the first service name, and to update the name lookup table 408 to include an entry associating the first local network address and the first service name. Likewise, upon receiving a message from the container orchestration system 104 that the first service having the first service name is no longer available, the split DNS proxy engine 410 is configured to transmit an instruction to the local traffic support engine 412 to stop listening to the first local network address and to update the name lookup table 408 to remove the entry associating the first local network address and the first service name.
[0046] In some embodiments, the local traffic support engine 412 is configured to listen to local network addresses and to forward traffic directed to those local network addresses to the development support service engine 210 as appropriate. In some embodiments, the local traffic support engine 412 may also maintain a socket connection with the development support service engine 210 that allows the development support service engine 210 to open connections back to the local traffic support engine 412 when the associated developer computing device 102 is acting as an intercept device for other developer computing devices 102. In such embodiments, the local traffic support engine 412 may initiate the connection to the development support service engine 210 in order to establish a bi-directional web socket, thus allowing connections from the development support service engine 210 to the local traffic support engine 412 to be more likely to succeed without having to reconfigure a firewall separating the developer computing device 102 from the container orchestration system 104. In some embodiments, configuration of the local traffic support engine 412 is stored in the traffic support table 420. In other embodiments, the local traffic support engine 412 is configured during execution without a separate traffic support table 420. In the present disclosure, embodiments that include a traffic support table 420 are primarily described for the sake of clarity in describing the configuration of the local traffic support engine 412.
[0047] In some embodiments, the local HTTP proxy engine 414 is configured to receive intercept device presence, service availability, and service intercept indicator information from the development support service engine 210. The local HTTP proxy engine 414 is also configured to present a user interface that shows present intercept devices and availability of development service engines 416 / services provided by the intercept devices, as well as availability of services provided by the production service engines 214 of the containerorchestration system 104. The user interface is configured to accept input from a user indicating selections of services provided by intercept devices instead of corresponding services provided by the container orchestration system 104, and to update the local traffic map table 418 based on the input from the user. Illustrations of non-limiting example embodiments of such user interfaces are provided elsewhere in this disclosure.
[0048] Further description of the configuration of each of these components is provided below.
[0049] FIG. 5A - FIG. 5C are a flowchart that illustrates a non-limiting example embodiment of a method for providing configurable redirection of requests to microservices of a cloudbased software application according to various aspects of the present disclosure. In the method 500, the components of a system such as system 100 are used to provide and access the services of the cloud-based software application.
[0050] From a start block, the method 500 proceeds to block 502, where a service discovery engine 212 of a container orchestration system 104 instantiates one or more production service engines 214. In some embodiments, the instantiation of the production service engines 214 may be performed on the basis of a configuration provided by a developer of the cloud-based software application, and the one or more production service engines 214 may collectively provide the functionality of the cloud-based software application for end user computing devices 110.
[0051] At block 504, the service discovery engine 212 receives and processes one or more requests for services using the one or more production service engines 214. The one or more requests may be received from one or more end user computing devices 110. Upon receiving a request for a service, the service discovery engine 212 uses the host name and the service name included in the request to determine a desired service, chooses a production service engine 214 to handle the service, and provides the request to the chosen production service engine 214. In some embodiments, the desired service may be provided by more than one production service engine 214 (e.g., in cases in which multiple copies of a production service engine 214 are instantiated for the sake of scalability or for other reasons), in which case the service discovery engine 212 may use any suitable technique to choose among the multiple copies of the production service engine 214, including but not limited to random selection techniques and round-robin selection techniques. The actions of block 502 and block 504 are typical actions performed in providing a cloud-based software application using a container orchestrationsystem 104, and may include additional actions known to those of ordinary skill in the art. Since these additional actions are known to those of ordinary skill in the art, they are not described in detail herein for the sake of brevity.
[0052] At block 506, the service discovery engine 212 instantiates a development support service engine 210. In some embodiments, the service discovery engine 212 may instantiate the development support service engine 210 in response to a command received from a developer computing device 102, automatically in response to a startup script, or in response to any other suitable triggering event.
[0053] At block 508 a split DNS proxy engine 410 of a developer computing device 102 loads a name lookup table 408 into volatile memory. In some embodiments, the name lookup table 408 may be initialized using a hosts file or other static mapping of host names to network addresses stored in a non-volatile computer-readable medium. In some embodiments, the name lookup table 408 may initially be empty when first loaded into volatile memory at block 508, and may be filled with information based on the split DNS proxy engine 410 transmitting a query to the service discovery engine 212 for services that are available.
[0054] At block 510, the split DNS proxy engine 410 registers one or more watches with the service discovery engine 212 to receive updates when one or more services provided by the container orchestration system 104 are changed. The watches registered by the split DNS proxy engine 410 may cause the service discovery engine 212 to push information to the split DNS proxy engine 410 when a service starts, ends, or otherwise changes state. In some embodiments, the information provided to the split DNS proxy engine 410 includes a host name usable to access each service that may be resolved to a network address using the DNS server 106.
[0055] At block 512, a local traffic support engine 412 of the developer computing device 102 establishes a connection to the development support service engine 210 and informs the development support service engine 210 of executing development service engines 416. The connection between the local traffic support engine 412 and the development support service engine 210 may be established by the local traffic support engine 412 transmitting a request for the services provided by the development support service engine 210 to the service discovery engine 212, and the service discovery engine 212 may transfer the request to the development support service engine 210.
[0056] In some embodiments, the connection established between the local traffic support engine 412 and the development support service engine 210 may remain open (e.g., via a keepalive header or other technique) to allow two-way communication between the development support service engine 210 and the local traffic support engine 412. In some embodiments, the connection between the development support service engine 210 and the local traffic support engine 412 may include a tunnel or other communication technique for transmitting information in formats other than HTTP over the connection. By having this established connection remain open, requests may be rerouted by the development support service engine 210 to a development service engine 416 executing on the developer computing device 102 without running afoul of firewall rules that may otherwise prevent such an incoming connection.
[0057] In response to being informed of the executing development service engines 416, the development support service engine 210 updates a service routing table 208 to indicate availability of the developer computing device 102 as an intercept device for providing the development service engines 416. FIG. 6 illustrates a non-limiting example embodiment of a service routing table according to various aspects of the present disclosure. As shown, the service routing table 208 includes a plurality of records, with each record including a service name, an identifier of an intercept device, and a status of the service identified by the service name and the identifier of the intercept device. In some embodiments, each record may either include an identifier of an intercept device or no value for the intercept device. If the record includes no value for the intercept device, then it is assumed that the service identified by the service name is accessed within the container orchestration system 104 via the service discovery engine 212. In some embodiments, the identifier of the intercept device may include a network address or a reference to a connection between the development support service engine 210 and the local traffic support engine 412 of the intercept device, but is shown in FIG. 6 as a simple device name for the sake of clarity.
[0058] Returning to FIG. 5 A, at block 514, in response to receiving an update from the container orchestration system 104 regarding a given service (e.g., an update indicating that a given service is available, etc.), the split DNS proxy engine 410 updates the name lookup table 408 and transmits an instruction to the local traffic support engine 412 based on the update. As noted above, each service provided by the container orchestration system 104 is accessible using a host name. Accordingly, for each service provided by the container orchestrationsystem 104 that is supported within the system 100, the split DNS proxy engine 410 uses the name lookup table 408 to redirect requests directed to the host name to the local traffic support engine 412 so that they may be intercepted and redirected to a development service engine 416 instead of a production service engine 214 when desired. The instruction to the local traffic support engine 412 for a given service causes the local traffic support engine 412 to begin listening to a given local network address (e.g., a combination of a local IP address and a uniquely assigned port number), and associating requests transmitted to the given local network address with the given service.
[0059] At optional block 516, a local HTTP proxy engine 414 of the developer computing device 102 receives a command to change a source for a service, and updates a local traffic map table 418 based on the command. The actions of optional block 516 are described as optional because the execution of the actions are instigated by user action. In some embodiments, the local HTTP proxy engine 414 is configured to present a user interface that includes all available options for service routing provided by the system 100, and that allows commands to be entered to change the sources for services. A non-limiting example embodiment of such an interface is illustrated in FIG. 10A - FIG. 10K, and is described in further detail below.
[0060] FIG. 7A - FIG. 7C are charts that illustrate non-limiting example embodiments of a name lookup table, a traffic support table, and a local traffic map table according to various aspects of the present disclosure. In the illustrated tables, it is assumed that there are three microservices of a rideshare cloud-based software application that are provided by the container orchestration system 104: a billing service, a notification service, and a passenger web interface. The billing service may be accessed via the host name “bill.sde.container- orch.com,” the notification service may be accessed via the host name “notif.sde.container- orch.com,” and the passenger web interface service may be accessed via the host name “pwi.sde.container-orch.com.” Each of these host names may be resolved to network addresses by a DNS server 106, and typically may each resolve to a network address of the service discovery engine 212 which will then distribute requests to appropriate production service engines 214 based on the host name of the requests.
[0061] In FIG. 7A, a name lookup table 408 is shown after being updated by the split DNS proxy engine 410. For each of the three microservices, the split DNS proxy engine 410 receives the host name from the service discovery engine 212 and creates an entry in the namelookup table 408. For the billing service, a first name lookup table entry 702 is created that associates the host name “bill.sde.container-orch.com” with a network address and a first unique port number, a second name lookup table entry 704 is created that associates the host name “notifsde.container-orch.com” with a network address and a second unique port number, and a third name lookup table entry 706 is created that associates the host name “pwi.sde.container-orch.com” with a network address and a third unique port number. One will note that the network address of “127.0.0.1” is an IPv4 loopback address that refers to the same device from which a request is transmitted (e.g., the same developer computing device 102 executing at least the split DNS proxy engine 410 and local traffic support engine 412). In some embodiments, another appropriate network address (e.g., an IPv6 loopback address, a different IPv4 loopback address, etc.) may be used.
[0062] In FIG. 7B, a traffic support table 420 is shown after the local traffic support engine 412 has received instructions from the split DNS proxy engine 410. Each instruction causes the local traffic support engine 412 to listen for connections to the network address and port associated with a service added to the name lookup table 408. Accordingly, for the first name lookup table entry 702, a corresponding first traffic support table entry 708 is created that causes the local traffic support engine 412 to listen to requests directed to the network address and first unique port number, and to associate requests received via the network address and first unique port number with the “billing” service name. For the second name lookup table entry 704, a corresponding second traffic support table entry 710 is created that causes the local traffic support engine 412 to listen to requests directed to the network address and second unique port number, and to associate requests received via the network address and second unique port number with the “notifications” service name. For the third name lookup table entry 706, a corresponding third traffic support table entry 712 is created that causes the local traffic support engine 412 to listen to requests directed to the network address and third unique port number, and to associate requests received via the network address and third unique port number with the “passenger_web_ui” service name.
[0063] In FIG. 7C, a local traffic map table 418 is shown after the local HTTP proxy engine 414 has received a command to change a source for the passenger web ui service. The local traffic map table 418 includes a first local traffic map table entry 714 associated with the billing service, a second local traffic map table entry 716 associated with the notifications service, and a third local traffic map table entry 718 associated with the passenger web uiservice. As illustrated, the local HTTP proxy engine 414 received a command to redirect requests to the passenger web ui service to the development service engine 416 executed by the “dev_3” device instead of the production service engine 214, and so the identity of the “dev_3” device is stored in the third local traffic map table entry 718. In some embodiments such as the embodiment illustrated in FIG. 7C, the local HTTP proxy engine 414 will cause an entry to be created for each of the services, whether or not the service is being redirected. In other embodiments, the local traffic map table 418 may include entries for redirected services but not services that are not being redirected.
[0064] Returning to FIG. 5A, the method 500 then advances to a continuation terminal ("terminal A"). From terminal A (FIG. 5B), the method 500 proceeds to block 518, where a request is received by the developer computing device 102. In some embodiments, the request is an HTTP request received from a web browser or other application executing on the developer computing device 102. In other embodiments, the request may be generated by another type of application executing on the developer computing device 102.
[0065] At block 520, the split DNS proxy engine 410 reviews the name lookup table 408 to determine whether a host name indicated by the request is associated with a service provided by the container orchestration system 104. The method 500 then advances to a decision block 522. If the split DNS proxy engine 410 had determined that the host name indicated by the request is not associated with a service provided by the container orchestration system 104, then the result of decision block 522 is NO, and the method 500 proceeds to block 524. At block 524, the split DNS proxy engine 410 provides the request to a default DNS server 106 to be processed as a standard request. This functionality demonstrates at least one technical benefit of using the techniques disclosed herein: while requests associated with services of the container orchestration system 104 are processed by the split DNS proxy engine 410 and other components of the developer computing device 102 and container orchestration system 104, requests that are not associated with services of the container orchestration system 104 can be handled normally. This allows other applications, including but not limited to web requests for other resources, mail clients, video conferencing clients, and / or other communication software that could be useful during software development, to be used normally while requests to services of the container orchestration system 104 are specially handled. In previous techniques, such as techniques that require the developer computing device 102 to be physically or virtually on the same network as the container orchestration system 104, thisseamless integration was not possible. The method 500 then returns to terminal A to await another request being received by the developer computing device 102.
[0066] Returning to decision block 522, if the split DNS proxy engine 410 had determined that the host name indicated by the request is associated with a service provided by the container orchestration system 104, then the result of decision block 522 is YES, and the method 500 proceeds to block 526. At block 526, the split DNS proxy engine 410 resolves the host name to a local network address associated with the host name in the name lookup table 408 and causes the request to be provided to the local network address. With reference to the example illustrated in FIG. 7 A, if the host name for the request was “pwi.sde.container- orch.com,” the split DNS proxy engine 410 would resolve the host name to “127.0.0.1 :92734,” and the request would be sent to that local network address.
[0067] At block 528, the local traffic support engine 412 receives the request provided to the local network address, and at block 530, the local traffic support engine 412 adds a service identity header for a service name of a service associated with the local network address to the request. As shown in FIG. 7B, the traffic support table 420 includes the service names associated with each local network address. Accordingly, carrying forward the example from block 526, upon receiving the request directed to local network address “127.0.0.1 :92734,” the local traffic support engine 412 adds a service identity header for the service name indicated in the third traffic support table entry 712, “PASSENGER WEB UI.”
[0068] At block 532, the local traffic support engine 412 transmits the request to the development support service engine 210 via the local HTTP proxy engine 414. At block 534, the local HTTP proxy engine 414 receives the request from the local traffic support engine 412, and consults the local traffic map table 418 to determine whether the request should be redirected to a development service engine 416 based on the entries in the local traffic map table 418.
[0069] The method 500 then advances to another continuation terminal ("terminal B"). From terminal B (FIG. 5C), the method 500 proceeds to decision block 536. If it had been determined that the request should be redirected to a development service engine 416, then the result of decision block 536 is YES, and the method 500 proceeds to block 538, where the local HTTP proxy engine 414 adds a service intercept indicator to the request based on the local traffic map table 418. The method 500 then proceeds to block 540. Presence of the serviceintercept indicator in the request indicates that the request should be redirected, and content of the service intercept indicator indicates a destination for the redirected request.
[0070] As shown in FIG. 7C, requests that have a service identity header that includes the service name “BILLING," associated with the first local traffic map table entry 714, are not associated with an intercept device, and neither are requests associated with the second local traffic map table entry 716 that have a service identity header that includes the service name “NOTIFICATIONS.” Carrying forward the example from block 528, the request having the service identity header that includes the service name “PASSENGER WEB UI” is associated with the local traffic map table 418. For such requests, the block 538 adds a service intercept indicator with content identifying the “DEV 3” intercept device as hosting the desired development service engine 416.
[0071] Returning to FIG. 5C, if it had been determined the request should not be redirected to a development service engine 416, then the result of decision block 536 is NO, and the method 500 skips block 538 to proceed directly to block 540.
[0072] At block 540, the local HTTP proxy engine 414 transmits the request to the development support service engine 210. At block 524, the development support service engine 210 receives the request, determines a destination service based on the service identity header, and determines whether a service intercept indicator is present. In some embodiments, the service identity header is used by the development support service engine 210 even for requests that are not intended to be intercepted because, normally, requests for different services would be distinguished from each other by the service discovery engine 212 based on the host name of the original request. However, since all requests have been transmitted from the local HTTP proxy engine 414 using a host name of the development support service engine 210, the host name of the original request is no longer available, and the service identity header may instead be used to determine the desired service.
[0073] FIG. 8A and FIG. 8B are partial illustrations of requests transmitted by the local HTTP proxy engine 414 to the development support service engine 210 according to various aspects of the present disclosure. The illustrated requests are examples of HTTP requests, specifically GET requests. One of ordinary skill in the art will recognize that different types of HTTP requests may be used, as may other types of requests other than HTTP requests, without departing from the scope of the present disclosure. One of ordinary skill in the art will alsorecognize that HTTP requests may include additional or different headers than those illustrated, and that the illustrated headers are shown as non-limiting examples only.
[0074] FIG. 8A illustrates a first request 804 directed to the “notifications” service, as illustrated in the second traffic support table entry 710 of FIG. 7B and the second local traffic map table entry 716 of FIG. 7C. The first request 804 includes a “Service-Name” header with a value of “NOTIFICATIONS,” as described above, and does not include a service intercept indicator. Accordingly, the development support service engine 210 would determine that the “notifications” service is the destination service, and that an intercept device should not be used.
[0075] FIG. 8B illustrates a second request 806 directed to the “passenger-web-ui” service, as illustrated in the third traffic support table entry 712 of FIG. 7B and the third local traffic map table entry 718 of FIG. 7C. The second request 806 includes a “Service-Name” header with a value of “PASSENGER WEB UI," as described above, and includes a service intercept indicator with a value of “DEV 3." Accordingly, the development support service engine 210 would determine that the “passenger web ui” service provided by the development service engine 416 executing on the developer computing device 102 having the identifier “DEV_3” is the destination for the request.
[0076] It should be noted that while FIG. 8B illustrates a service intercept indicator implemented as an HTTP header, in some embodiments, other types of information may be used as a service intercept indicator, including but not limited to any other portion of an HTTP request. Also, while FIG. 8A and FIG. 8B illustrate HTTP GET requests, in some embodiments, other types of HTTP requests (or requests using a protocol other than HTTP) may be used. Further, it should be noted that while the method 500 is illustrated and described as using a service intercept indicator as the basis of the determination regarding whether to transmit requests to a given service to an intercept device, in some embodiments, other information may be used to determine whether to transmit requests for a given service to an intercept device. For example, the service routing table 208 may include a column that specifies a condition that identifies categories of requests (e.g., from particular subnets, having particular query variables, transmitted by particular user-agents, and / or any other characteristic of a request or combinations of characteristics of requests). The development support service engine 210 may then evaluate the conditions to determine whether to send a given request to an intercept device instead of or in addition to checking for the service intercept indicator.
[0077] Returning to FIG. 5C, the method 500 then proceeds to decision block 544. If it was determined that a service intercept indicator is present, then the result of decision block 544 is YES, and the method 500 advances to block 546. At block 546, the development support service engine 210 determines a destination device associated with the service name and the service intercept indicator. In some embodiments, the destination device may be determined directly from the value of the service intercept indicator. In some embodiments, the development support service engine 210 may look up an address of the destination device in the service routing table 208 based on the value of the service intercept indicator.
[0078] At block 548, the development support service engine 210 transmits the request to the destination device, and the destination device processes the request. The destination device may be the same developer computing device 102 that transmitted the request, or may be a different developer computing device 102 as indicated by the service routing table 208. The development support service engine 210 transmits the request to the destination device using the connection that was established and held open by the local traffic support engine 412 at block 512, thereby avoiding difficulties in traversing any firewalls or other obstacles between the developer computing device 102 and the container orchestration system 104.
[0079] At the destination device (e.g., the developer computing device 102), the local traffic support engine 412 receives the request and provides it to the development service engine 416. A developer using the developer computing device 102 may then easily attach a debugger or otherwise analyze the processing of the request by the development service engine 416 executing locally on the developer computing device 102. Processing the request by the development service engine 416 may include any type of communication, including but not limited to a simple HTTP request and response, any other type of TCP or UDP communication, or any other type of networked communication. In some embodiments, processing the request may include establishing a tunnel between the requesting device and the development service engine 416, such as by using an HTTP CONNECT method as described in https: / / developer.mozilla.org / en-US / docs / Web / HTTP / Methods / CONNECT, which is incorporated by reference herein in its entirety for all purposes. When the tunnel between the requester and the destination is established, any type of IP traffic may be transmitted that is supported by the tunnel, including but not limited to TCP traffic and / or UDP traffic. The method 500 then returns to terminal A to await a subsequent request being received by the developer computing device 102. 1
[0080] Returning to decision block 544, if it was determined that a service intercept indicator is not present, then the result of decision block 544 is NO, and the method 500 advances to block 550. At block 550, the development support service engine 210 requests a destination for the request from the service discovery engine 212. The development support service engine 210 uses the identification of the service provided in the request to request the proper service from the service discovery engine 212. By using the service discovery engine 212 instead of merely transmitting the request directly to a production service engine 214, the functionality of the container orchestration system 104 is invoked as it would be for a normal request to a production service engine 214, and the integrity of the system can be maintained for services that are not being intercepted.
[0081] At block 552, the development support service engine 210 transmits the request to the production service engine 214 indicated as the destination by the service discovery engine 212, and the production service engine 214 processes the request. One will recognize that after being routed to the production service engine 214, the request is seamlessly handled similar to any other request transmitted to the production service engine 214, thus increasing the fidelity of the development environment to the production microservices architecture even while providing the ability to redirect some traffic from developer computing devices 102 for debugging purposes
[0082] The method 500 then returns to terminal A to await a subsequent request being received by the developer computing device 102. One of ordinary skill in the art will recognize that the method 500 may run indefinitely, or until ended by a user action. One of ordinary skill in the art will also recognize that portions of the method 500 may run in parallel, or may be performed multiple times. For example, the method 500 may concurrently process more than one request at a type. As another example, the actions of block 514 (receiving updates regarding a given service) or optional block 516 (receiving commands to change a source for a service) may be executed multiple times during the course of the method 500.
[0083] FIG. 9 is a schematic diagram of a non-limiting example embodiment of operations of the system for providing configurable redirection of requests to microservices of a cloud-based software application according to various aspects of the present disclosure. The actions illustrated in FIG. 9 are provided to illustrate examples of the method 500 described above.
[0084] At step 902, a request (e.g., a handshake request, such as an initial HTTP request to establish a connection with a service) is received by or generated by the developer computingdevice 102 (e.g., from a web browser executed by the developer computing device 102, or generated by another program executed by the developer computing device 102). The split DNS proxy engine 410 receives the request, and consults the name lookup table 408 resident in volatile memory to determine whether a host name indicated by the request is associated with a service provided by the container orchestration system 104. If the name lookup table 408 does not include an entry for the host name, the split DNS proxy engine 410 determines that the host name is not associated with a service provided by the container orchestration system 104, and at step 904, the split DNS proxy engine 410 provides the request to a DNS server 106 for the developer computing device 102 to service the request.
[0085] Otherwise, if the name lookup table 408 does include an entry for the host name, the split DNS proxy engine 410 resolves the host name to a local network address associated with the host name as indicated by the name lookup table 408, and transmits the request to the local network address.
[0086] At step 906, the local traffic support engine 412 which is listening to the local network address receives the request. The local traffic support engine 412 determines a service name of a service that is associated with the local network address, and adds a service identity header indicating the service name to the request (e.g., using the traffic support table 420). The local traffic support engine 412 then transmits the request to the development support service engine 210 via the local HTTP proxy engine 414.
[0087] At step 908, the local HTTP proxy engine 414 receives the request (e.g., an HTTP request) from the local traffic support engine 412. The local HTTP proxy engine 414 consults the local traffic map table 418 to determine whether a user has indicated that traffic associated with the service name should be provided to a corresponding production service engine 214, or whether traffic should be re-routed to a development service engine 416. If the local traffic map table indicates that traffic should be re-routed, then the local HTTP proxy engine 414 adds a service intercept indicator to the request. The service intercept indicator is associated with a specific intercept device and a specific development service engine 416 running thereon. If the local traffic map table does not indicate that traffic should be rerouted, then the local HTTP proxy engine 414 does not alter the request. The local HTTP proxy engine 414 then transmits the request to the development support service engine 210.
[0088] At step 910, the development support service engine 210 receives the request. The development support service engine 210 determines a destination service based on the serviceidentity header, and whether an intercept device should be used based on whether a service intercept indicator is present.
[0089] If the service intercept indicator is present, then at step 914 the development support service engine 210 determines an intercept device (or third-party service 108) associated with the service name and the service intercept indicator, and transmits the request to the appropriate development service engine 416 on the appropriate intercept device (or third-party service 108).
[0090] If the service intercept indicator is not present, then at step 912 the development support service engine 210 requests a destination for the request (e.g., a specific production service engine 214 providing the service) from the service discovery engine 212, and transmits the request to the production service engine 214 identified by the service discovery engine 212.
[0091] By using the service discovery engine 212 to determine the production service engine 214 to receive the request, the native load balancing and other services provided by the container orchestration system 104 can be used, just as if the request had come in to the container orchestration system 104 from a third-party user, thus increasing the fidelity of the development environment to the production microservices architecture even while providing the ability to redirect some traffic from developer computing devices 102 for debugging purposes.
[0092] The connections to the third-party service 108, the development service engine 416, and the production service engine 214 are illustrated in dashed lines in FIG. 9 because the development support service engine 210 will choose one of the three destinations for the connection. In some embodiments, providing the request to a destination (such as the third- party service 108, development service engine 416, or production service engine 214) involves creating a tunnel between the requester and the destination, such as by using an HTTP CONNECT method as described in https: / / developer.mozilla.org / en- US / docs / Web / HTTP / Methods / CONNECT, which is incorporated by reference herein in its entirety for all purposes. When the tunnel between the requester and the destination is established, any type of IP traffic may be transmitted that is supported by the tunnel, including but not limited to TCP traffic and / or UDP traffic.
[0093] FIG. 10A - FIG. 10D illustrate a non-limiting example embodiment of a user interface for configuring communication within the system according to various aspects of the present disclosure. The illustrated interface is a non-limiting example of an interface that may bepresented by the local HTTP proxy engine 414 for receiving configuration commands as described at optional block 516 above. The interface is being presented for controlling communication for a given developer computing device 102, and is typically displayed by a web browser, an integrated development environment (IDE), or other software executed by the given developer computing device 102.
[0094] In FIG. 10A, the interface is shown prior to any connections being made to any developed services 112 from the developer computing device 102. A list of available namespaces within the system 100 is provided at the left side of the interface. A list of the available services within the selected namespace is obtained from the development support service engine 210, and is provided at a right side of the interface. In a “Variants” column of the interface, various icons are presented that represent “flavors” of each of the developed services 112 that may be accessed. Each “flavor” is a device from which each developed service 112 may be accessed. Information regarding available flavors for each developed service 112 may be stored in the service routing table 208 and provided to the local HTTP proxy engine 414 by the development support service engine 210.
[0095] As illustrated, each developed service 112 may be accessed from the container orchestration system 104 (e.g., the production service engine 214 for the service), from the local developer computing device 102 (e.g., the development service engine 416 on the given developer computing device 102 presenting the user interface), or from other developer computing devices 102. For example, there are two other developer computing devices 102 making a version of the sample-project-core service available (indicated by “JD” and “NS”). While it may be more difficult to debug development service engines 416 running on other developer computing devices 102, accessing such engines can allow integration testing of functionality under development without requiring the functionality to be pushed to the production environment or maintaining a separate clone of the entire production environment for development purposes. Also, the sample-project-external service is available from the local developer computing device 102 (indicated by “L”). The cloud icon indicates services that are available from the container orchestration system 104.
[0096] In FIG. 10B, the interface is shown after commands have been received to connect to the sample-project-database service and the sample-project-leaf service. The commands may be generated by interacting with the “consume” interface element in the “commands” column, which is indicated by a downward arrow. A command to connect to a service may cause thedeveloper computing device 102 to submit a request to the service, and thereby open a connection to the service. The command may include a flavor of the service to which the request should be submitted. As shown in FIG. 10B, the production service engine 214 flavor for the sample-project-database service and the sample-project-leaf service have been selected, and the developer computing device 102 has opened connections to each of these production service engines 214. The “traffic” column illustrates the direction of communication with each of the services (e.g., is the developer computing device 102 connecting to the service as a requester, or is the developer computing device 102 providing access to the development service engine 416 executing locally), as well as the flavor used for the connection. Once the connection is established, the “consume” interface element is changed to indicate that interacting with the interface element again will cause the disconnection from the service.
[0097] Though not illustrated in FIG. 10B, the interface may also show information regarding the status of the connection to each service. In some embodiments, this status may be of the flavor of the connected service, and may indicate a state of the connection between the developer computing device 102 and the connected service. In some embodiments, this status may be a status of the developed service 112 as a whole, and may be provided by the development support service engine 210 based on information stored in the service routing table 208.
[0098] In FIG. 10C, a state of the interface is illustrated after submitting a command to consume a flavor of the sample-project-core service that is available from another developer computing device 102 (as illustrated, a developer computing device 102 identified as “JD”). Actuating the interface element including the downward facing arrow in the “commands” column to consume the sample-project-core service from the other developer computing device 102 is a non-limiting example of a technique for submitting a command to change a source for a service at optional block 516. After performing the steps of the method 500 to connect to the development service engine 416 executing on the other developer computing device 102, the icon in the “traffic” column for the sample-project-core service is now the icon associated with the other developer computing device 102.
[0099] In some embodiments, the interface may also be used to launch development service engines 416 and to inform the development support service engine 210 that they are available for accepting requests. FIG. 10D illustrates the interface after actuation of an interface element that, when actuated, causes the development service engine 416 for the sample-project-externalservice to be launched locally and for the local HTTP proxy engine 414 to inform the development support service engine 210 that the developer computing device 102 is making the development service engine 416 available for requests. The non-limiting example of the interface element illustrated in FIG. 10D is the interface element in the “commands” column with an upward facing arrow.
[0100] Upon receiving the information, the development support service engine 210 updates the service routing table 208 to indicate that this flavor of the sample-project-external service is available, and the interfaces on other developer computing devices 102 may be updated to provide the flavor of the sample-project-external service provided by the development service engine 416 of the local developer computing device 102 as an option. The traffic column has been updated to show that the locally executing development service engine 416 for this service is being shared to the rest of the system 100, and the interface element in the “commands” column has been updated to indicate that interacting with the interface element again will cause the development service engine 416 to be shut down.
[0101] While illustrative embodiments have been illustrated and described, it will be appreciated that various changes can be made therein without departing from the spirit and scope of the invention.EXAMPLES
[0102] The following numbered paragraphs list a set of non-limiting example embodiments of the present disclosure.
[0103] Example 1. A system for efficient development of software-based services, the system comprising: a container orchestration system that includes: a service discovery engine; and a development support service engine; and at least one developer computing device that includes: a split domain name service (DNS) proxy engine; and a local traffic support engine; wherein the split DNS proxy engine is configured to: receive a request to resolve a host name to a network address; determine whether the host name is associated with a service provided by the container orchestration system; in response to determining that the host name is associated with a service provided by the container orchestration system, resolve the host name to a local network address associated with the local traffic support engine according to an entry in a name lookup table; and in response to determining that the host name is not associated with a service provided by the container orchestration system, provide the request to a default DNS server.
[0104] Example 2. The system of Example 1, wherein the local traffic support engine is configured to: receive a connection request addressed to a local network address to which the local traffic support engine is listening; determine a service associated with the local network address; add a service identity header to the connection request indicating the service; and transmit the connection request having the service identity header to the development support service engine.
[0105] Example 3. The system of Example 2, wherein the connection request is a hypertext transfer protocol (HTTP) request.
[0106] Example 4. The system of any one of Examples 2-3, wherein the development support service engine is configured to: receive the connection request having the service identity header; determine a destination service based on the service identity header; determine a destination network address for the destination service using the service discovery engine; and transmit the connection request to the destination network address.
[0107] Example 5. The system of any one of Examples 1-4, wherein the split DNS proxy engine is further configured to: register one or more watches with the service discovery engine to receive updates when one or more services provided by the container orchestration system are changed.
[0108] Example 6. The system of Example 5, wherein the name lookup table is resident in volatile memory.
[0109] Example 7. The system of Example 6, wherein the split DNS proxy engine is further configured to: receive a first message from the service discovery engine indicating that a first service having a first service name is available at the container orchestration system; create a first local network address to be associated with the first service name; transmit an instruction to the local traffic support engine to listen to the first local network address and to associate the first local network address with the first service name; and update the name lookup table to include an entry associating the first local network address and the first service name.
[0110] Example 8. The system of Example 7, wherein the split DNS proxy engine is further configured to: receive a second message from the service discovery engines indicating that the first service having the first service name is not available at the container orchestration system; transmit an instruction to the local traffic support engine to stop listening to the first local network address; and update the name lookup table to remove the entry associating the first local network address and the first service name.
[0111] Example 9. The system of any one of Examples 1-8, wherein the developer computing device further includes a local HTTP proxy engine configured to: receive an HTTP request directed to a host name associated with a service provided by the container orchestration system; selectively add a service intercept indicator to the HTTP request based on an entry for the host name in a local traffic map table; and transmit the HTTP request to the development support service engine.
[0112] Example 10. The system of Example 9, wherein the HTTP request is received from the local traffic support engine.
[0113] Example 11. The system of any one of Examples 9-10, wherein the development support service engine is configured to: receive the HTTP request; in response to determining that the HTTP request includes the service intercept indicator, transmit the HTTP request to a device associated with the service intercept indicator; and in response to determining that the HTTP request does not include the service intercept indicator, transmit the HTTP request to a device determined by the service discovery engine.
[0114] Example 12. The system of any one of Examples 9-11, wherein the development support service engine is further configured to: receive and store intercept device presence,service availability, and service intercept indicator information for one or more intercept devices.
[0115] Example 13. The system of Example 12, wherein the local HTTP proxy engine is further configured to: receive intercept device presence, service availability, and service intercept indicator information from the development support service engine; present a user interface configured to accept input from a user indicating selections of services provided by intercept devices to be used instead of corresponding services provided by the container orchestration system; and update the local traffic map table based on the input from the user.
[0116] Example 14. The system of any one of Examples 1-13, wherein the container orchestration system is a Kubernetes system.
[0117] Example 15. A method for efficient development of software-based services, the method comprising: receiving, by a split DNS proxy engine of a developer computing device, a request to resolve a host name to a network address; determining, by the split DNS proxy engine, whether the host name is associated with a service provided by a container orchestration system; in response to determining that the host name is associated with a service provided by the container orchestration system, resolving, by the split DNS proxy engine, the host name to a local network address associated with a local traffic support engine of the developer computing device according to an entry in a name lookup table; and in response to determining that the host name is not associated with a service provided by the container orchestration system, providing, by the split DNS proxy engine, the request to a default DNS server.
[0118] Example 16. The method of Example 15, further comprising: receiving, by a local traffic support engine of the developer computing device, a connection request addressed to a local network address to which the local traffic support engine is listening; determining, by the local traffic support engine, a service associated with the local network address; adding, by the local traffic support engine, a service identity header to the connection request indicating the service; and transmitting, by the local traffic support engine, the connection request having the service identity header to a development support service engine of the container orchestration system.
[0119] Example 17. The method of Example 16, wherein the connection request is a hypertext transfer protocol (HTTP) request.
[0120] Example 18. The method of any one of Examples 16-17, further comprising: receiving, by the development support service engine, the connection request having the service identity header; determining, by the development support service engine, a destination service based on the service identity header; determining, by the development support service engine, a destination network address for the destination service using the service discovery engine; and transmitting, by the development support service engine, the connection request to the destination network address.
[0121] Example 19. The method of any one of Examples 15-18, further comprising: registering, by the split DNS proxy engine, one or more watches with the service discovery engine to receive updates when one or more services provided by the container orchestration system are changed.
[0122] Example 20. The method of Example 19, wherein the name lookup table is resident in volatile memory.
[0123] Example 21. The method of Example 20, further comprising: receiving, by the split DNS proxy engine, a first message from the service discovery engine indicating that a first service having a first service name is available at the container orchestration system; creating, by the split DNS proxy engine, a first local network address to be associated with the first service name; transmitting, by the split DNS proxy engine, an instruction to the local traffic support engine to listen to the first local network address and to associate the first local network address with the first service name; and updating, by the split DNS proxy engine, the name lookup table to include an entry associating the first local network address and the first service name.
[0124] Example 22. The method of Example 21, further comprising: receiving, by the split DNS proxy engine, a second message from the service discovery engines indicating that the first service having the first service name is not available at the container orchestration system; transmitting, by the split DNS proxy engine, an instruction to the local traffic support engine to stop listening to the first local network address; and updating, by the split DNS proxy engine, the name lookup table to remove the entry associating the first local network address and the first service name.
[0125] Example 23. The method of any one of Examples 15-22, further comprising: receiving, by a local HTTP proxy engine of the developer computing device, an HTTP request directed to a host name associated with a service provided by the container orchestrationsystem; selectively adding, by the local HTTP proxy engine, a service intercept indicator to the HTTP request based on an entry for the host name in a local traffic map table; and transmitting, by the local HTTP proxy engine, the HTTP request to the development support service engine.
[0126] Example 24. The method of Example 23, wherein the HTTP request is received from the local traffic support engine.
[0127] Example 25. The method of any one of Examples 23-24, further comprising: receiving, by the development support service engine, the HTTP request; in response to determining that the HTTP request includes the service intercept indicator, transmitting, by the development support service engine, the HTTP request to a device associated with the service intercept indicator; and in response to determining that the HTTP request does not include the service intercept indicator, transmitting, by the development support service engine, the HTTP request to a device determined by the service discovery engine.
[0128] Example 26. The method of any one of Examples 23-25, further comprising: receiving and storing, by the development support service engine, intercept device presence, service availability, and service intercept indicator information for one or more intercept devices.
[0129] Example 27. The method of Example 26, further comprising: receiving, by the local HTTP proxy engine, intercept device presence, service availability, and service intercept indicator information from the development support service engine; presenting, by the local HTTP proxy engine, a user interface configured to accept input from a user indicating selections of services provided by intercept devices to be used instead of corresponding services provided by the container orchestration system; and updating, by the local HTTP proxy engine, the local traffic map table based on the input from the user.
[0130] Example 28. The method of any one of Examples 15-27, wherein the container orchestration system is a Kubernetes system.
[0131] Example 29. A non-transitory computer-readable medium having computer-executable instructions stored thereon that, in response to execution by one or more processors of one or more computing devices, cause the one or more computing devices to perform a method as recited in any one of Examples 15-28.
[0132] Example 30. A non-transitory computer-readable medium having computer-executable instructions stored thereon that, in response to execution by one or more processors of one or more computing devices cause the one or more computing devices to provide a servicediscovery engine, a development support service engine, a split domain name service (DNS) proxy engine, and a local traffic support engine as recited in any one of Examples 1-14.
[0133] Example 31. The non-transitory computer-readable medium as recited in Example 30, wherein the instructions further cause the one or more computing devices to provide a local HTTP proxy engine as recited in any one of Examples 9-13.
[0134] Example 32. A computing device configured to perform a method as recited in any one of Examples 15-28.
Claims
CLAIMSThe embodiments of the invention in which an exclusive property or privilege is claimed are defined as follows:
1. A system for efficient development of software-based services, the system comprising: a container orchestration system that includes: a service discovery engine; and a development support service engine; and at least one developer computing device that includes: a split domain name service (DNS) proxy engine; and a local traffic support engine; wherein the split DNS proxy engine is configured to: receive a request to resolve a host name to a network address; determine whether the host name is associated with a service provided by the container orchestration system; in response to determining that the host name is associated with a service provided by the container orchestration system, resolve the host name to a local network address associated with the local traffic support engine according to an entry in a name lookup table; and in response to determining that the host name is not associated with a service provided by the container orchestration system, provide the request to a default DNS server.
2. The system of claim 1, wherein the local traffic support engine is configured to: receive a connection request addressed to a local network address to which the local traffic support engine is listening; determine a service associated with the local network address; add a service identity header to the connection request indicating the service; and transmit the connection request having the service identity header to the development support service engine.
3. The system of claim 2, wherein the connection request is a hypertext transfer protocol (HTTP) request.
4. The system of claim 2, wherein the development support service engine is configured to: receive the connection request having the service identity header; determine a destination service based on the service identity header; determine a destination network address for the destination service using the service discovery engine; and transmit the connection request to the destination network address.
5. The system of claim 1, wherein the split DNS proxy engine is further configured to: register one or more watches with the service discovery engine to receive updates when one or more services provided by the container orchestration system are changed.
6. The system of claim 5, wherein the name lookup table is resident in volatile memory.
7. The system of claim 6, wherein the split DNS proxy engine is further configured to: receive a first message from the service discovery engine indicating that a first service having a first service name is available at the container orchestration system; create a first local network address to be associated with the first service name; transmit an instruction to the local traffic support engine to listen to the first local network address and to associate the first local network address with the first service name; and update the name lookup table to include an entry associating the first local network address and the first service name.
8. The system of claim 7, wherein the split DNS proxy engine is further configured to: receive a second message from the service discovery engines indicating that the first service having the first service name is not available at the container orchestration system; transmit an instruction to the local traffic support engine to stop listening to the first local network address; and update the name lookup table to remove the entry associating the first local network address and the first service name.
9. The system of claim 1, wherein the developer computing device further includes a local HTTP proxy engine configured to: receive an HTTP request directed to a host name associated with a service provided by the container orchestration system;selectively add a service intercept indicator to the HTTP request based on an entry for the host name in a local traffic map table; and transmit the HTTP request to the development support service engine.
10. The system of claim 9, wherein the HTTP request is received from the local traffic support engine.
11. The system of claim 9, wherein the development support service engine is configured to: receive the HTTP request; in response to determining that the HTTP request includes the service intercept indicator, transmit the HTTP request to a device associated with the service intercept indicator; and in response to determining that the HTTP request does not include the service intercept indicator, transmit the HTTP request to a device determined by the service discovery engine.
12. The system of claim 9, wherein the development support service engine is further configured to: receive and store intercept device presence, service availability, and service intercept indicator information for one or more intercept devices.
13. The system of claim 12, wherein the local HTTP proxy engine is further configured to: receive intercept device presence, service availability, and service intercept indicator information from the development support service engine; present a user interface configured to accept input from a user indicating selections of services provided by intercept devices to be used instead of corresponding services provided by the container orchestration system; and update the local traffic map table based on the input from the user.
14. The system of claim 1, wherein the container orchestration system is a Kubernetes system.
15. A method for efficient development of software-based services, the method comprising: receiving, by a split DNS proxy engine of a developer computing device, a request to resolve a host name to a network address; determining, by the split DNS proxy engine, whether the host name is associated with a service provided by a container orchestration system;in response to determining that the host name is associated with a service provided by the container orchestration system, resolving, by the split DNS proxy engine, the host name to a local network address associated with a local traffic support engine of the developer computing device according to an entry in a name lookup table; and in response to determining that the host name is not associated with a service provided by the container orchestration system, providing, by the split DNS proxy engine, the request to a default DNS server.
16. The method of claim 15, further comprising: receiving, by a local traffic support engine of the developer computing device, a connection request addressed to a local network address to which the local traffic support engine is listening; determining, by the local traffic support engine, a service associated with the local network address; adding, by the local traffic support engine, a service identity header to the connection request indicating the service; and transmitting, by the local traffic support engine, the connection request having the service identity header to a development support service engine of the container orchestration system.
17. The method of claim 16, wherein the connection request is a hypertext transfer protocol (HTTP) request.
18. The method of claim 16, further comprising: receiving, by the development support service engine, the connection request having the service identity header; determining, by the development support service engine, a destination service based on the service identity header; determining, by the development support service engine, a destination network address for the destination service using the service discovery engine; and transmitting, by the development support service engine, the connection request to the destination network address.
19. The method of claim 15, further comprising:registering, by the split DNS proxy engine, one or more watches with the service discovery engine to receive updates when one or more services provided by the container orchestration system are changed.
20. The method of claim 19, wherein the name lookup table is resident in volatile memory.
21. The method of claim 20, further comprising: receiving, by the split DNS proxy engine, a first message from the service discovery engine indicating that a first service having a first service name is available at the container orchestration system; creating, by the split DNS proxy engine, a first local network address to be associated with the first service name; transmitting, by the split DNS proxy engine, an instruction to the local traffic support engine to listen to the first local network address and to associate the first local network address with the first service name; and updating, by the split DNS proxy engine, the name lookup table to include an entry associating the first local network address and the first service name.
22. The method of claim 21, further comprising: receiving, by the split DNS proxy engine, a second message from the service discovery engines indicating that the first service having the first service name is not available at the container orchestration system; transmitting, by the split DNS proxy engine, an instruction to the local traffic support engine to stop listening to the first local network address; and updating, by the split DNS proxy engine, the name lookup table to remove the entry associating the first local network address and the first service name.
23. The method of claim 15, further comprising: receiving, by a local HTTP proxy engine of the developer computing device, an HTTP request directed to a host name associated with a service provided by the container orchestration system; selectively adding, by the local HTTP proxy engine, a service intercept indicator to the HTTP request based on an entry for the host name in a local traffic map table; andtransmitting, by the local HTTP proxy engine, the HTTP request to the development support service engine.
24. The method of claim 23, wherein the HTTP request is received from the local traffic support engine.
25. The method of claim 23, further comprising: receiving, by the development support service engine, the HTTP request; in response to determining that the HTTP request includes the service intercept indicator, transmitting, by the development support service engine, the HTTP request to a device associated with the service intercept indicator; and in response to determining that the HTTP request does not include the service intercept indicator, transmitting, by the development support service engine, the HTTP request to a device determined by the service discovery engine.
26. The method of claim 23, further comprising: receiving and storing, by the development support service engine, intercept device presence, service availability, and service intercept indicator information for one or more intercept devices.
27. The method of claim 26, further comprising: receiving, by the local HTTP proxy engine, intercept device presence, service availability, and service intercept indicator information from the development support service engine; presenting, by the local HTTP proxy engine, a user interface configured to accept input from a user indicating selections of services provided by intercept devices to be used instead of corresponding services provided by the container orchestration system; and updating, by the local HTTP proxy engine, the local traffic map table based on the input from the user.
28. The method of claim 15, wherein the container orchestration system is a Kubernetes system.
Citation Information
Patent Citations
Cybersecurity system
CA3028296C
Composing monolithic applications based on multi-container applications
US10356214B2
System and Method for Improving Content Fetching by Selecting Tunnel Devices
US20220353105A1
Cloud service security broker and proxy
US9438565B2
