METHODS AND APPARATUS TO CENTRALIZE LOCALIZATION OF MICRO-SERVICES MESSAGES IN A DISTRIBUTED CLOUD ENVIRONMENT
Methods and apparatus to centralize localization of micro-services messages in a distributed cloud environment are disclosed. An example method includes generating, by executing an instruction with one or more processors, a plurality of messages bundles. Respective ones of the messages bundles are associated with respective ones of a plurality of micro-services. The example method further including creating a localized response based on a non-localized response to a request by a user to one of the plurality of micro-services. The localized response is based on one of the plurality of messages bundles and the one of the plurality of messages bundles corresponds to the one of the plurality of micro-services.
This disclosure relates generally to distributed cloud computing, and, more particularly, to methods and apparatus to centralize localization of micro-services messages in a distributed cloud environment.
BACKGROUNDVirtualizing of computer systems provide benefits such as an ability to execute multiple computer systems on a single hardware computer, replicating computer systems, moving computer systems among multiple hardware computers, and so forth.
“Infrastructure-as-a-Service” (also commonly referred to as “IaaS”) generally describes a suite of technologies provided by a service provider as an integrated solution to allow for elastic creation of a virtualized, networked, and pooled computing platform (sometimes referred to as a “cloud computing platform”). Enterprises may use IaaS as a business-internal organizational cloud computing platform (sometimes referred to as a “private cloud”) that gives an application developer access to infrastructure resources, such as virtualized servers, storage, and networking resources. By providing ready access to the hardware resources required to run an application, the cloud computing platform enables developers to build, deploy, and manage the lifecycle of a web application (or any other type of networked application) at a greater scale and at a faster pace than ever before.
Services available in a distributed cloud environment are typically provided by way of executing multiple microservices. To achieve a particular goal (e.g., providing a service), the microservices are designed to collaborate with each other. In many examples, the services are provided to computers/processors operating in different geographical localities such that the services are tailored to provide content and/or services to the computers/processors based on the geographical locality of the computer/processor using the service.
The figures are not to scale. In general, the same reference numbers will be used throughout the drawing(s) and accompanying written description to refer to the same or like parts. Connection references (e.g., attached, coupled, connected, and joined) are to be construed broadly and may include intermediate members between a collection of elements and relative movement between elements unless otherwise indicated. As such, connection references do not necessarily infer that two elements are directly connected and in fixed relation to each other.
Descriptors “first,” “second,” “third,” etc. are used herein when identifying multiple elements or components which may be referred to separately. Unless otherwise specified or understood based on their context of use, such descriptors are not intended to impute any meaning of priority, physical order or arrangement in a list, or ordering in time but are merely used as labels for referring to multiple elements or components separately for ease of understanding the disclosed examples. In some examples, the descriptor “first” may be used to refer to an element in the detailed description, while the same element may be referred to in a claim with a different descriptor such as “second” or “third.” In such instances, it should be understood that such descriptors are used merely for ease of referencing multiple elements or components.
DETAILED DESCRIPTIONCloud computing platforms may provide many powerful capabilities for performing computing operations/services. However, taking advantage of these computing capabilities/services manually may be complex and/or require significant training and/or expertise. Prior techniques for providing cloud computing platforms and services often require customers to understand details and configurations of hardware and software resources to establish and configure the cloud computing platform.
Often, services available in a distributed cloud environment are provided by way of executing multiple microservices. To achieve a particular goal, for example, executing a provisioning service, the microservices collaborate with each other. In many examples, the services are provided to computers/processors operating in different geographical localities such that the services need to be tailored to provide content and/or services to the computers/processors based on the geographical locality of the computer/processor using the service. In conventional distributed cloud environments, all of the services require a two-way communication contract by which a localization setting is passed between the cloud-based service provider and a user of the service. A localization setting identifies, for example, a geographical location of a computer operated by the user of the system. If such a two-way communication contract is not available or fails to identify a localization setting of the computer operated by the user, an identity service is used to identify the localization of the computer operated by the user. Unfortunately, the usage of a two-way communication contract or to access an identity service adds additional time when a user attempts to access any of the multiple services via a communication. Further, with the availability of multiple services, the amount of overhead spent in processing communication requests for each service based on a need to perform the two-way communication contract and/or go to an identity service requires a consumption of processing resources that grows with the number of users accessing services and the number of services available to users of the services. Methods and apparatus disclosed herein lessen the amount of time and resources spent on determining a localization setting for users of an available service.
A software defined data center (SDDC) is a data storage facility implemented using an infrastructure that is virtualized and delivered as a service to one or more customers. After deployment of a SDDC, the SDDC provides policy-driven automation to enable provisioning and ongoing management of logical compute resources, storage resources, and network resources. For example, customers may select/create policies that cause the SDDC to deploy applications quickly based on policy-driven provisioning that dynamically matches resources to continually changing workloads and business demands. An SDDC can be deployed as a private cloud, a hybrid cloud, or a public cloud and can run on multiple hardware stacks, hypervisors, and clouds.
A virtual machine (VM) is a software computer that, like a physical computer, runs an operating system and applications. An operating system installed on a virtual machine is referred to as a guest operating system. Because each virtual machine is an isolated computing environment, virtual machines (VMs) can be used as desktop or workstation environments, as testing environments, to consolidate server applications, etc. Virtual machines can run on hosts or clusters. The same host can run a plurality of VMs, for example.
As disclosed in detail herein, methods and apparatus disclosed herein add custom headers to service requests sent by users of a service to the service. The custom headers provide a localization setting, thereby eliminating the need for the service to determine the localization setting for each request by accessing an identity service. Instead, the service relies on the localization setting included in the custom header when providing a response to the request. The localization setting can include not only a geographical location of the computer from which the request is received but also a language associated with the computer based on the location or based on a user preference associated with the user. In some examples, a custom header can include a string such as “en-US,en;q=0.5” which can indicate that the preferred language is English as used in the United States. In some examples, the q value (e.g., “q=0.5”) can represent a relative quality factor for media types identified as preferred by, for example, the user.
The methods and apparatus to provide centralized localization services in micro-services of a distributed cloud environment disclosed herein may be operated in any (and in some examples a combination) of a number of virtualized cloud environments including, for example, full virtualization, paravirtualization, and operating system virtualization.
The example core components 106 of the illustrated example include a virtual environment infrastructure 108, an example network virtualizer 110, and an example virtual storage area network 112. The example virtual environment infrastructure 108 is an example virtualization platform that includes an example hypervisor 114, an example services server 116, an example virtualization client 118, and example virtual file system 120. In the illustrated example, the virtual environment infrastructure 108 may be implemented using the vSphere virtualization suite developed and sold by VMware® of Palo Alto, Calif., United States. The example hypervisor 114 may be implemented using the VMware ESXi™ hypervisor developed and sold by VMware® The example services server 116 may be implemented using the VMware vCenter® Server developed and sold by VMware® The example virtualization client 118 may be implemented using the VMware vSphere® client developed and sold by VMware®. The example virtual file system 120 may be implemented using the VMware vSphere Virtual Machine File System developed and sold by VMware®. Additionally, or alternatively, some or all of the components of the virtual environment infrastructure 108 may be implemented using products, software, systems, hardware, etc. from companies other than VMware. In other examples, the virtual environment infrastructure 108 may include additional or different components other than those shown in
The example network virtualizer 110 is a network virtualization platform that may be used to provide virtual network resources for network computing environments. The example network virtualizer 110 may be implemented using the VMware NSX® network virtualization platform developed and sold by VMware®. The example virtual storage area network 112 is a data storage virtualization platform that may be used to provide virtual data store resources for network computing environments. The example virtual storage area network 112 may be implemented using the VMware® Virtual SAN™ (vSAN) software-defined storage platform developed and sold by VMware®. Additionally, or alternatively, the network virtualizer 110 and/or the virtual storage area network 112 may be implemented using products from companies other than VMware®.
In the illustrated example of
In some examples, the automation manager 130 operates to automate services provided via the SDDC 102 including a centralized localization service. In some examples, the centralized localization service is implemented by the collaboration of an example provisioning service, an example cloud services platform (CSP) developed and sold by VMware®, an example localization system and an example provisioning user interface service. While in the illustrated example of
In some examples, multiple operations performed by the above-identified services may need to be performed sequentially within the context of the centralized localization service. For example, a response to a user request is provided after such a request is received.
Example approaches disclosed herein augment the functionality of the automation manager 130 by centralizing a localization service provided to multiple users located in multiple locales. In some such examples approaches, the centralized localization service operates to register users of the service along with locale information, to respond to requests generated by a user of the service by checking the request for localization information, and, if such information is included, using the localization information to generate a response to the request that is appropriate (e.g., is provided in a language associated with a locale in which the user is located). Thus, the centralized localization service enables the provision of an appropriate response to a user request while eliminating the need to check a user profile associated with a request received from a user each time such a request is received. As used herein, a messages bundle is a collection of text files (e.g., properties files) containing key-value pairs (e.g., properties). In some examples, one properties file is created for each language or locale that the multi-service centralized location service is to support. In some examples, one properties file is created for each micro-service. In some examples, the properties file includes locale identifiers associated with a user's language/regional preferences. Such locale identifiers are supported by the multi-centralized location service. In some examples, a property file can be used to identify a default locale to be used when a user's profile does not exist. In some examples, the properties file is an example default file that an Administration Console can use if a user has not specified a locale. Further, in some examples, a locale or locale identifier represents a specific geographical, political, or cultural region. An operation that requires a locale to perform its task is called locale-sensitive and uses the locale identifier to tailor information for the user. For example, displaying a number is a locale-sensitive operation—the number should be formatted according to the customs/conventions of the user's native country, region, or culture. In some examples, when a user profile specifies a locale, then a user can log into a browser located anywhere in the world and the information will still be tailored to the customs and conventions of the user's country/region and not the location of the browser. Greater detail regarding the information messages bundles is provided in connection with the description of the localization controller of
In operation, the example automation request interface 210 receives an automation request to provide a client/user with the centralized localization service 200. In some examples, the automation request interface 210 receives such an automation request as part of a provisioning service by which a user/client reserves one or more resources of the example SDDC 100 (see
Upon receiving the automation request, the example provisioning controller 220 inspects the request and responds by registering geographical localization information of the user/client with the example localization controller 240. After registering with the example localization controller 240, responses to user requests received from the example provisioning user interface controller 250 are formatted in a language appropriate to the geographical localization information registered with the localization controller 240. In some examples, the ability to format the response in an appropriate language is based on information contained in a custom header included with the individual user requests. The information contained in the custom header is processed by the example provisioning controller 220 in collaboration with the localization controller 240. In some examples, when a custom header is absent from a request, the provisioning controller 220 consults the example identity service controller 230 for localization information. In some such examples, the identity service controller 230 communicates with the provisioning user interface controller 250 of the automation manager 130 to obtain the localization information needed to formulate a response in an appropriate language.
In some examples, the example service initiator 310 of the example provisioning controller 220 receives a request from the automation request interface 210 (see
In some examples, after the multi-service centralized localization provisioning has been initiated and the messages bundles have been generated, the multi-service centralized localization system 100 is ready to begin receiving user requests to be localized. In some examples, a user request submitted at the provisioning user interface 250 is received at the example inbound request receiver 325 of the provisioning controller 220 and is provided by the receiver to the request handler 330 (also of the provisioning controller 220). Upon receiving the user request, the inbound request handler 330 causes the example localization/custom header checker 350 to determine whether the inbound request includes a custom header. In some examples, the custom header is inserted by the example provisioning user interface 250. When the localization/custom header checker 350 determines that the inbound request does not include a custom header, then the identity service checker 340 checks to determine whether an identity service is available. In some examples, the localization/custom header checker 350, upon determining a custom header is not included in the request, generates an error message that is supplied to the identity service checker 340. In some examples, when the identity service checker determines, in response to the error message that an identity service exists, the example identity service controller 230 is consulted to identify a locale identifier of the user as described further below. The identity service controller 230 (see
In some examples, when the identity service checker 340 determines that an identity service is not available, a request for locale information transmitted by the identity service checker 340 (
In some examples, after the example locale inserter 360 has inserted the locale identifier into the header or when the localization/custom header checker 350 determines that the inbound request does include a custom header, the example operation context builder 370 uses the supplied locale information from the identity checker 340 or from the custom header to build an operation context for the request. In some examples, building the operation context includes caching the locale identifier associated with a user-request for use in all subsequent, similar requests. In some examples, operation context refers to context related to a current request. The context can include request information (e.g., a resource being requested) authorization related information to indicate whether the request is authorized, is internal to the provisioning service, a language in which to provide a response to the request, etc. In some examples, the cache is used to store the context so that the context information is available for future requests by the same user.
In some examples, the example action executor 380 then executes the action included in the submitted request to thereby generate a non-localized response. When the example action executor 380 is able to successfully perform the action requested by the user, the action executor 380 generates the non-localized response to the requested action indicating the action was successful. In some examples, the non-localized response generated by the action executor 380 includes a success code indicating the action was successfully executed. When the action executor 380 is unable to successfully perform the action requested by the user, the action executor 380 generates non-localized response that includes an error code indicating the requested action was unsuccessful. The action executor 380 can supply the non-localized response with the corresponding locale (e.g., locale identifier) to the example non-localized response transmitter 390 which transmits the non-localized response to the example localization controller 240. The localization controller 240 operates to generate a localized response based on the non-localized response. The localized response is formatted in a manner that is appropriate to the locale identifier included in the header of the non-localized response, and the localized response is formatted to include a message corresponding to the error code for the micro-service to which the user request was directed, as further described below.
In some examples, as described above, the identity service checker 340 (
In some examples, when the example provisioning controller 220 initiates a registration service, the service initiator 310 (
In response to an indication from the example service initiator 310 (
In some examples, the messages bundle created for any one of the micro-services includes responses to error codes or success codes generated (by the example action executor 380 (
In some examples, the codes (error and success) and corresponding responsive messages are stored multiple times in a messages bundle associated with a micro-service. In some such examples, a set of the codes and corresponding responsive messages are created (and stored) for each locale identifier and the set of corresponding responsive messages associated with each locale identifier are formatted in accordance with the identified locale. In some examples, a micro-service can support five different locales, each corresponding to a different language/geographical region. In such examples, five sets of the codes and corresponding responsive messages are stored, each set corresponding to one of the five different locales. In some such examples, when a code is generated in response to an attempt to perform an action with a microservice, the code and a corresponding locale identifier (associated with the user attempting to perform the action) is used to access the messages bundle corresponding to the micro-service. The locale identifier is used to locate a corresponding one of the five sets of codes and corresponding messages within the messages bundle of the micro-service. Next, the code (error or success) is located in the set of codes of the locale identifier and the message corresponding to code is used to respond to the user's attempt to perform the action. Further, as described above, the corresponding message, having been selected based on the code and the locale identifier of the micro-service, is formatted appropriately to the language/region associated with the user. (As described above, the user's attempt to perform the action is submitted by the user at the provisioning user interface controller 250 via an input device (e.g., a keyboard of the computer device 148)).
In some examples, when the non-localized response to a user request is generated by the provisioning controller 220 as described above, the non-localized response is transmitted by the non-localized response transmitter 390 of
In some examples, the example request receiver 610 receives a user-generated request from the example computer device 148. The request may include a request for any type of service or any request that requires interfacing with, for example, the provisioning service controller 220. Example services and/or requests can include a request for details about a compute resource, a subnet, a storage, etc., a request to start or stop a compute resource, a request to delete a compute resource, a request to perform a resource operation, etc. In some examples, the example custom header inserter 612 inserts a custom header into the request and then causes the request to be transmitted to the inbound request receiver 325 of the provisioning controller 220 (
In some examples, a localized response/message is received in response to the user request at the example localized response transceiver 640 of the provisioning user interface controller 250. The localized response/message is provided to the example display controller 650 which causes the display controller 650 to be presented on a display of the computer device 148 via the example browser 620. As described above with respect to
In some examples, the request receiver and custom header inserter 610 does not insert a custom header into the user request before providing the request to the provisioning controller 220. Instances in which a customer header is not inserted can include, for example, when the example request receiver 610 determines that a response is not necessary for the current request. In some such examples, in response to the user request, a request for locale information transmitted from the provisioning controller 220 is received at the locale reader 630. The locale reader 630 reads the locale from the browser 620 and provides the locale information to the provisioning controller 220 for use in generating the non-localized response, as described above with respect to
In some examples, any or all of the example provisioning controller 220, the example automation request interface 210, the example identity controller 230, the example localization controller 240 and/or the example provisioning user interface controller 250 of the illustrated example of
While an example manner of implementing the automation manager 130 of
A flowchart representative of example hardware logic, machine readable instructions, hardware implemented state machines, and/or any combination thereof for implementing at least a portion of the example provisioning controller 220 of
A flowchart representative of example hardware logic, machine readable instructions, hardware implemented state machines, and/or any combination thereof for implementing at least a portion of the example provisioning controller 220 of
A flowchart representative of example hardware logic, machine readable instructions, hardware implemented state machines, and/or any combination thereof for implementing at least a portion of the example provisioning session controller 220, at least a portion of the example identity service controller 230, at least a portion of the example localization controller 240, and at least a portion of the example provisioning user interface controller 250 of
The machine readable instructions described herein may be stored in one or more of a compressed format, an encrypted format, a fragmented format, a compiled format, an executable format, a packaged format, etc. Machine readable instructions as described herein may be stored as data or a data structure (e.g., portions of instructions, code, representations of code, etc.) that may be utilized to create, manufacture, and/or produce machine executable instructions. For example, the machine readable instructions may be fragmented and stored on one or more storage devices and/or computing devices (e.g., servers) located at the same or different locations of a network or collection of networks (e.g., in the cloud, in edge devices, etc.). The machine readable instructions may require one or more of installation, modification, adaptation, updating, combining, supplementing, configuring, decryption, decompression, unpacking, distribution, reassignment, compilation, etc. in order to make them directly readable, interpretable, and/or executable by a computing device and/or other machine. For example, the machine readable instructions may be stored in multiple parts, which are individually compressed, encrypted, and stored on separate computing devices, wherein the parts when decrypted, decompressed, and combined form a set of executable instructions that implement one or more functions that may together form a program such as that described herein.
In another example, the machine readable instructions may be stored in a state in which they may be read by processor circuitry, but require addition of a library (e.g., a dynamic link library (DLL)), a software development kit (SDK), an application programming interface (API), etc. in order to execute the instructions on a particular computing device or other device. In another example, the machine readable instructions may need to be configured (e.g., settings stored, data input, network addresses recorded, etc.) before the machine readable instructions and/or the corresponding program(s) can be executed in whole or in part. Thus, machine readable media, as used herein, may include machine readable instructions and/or program(s) regardless of the particular format or state of the machine readable instructions and/or program(s) when stored or otherwise at rest or in transit.
The machine readable instructions described herein can be represented by any past, present, or future instruction language, scripting language, programming language, etc. For example, the machine readable instructions may be represented using any of the following languages: C, C++, Java, C#, Perl, Python, JavaScript, HyperText Markup Language (HTML), Structured Query Language (SQL), Swift, etc.
As mentioned above, the example processes of
“Including” and “comprising” (and all forms and tenses thereof) are used herein to be open ended terms. Thus, whenever a claim employs any form of “include” or “comprise” (e.g., comprises, includes, comprising, including, having, etc.) as a preamble or within a claim recitation of any kind, it is to be understood that additional elements, terms, etc. may be present without falling outside the scope of the corresponding claim or recitation. As used herein, when the phrase “at least” is used as the transition term in, for example, a preamble of a claim, it is open-ended in the same manner as the term “comprising” and “including” are open ended. The term “and/or” when used, for example, in a form such as A, B, and/or C refers to any combination or subset of A, B, C such as (1) A alone, (2) B alone, (3) C alone, (4) A with B, (5) A with C, (6) B with C, and (7) A with B and with C. As used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B. Similarly, as used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B. As used herein in the context of describing the performance or execution of processes, instructions, actions, activities and/or steps, the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B. Similarly, as used herein in the context of describing the performance or execution of processes, instructions, actions, activities and/or steps, the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B.
As used herein, singular references (e.g., “a”, “an”, “first”, “second”, etc.) do not exclude a plurality. The term “a” or “an” entity, as used herein, refers to one or more of that entity. The terms “a” (or “an”), “one or more”, and “at least one” can be used interchangeably herein. Furthermore, although individually listed, a plurality of means, elements or method actions may be implemented by, e.g., a single unit or processor. Additionally, although individual features may be included in different examples or claims, these may possibly be combined, and the inclusion in different examples or claims does not imply that a combination of features is not feasible and/or advantageous.
One or more of the example components of the provisioning controller 220 including the example inbound request receiver 325, the example inbound request handler 330, the example identity service checker 340, the example localization/custom header checker 350, the example locale inserter 360, the example operation context builder 370, the example action executor 380 and/or the example non-localized response transmitter 390 handle requests from users to generate a non-localized response to the user request and to send the non-localized response to the localization controller 240 (Block 720).
The example localization controller 240 causes the non-localized response to be localized (Block 730). In some examples the example header reader 530, the example messages bundle verifier 540, and/or the example localized response creator 550 generate the localized response based on the non-localized response (Block 730). The example localized response transceiver 560 transmits the localized response to the example display controller 650 of the example provisioning user interface controller 250 for display at the user device 148 (Block 740). The example process 700 of the illustrated example of
The example operation context builder 370 supplies the user request to the action executor 380 which performs/executes the user request to generate a first (non-localized) response and the example non-localized response transmitter 390 of the example provisioning controller 220 (Block 945) and sends the response to the example localized response creator 550 of the example localization controller 240 (Block 947). The localized response creator 550 generates a localized response based on the first (non-localized response) (Block 950). In some examples, the example header reader 530 aids in generating the localized response by reading the custom header of the non-localized response, and the messages bundle verifier 540 of the example localization controller 240 verifies that the user is registered for the service and collects any needed information available from the example messages bundle repository 520. The localized response is then transmitted by the example localized response transceiver 560 to the example localized response transceiver 640 of the example provisioning user interface controller 250 (also Block 950). The localized response transceiver 640 provides the localized response to the example display controller 650. The display controller 650 displays the second localized response at the example computer device 148 via the example browser 620 (Block 955). For example, the example process 900 of the illustrated example of
The processor platform 1000 of the illustrated example includes a processor 1012. The processor 1012 of the illustrated example is hardware. For example, the processor 1012 can be implemented by one or more integrated circuits, logic circuits, microprocessors, GPUs, DSPs, or controllers from any desired family or manufacturer. The hardware processor may be a semiconductor based (e.g., silicon based) device. In this example, the processor implements the example automation manager 130, the example automation request interface 210, the example provisioning controller 220, the example identity service controller 230, the example localization controller 240, the example service initiator 310, the example messages bundle generator 320, the example inbound request handler 330, the example identity service checker 340. The example localization/custom header checker 350, the example locale inserter 360, the example operation context builder 370, the example action executor 380, the example locale fetcher 410, the example registrator 510, the example header reader 530, the example message bundle verifier 540, and/or the example localized response creator 550.
The processor 1012 of the illustrated example includes a local memory 1013 (e.g., a cache). The processor 1012 of the illustrated example is in communication with a main memory including a volatile memory 1014 and a non-volatile memory 1016 via a bus 1018. The volatile memory 1014 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS® Dynamic Random Access Memory (RDRAM®) and/or any other type of random access memory device. The non-volatile memory 1016 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 1014, 1016 is controlled by a memory controller. In this example, any of the example volatile memory 1014, the non-volatile memory 1016 and/or the mass storage 1028 can be used to implement the example user profile data storage 420 (
The processor platform 1000 of the illustrated example also includes an interface circuit 1020. The interface circuit 1020 may be implemented by any type of interface standard, such as an Ethernet interface, a universal serial bus (USB), a Bluetooth® interface, a near field communication (NFC) interface, and/or a PCI express interface.
In the illustrated example, one or more input devices 1022 are connected to the interface circuit 1020. The input device(s) 1022 permit(s) a user to enter data and/or commands into the processor 1012. The input device(s) can be implemented by, for example, an audio sensor, a microphone, a camera (still or video), a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, isopoint and/or a voice recognition system. In this example, the input device is used to implement the automation request interface 210.
One or more output devices 1024 are also connected to the interface circuit 1020 of the illustrated example. The output devices 1024 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display (LCD), a cathode ray tube display (CRT), an in-place switching (IPS) display, a touchscreen, etc.), a tactile output device, a printer and/or speaker. The interface circuit 1020 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip, and/or a graphics driver processor.
The interface circuit 1020 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem, a residential gateway, a wireless access point, and/or a network interface to facilitate exchange of data with external machines (e.g., computing devices of any kind) via a network 1026. The communication can be via, for example, an Ethernet connection, a digital subscriber line (DSL) connection, a telephone line connection, a coaxial cable system, a satellite system, a line-of-site wireless system, a cellular telephone system, etc. In this example, the example interface circuit and/or the example output devices can be implemented using the example non-localized response transmitter 390 (
The processor platform 1000 of the illustrated example also includes one or more mass storage devices 1028 for storing software and/or data. Examples of such mass storage devices 1028 include floppy disk drives, hard drive disks, compact disk drives, Blu-ray disk drives, redundant array of independent disks (RAID) systems, and digital versatile disk (DVD) drives.
The machine executable instructions 1032 of
The processor platform 1100 of the illustrated example includes a processor 1112. The processor 1112 of the illustrated example is hardware. For example, the processor 1112 can be implemented by one or more integrated circuits, logic circuits, microprocessors, GPUs, DSPs, or controllers from any desired family or manufacturer. The hardware processor may be a semiconductor based (e.g., silicon based) device. In this example, the processor implements the example locale reader 630, the example browser 620, the example display controller 650, and at least a portion of the example request receiver 610 and the example custom header inserter 612.
The processor 1112 of the illustrated example includes a local memory 1113 (e.g., a cache). The processor 1112 of the illustrated example is in communication with a main memory including a volatile memory 1114 and a non-volatile memory 1116 via a bus 1118. The volatile memory 1114 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS® Dynamic Random Access Memory (RDRAM®) and/or any other type of random access memory device. The non-volatile memory 1116 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 1114, 1116 is controlled by a memory controller.
The processor platform 1100 of the illustrated example also includes an interface circuit 1120. The interface circuit 1120 may be implemented by any type of interface standard, such as an Ethernet interface, a universal serial bus (USB), a Bluetooth® interface, a near field communication (NFC) interface, and/or a PCI express interface.
In the illustrated example, one or more input devices 1122 are connected to the interface circuit 1120. The input device(s) 1122 permit(s) a user to enter data and/or commands into the processor 1112. The input device(s) can be implemented by, for example, an audio sensor, a microphone, a camera (still or video), a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, isopoint and/or a voice recognition system. In this instance, the input devices 1122 and/or the interface circuit 1120 is/are implemented by the keyboard of the computer device 148, the request receiver 610, and the localized response transceiver 640.
One or more output devices 1124 are also connected to the interface circuit 1120 of the illustrated example. The output devices 1124 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display (LCD), a cathode ray tube display (CRT), an in-place switching (IPS) display, a touchscreen, etc.), a tactile output device, a printer and/or speaker. The interface circuit 820 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip, and/or a graphics driver processor. In this instance, the example output device 1124 implements the display of the example computer device 148.
The interface circuit 1120 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem, a residential gateway, a wireless access point, and/or a network interface to facilitate exchange of data with external machines (e.g., computing devices of any kind) via a network 1126. The communication can be via, for example, an Ethernet connection, a digital subscriber line (DSL) connection, a telephone line connection, a coaxial cable system, a satellite system, a line-of-site wireless system, a cellular telephone system, etc.
The processor platform 1100 of the illustrated example also includes one or more mass storage devices 1128 for storing software and/or data. Examples of such mass storage devices 1128 include floppy disk drives, hard drive disks, compact disk drives, Blu-ray disk drives, redundant array of independent disks (RAID) systems, and digital versatile disk (DVD) drives.
At least a portion of the machine executable instructions 1132 of
A block diagram illustrating an example software distribution platform 1205 to distribute software such as the example computer readable instructions 1032 of
The one or more servers of the example software distribution platform 1205 are in communication with a network 1210, which may correspond to any one or more of the Internet and/or any of the example networks 150 described above. In some examples, the one or more servers are responsive to requests to transmit the software to a requesting party as part of a commercial transaction. Payment for the delivery, sale and/or license of the software may be handled by the one or more servers of the software distribution platform and/or via a third party payment entity. The servers enable purchasers and/or licensors to download the computer readable instructions 1032, 1132 from the software distribution platform 1205. For example, the software, which may correspond to the example computer readable instructions 700 of
From the foregoing, it will be appreciated that example methods, apparatus and articles of manufacture have been disclosed that enable a micro-service centralized localization service to reduce the amount of processing required to provide localized information to computers operating in a cloud environment. The disclosed methods, apparatus and articles of manufacture improve communications between user computer devices and micro-services disposed in the cloud by automatically providing localized responses to user requests without requiring additional communication between the user computer devices and the micro-services to obtain locale information. The ability to provide centralized localization to users of micro-services greatly reduces the amount of communication traffic needed to localize information presented at the user computer devices. As disclosed herein, micro-services can refer to any of the numerous services that collaborate to provide a main service. Micro-services can be directed to, for example, identity checking, provisioning resources, billing activities, etc. The disclosed methods, apparatus and articles of manufacture are accordingly directed to one or more improvement(s) in the functioning of a computer.
Although certain example methods, apparatus and articles of manufacture have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all methods, apparatus and articles of manufacture fairly falling within the scope of the claims of this patent.
Example 1 is an apparatus to provide a centralized localization message service to a plurality of micro-services. The apparatus includes messages bundle generator to generate a plurality of messages bundles. Respective ones of the messages bundles are associated with respective ones of the plurality of micro-services. The apparatus also includes a localized response creator to create a localized response based on a non-localized response to a request by a user to one of the plurality of micro-services. The localized response is based on one of the plurality of messages bundles and the one of the plurality of messages bundles corresponds to the one of the plurality of micro-services.
Example 2 includes the apparatus of Example 1. In Example 2, the one of the plurality of messages bundles corresponding to the one of the plurality of micro-services includes sets of codes. Respective ones of the sets of codes correspond to respective locale identifiers.
Example 3 includes the apparatus of Example 1. In Example 3, respective sets of codes included in the one of the plurality of messages bundles correspond to respective locale identifiers. In Example 3, the locale identifiers identify at least one of a language or a geographical region associated with a preference of the user.
Example 4 includes the apparatus of Example 1 and further includes a header inserter to insert a header into the request by the user. The header includes a locale identifier, and the localized response creator creates the localized response based, at least in part, on the locale identifier.
Example 5 includes the apparatus of Example 1. In Example 5, at least some of the plurality of micro-services collaborate to perform a macro-service.
Example 6 includes the apparatus of Example 1. In Example 6, the localized response is further based on a locale identifier. In Example 6, the apparatus further includes a header checker. The header checker that determines whether the request by the user includes a custom header having a locale identifier. When request by the user does not include the custom header, the header checker obtains the locale identifier from a user profile.
Example 7 includes the apparatus of Example 6. The apparatus of Example 7 further includes an identity service controller that determines an identity of the user when the request by the user does not include the custom header.
Example 8 is at least one non-transitory computer readable storage medium including instructions that, when executed, cause at least one processor to at least generate a plurality of messages bundles, respective ones of the messages bundles associated with respective ones of a plurality of micro-services available in a distributed cloud environment. The instructions further cause the at least one processor to create a localized response based on a non-localized response to a request. The request is provided by a user to one of the plurality of micro-services and the localized response is based on one of the plurality of messages bundles. In addition, in Example 8, the one of the plurality of messages bundles corresponds to the one of the plurality of micro-services.
Example 9 includes the instructions of Example 8. In Example 9, the one of the plurality of messages bundles corresponding to the one of the plurality of micro-services includes sets of codes. In Example 9, respective ones of the sets of codes correspond to respective locale identifiers.
Example 10 includes the instructions of Example 8. In Example 10, respective sets of codes included in the one of the plurality of messages bundles correspond to respective locale identifiers. In addition, at least one of the locale identifiers identifies at least one of a language or a geographical region associated with a preference of the user.
Example 11 includes the instructions of Example 8. In Example 11, the instructions also cause the processor to insert a header into the request by the user, the header to include a locale identifier. In Example 11, the localized response is based, at least in part, on the locale identifier.
Example 12 includes the instructions of Example 8. In Example 12, at least some of the plurality of micro-services collaborate to perform a macro-service.
Example 13 includes the instructions of Example 8. In Example 13, the localized response is also based on a locale identifier. Additionally, in Example 13, the instructions, when executed, further cause the at least one processor to determine whether the request by the user includes a custom header having a locale identifier. In Example 13, when the request by the user does not include the custom header, the instructions cause the at least one processor to obtain the locale identifier from a user profile.
Example 14 includes the instructions of Example 13. In Example 14, the instructions further cause the at least one processor to determine an identity of the user when the request by the user does not include the custom header with the locale identifier.
Example 15 is a method to provide a centralized localization message service to a plurality of micro-services. The method includes generating, by executing an instruction with one or more processors, a plurality of messages bundles. Respective ones of the messages bundles are associated with respective ones of a plurality of micro-services available in a distributed cloud environment. The method of Example 15 also includes creating, by executing an instruction with the one or more processors, a localized response based on a non-localized response to a request. The request is provided by a user to one of the plurality of micro-services and the localized response is based on one of the plurality of messages bundles. In addition, the one of the plurality of messages bundles corresponds to the one of the plurality of micro-services.
Example 16 includes the method of Example 15. In Example 16, the one of the plurality of messages bundles corresponding to the one of the plurality of micro-services includes sets of codes. Respective ones of the sets of codes correspond to respective locale identifiers.
Example 17 includes the method of Example 15. In Example 17, the respective sets of codes included in the one of the plurality of messages bundles correspond to respective locale identifiers. In addition, at least one of the locale identifiers identifies at least one of a language or a geographical region associated with a preference of the user.
Example 18 includes the method of Example 15 and further includes determining whether a header of the request by the user includes a locale identifier. In Example 18, the localized response is based, at least in part, on the locale identifier.
Example 19 includes the method of Example 15. In Example 19, at least some of the plurality of micro-services collaborate to perform a macro-service.
Example 20 includes the method of Example 15. In the method of Example 20, the localized response is further based on a locale identifier and the method also includes determining whether the request by the user includes a custom header having a locale identifier. When the request by the user does not include the custom header, the method includes determining the locale identifier based on a user profile.
The following claims are hereby incorporated into this Detailed Description by this reference, with each claim standing on its own as a separate embodiment of the present disclosure.
Claims
1. An apparatus to provide a centralized localization message service to a first micro-service of a plurality of micro-services, the apparatus comprising:
- a messages bundle generator implemented by hardware or at least one processor, the messages bundle generator to generate a messages bundle associated with the first micro-service;
- an action executor implemented by hardware or the at least one processor, the action executor to generate a non-localized response responsive to a request to perform an action associated with the first micro-service, the request to include a locale identifier; and
- a localized response creator implemented by hardware or the at least one processor, the localized response creator to create a localized response based on a code included in the non-localized response, the localized response to replace the non-localized response and to include a responsive message corresponding to the code, the responsive message and the code associated with the locale identifier and stored in the messages bundle.
2. The apparatus of claim 1, wherein the messages bundle is a first messages bundle, and respective ones of the plurality of messages bundles, including the first messages bundle, correspond to different ones of the plurality of micro-services, and each messages bundle includes sets of responsive messages and corresponding codes, respective ones of the sets in the messages bundles corresponding to respective locale identifiers.
3. The apparatus of claim 1, wherein the locale identifier identifies at least one of a language or a geographical region.
4. The apparatus of claim 1, further including a header inserter to insert a header into the request to perform the action, the header to include the locale identifier.
5. The apparatus of claim 1, wherein the at least some of the plurality of micro-services collaborate to perform a macro-service.
6. The apparatus of claim 1, further including a header checker to:
- determine whether the request to perform the action includes a custom header, the custom header to include the locale identifier; and
- when the request to perform the action does not include the custom header, obtain the locale identifier from a user profile.
7. The apparatus of claim 6, further including an identity service controller, the identity service controller to determine an identity of the user making the request to perform the action when the request to perform the action does not include the custom header.
8. At least one non-transitory computer readable storage medium comprising instructions that, when executed, cause at least one processor to at least:
- generate a plurality of messages bundles, respective ones of the messages bundles associated with respective ones of a plurality of micro-services available in a distributed cloud environment; and
- create a localized response based on a non-localized response to a request to provision a first one of the plurality of micro-services, the localized response to replace the non-localized response with a responsive message included in a first one of the plurality of messages bundles corresponding to the first one of the plurality of micro-services, and the responsive message corresponding to a code included in the non-localized response.
9. The at least one computer readable storage medium of claim 8, wherein the first one of the plurality of messages bundles includes sets of codes and corresponding responsive messages, wherein respective ones of the sets of codes and corresponding responsive messages correspond to respective locale identifiers.
10. The at least one computer readable storage medium of claim 8, wherein respective sets of responsive messages and corresponding codes included in the first one of the plurality of messages bundles each correspond to respective locale identifiers, at least one of the locale identifiers to identify at least one of a language or a geographical region associated.
11. The at least one computer readable storage medium of claim 8, wherein the instructions, when executed, cause the at least one processor to insert a header into the request, the header to include a locale identifier, the locale identifier corresponding to one set of a plurality of sets of responsive messages and corresponding codes in the first one of the messages bundles, the.
12. The at least one computer readable storage medium of claim 8, wherein at least some of the plurality of micro-services collaborate to perform a macro-service.
13. The at least one computer readable storage medium of claim 8, wherein the localized response is further based on a locale identifier associated with one set of a plurality of sets of responsive messages and corresponding codes of the one messages bundle of the plurality of messages bundles, and the instructions, when executed, cause the at least one processor to
- determine whether the request includes a custom header, the custom header to include the locale identifier; and
- when the request does not include the custom header, obtain the locale identifier from a user profile.
14. The at least one computer readable storage medium of claim 13, wherein the instructions, when executed, cause the at least one processor to determine an identity of a user associated with the request, when the request does not include the custom header with the locale identifier.
15. A method to provide a centralized localization message service to a plurality of micro-services, the method comprising:
- generating, by executing an instruction with one or more processors, a plurality of messages bundles, respective ones of the messages bundles associated with respective ones of a plurality of micro-services available in a distributed cloud environment; and
- creating, by executing an instruction with the one or more processors, a localized response based on a non-localized response to a request to use a first one micro-service of the plurality of micro-services, the localized response based on a responsive message corresponding to a code included in the non-localized response, and the responsive message and corresponding code included in a first messages bundle of the plurality of messages bundles corresponding to the first one microservice of the plurality of micro-services.
16. The method of claim 15, wherein respective ones of the plurality of messages bundles include respective sets of responsive messages corresponding to codes, and the respective sets of responsive messages and corresponding codes included in the respective ones of the messages bundles correspond to respective ones of a plurality of locale identifiers.
17. The method of claim 16, wherein at least one of the locale identifiers is to identify at least one of a language or a geographical region associated with a preference of the user.
18. The method of claim 15, further including determining whether a header of the request includes a locale identifier, the localized response based, at least in part, on the locale identifier.
19. The method of claim 15, wherein at least some of the plurality of micro-services collaborate to perform a macro-service.
20. The method of claim 15, wherein the localized response is further based on a locale identifier, the method further including:
- determining whether the request includes a custom header, the custom header to include a locale identifier; and
- when the request does not include the custom header, determining the locale identifier based on a user profile of a user associated with the request.
Type: Application
Filed: Jun 12, 2020
Publication Date: Dec 16, 2021
Patent Grant number: 11856067
Inventors: Anna Milkova Delcheva (Sofia), Sibin Stilyanov Georgiev (Sofia), Boris Savov Savov (Sofia), Dimitar Ivanov Ivanov (Sofia)
Application Number: 16/900,568