KR102337962B1 - System and method for executing application based on microservice architecture and computer program for the same - Google Patents

System and method for executing application based on microservice architecture and computer program for the same Download PDF

Info

Publication number
KR102337962B1
KR102337962B1 KR1020200060777A KR20200060777A KR102337962B1 KR 102337962 B1 KR102337962 B1 KR 102337962B1 KR 1020200060777 A KR1020200060777 A KR 1020200060777A KR 20200060777 A KR20200060777 A KR 20200060777A KR 102337962 B1 KR102337962 B1 KR 102337962B1
Authority
KR
South Korea
Prior art keywords
service
information
application
resource
computing device
Prior art date
Application number
KR1020200060777A
Other languages
Korean (ko)
Other versions
KR20210144045A (en
Inventor
김홍구
Original Assignee
웹케시 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 웹케시 주식회사 filed Critical 웹케시 주식회사
Priority to KR1020200060777A priority Critical patent/KR102337962B1/en
Publication of KR20210144045A publication Critical patent/KR20210144045A/en
Application granted granted Critical
Publication of KR102337962B1 publication Critical patent/KR102337962B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/461Saving or restoring of program or task context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Abstract

마이크로서비스 아키텍처(MicroService Architecture; MSA) 애플리케이션 실행 시스템은, 사용자의 서비스 요청에 대한 응답으로, 저장 서버에 서비스 및 리소스(resource) 요청을 전송하도록 구성된 컴퓨팅 장치; 및 마이크로서비스 아키텍처 애플리케이션의 하나 이상의 서비스에 연관된 서비스 정보 및 리소스 정보를 저장하며, 상기 서비스 및 리소스 요청에 대한 응답으로, 상기 서비스 정보 및 상기 리소스 정보를 제공하도록 구성된 저장 서버를 포함한다. 상기 컴퓨팅 장치는, 상기 저장 서버로부터 수신된 상기 서비스 정보 및 상기 리소스 정보를 이용하여 상기 서비스 요청에 상응하는 상기 애플리케이션의 서비스를 수행하도록 더 구성된다. 상기 MSA 애플리케이션 실행 시스템을 이용하면, 모든 클래스(class) 및 리소스(resource) 정보를 저장 서버에 저장하고 컨테이너(container)별 실행 시점에 필요한 정보를 받아 와 사용하도록 함으로써, 모노리틱 아키텍처(monolithic architecture)에 기반하여 개발된 서비스를 MSA 형태로 서비스할 수 있는 이점이 있다. A microservice architecture (MSA) application execution system includes: a computing device configured to send, in response to a service request of a user, a service and resource request to a storage server; and a storage server configured to store service information and resource information associated with one or more services of a microservices architecture application, and provide the service information and the resource information in response to the service and resource request. The computing device is further configured to perform the service of the application corresponding to the service request by using the service information and the resource information received from the storage server. When the MSA application execution system is used, all class and resource information is stored in a storage server, and the necessary information is received and used at the execution time for each container, thereby creating a monolithic architecture. There is an advantage of being able to provide services developed based on MSA in the form of MSA.

Description

마이크로서비스 아키텍처 애플리케이션 실행 시스템과 방법 및 이를 위한 컴퓨터 프로그램{SYSTEM AND METHOD FOR EXECUTING APPLICATION BASED ON MICROSERVICE ARCHITECTURE AND COMPUTER PROGRAM FOR THE SAME}SYSTEM AND METHOD FOR EXECUTING APPLICATION BASED ON MICROSERVICE ARCHITECTURE AND COMPUTER PROGRAM FOR THE SAME

실시예들은 마이크로서비스 아키텍처(MicroService Architecture; MSA) 애플리케이션 실행 시스템과 방법 및 이를 위한 컴퓨터 프로그램에 대한 것이다. 보다 구체적으로는, 실시예들은 외부 서버에 모든 클래스(class) 및 리소스(resource) 정보를 저장하고 컨테이너(container)별 실행 시점에 필요한 클래스 및 리소스 정보를 받아 와 사용하도록 함으로써, 모노리틱 아키텍처(monolithic architecture)에 기반하여 개발된 서비스를 MSA 형태로 서비스하는 기술에 대한 것이다. Embodiments relate to a microservice architecture (MSA) application execution system and method, and a computer program therefor. More specifically, the embodiments store all class and resource information in an external server and receive and use the class and resource information required at the execution time for each container, thereby providing a monolithic architecture (monolithic architecture). architecture) based on the service developed in the form of MSA.

모노리틱 아키텍쳐(monolithic architecture)는 기존의 전통적인 애플리케이션 개발 형태를 지칭하는 것으로서, 하나의 패키징(packging) 파일 내에 애플리케이션의 모든 기능에 관련된 컴포넌트들 및 이를 처리하기 위한 로직 등이 전부 포함되는 서비스 형태를 의미한다. 모노리틱 아키텍쳐 기반의 애플리케이션은 각 컴포넌트들이 함수를 이용하여 상호 간에 호출하도록 구성된 구조를 갖는다. Monolithic architecture refers to the existing traditional application development form, and refers to a service form that includes all components related to all functions of the application and logic for processing them in one packaging file. do. An application based on a monolithic architecture has a structure in which each component calls each other using a function.

모노리틱 아키텍처에 의하면 전체 애플리케이션이 하나로 처리되기 때문에, 개발 프레임워크(framework) 상에서의 애플리케이션 개발, 배포 및 테스트 등이 용이한 이점이 있다. 반면, 규모가 큰 애플리케이션을 모노리틱 구조로 개발하는 경우, 특정 컴포넌트나 모듈에서의 성능 문제나 장애가 다른 컴포넌트에까지 영향을 주기 때문에 개발 시 전체 시스템의 구조를 이해할 필요가 있으며, 애플리케이션의 컴파일(compile) 및 배포, 애플리케이션 구동을 위한 서버의 기동 등에 오랜 시간이 걸리고, 특정 컴포넌트가 수정된 경우에도 애플리케이션 전체를 재배포해야 하는 불편함이 있다. According to the monolithic architecture, since the entire application is processed as one, there is an advantage in that application development, deployment, and testing on a development framework are easy. On the other hand, when developing a large-scale application with a monolithic structure, it is necessary to understand the structure of the entire system during development, because performance problems or failures in a specific component or module affect other components. And it takes a long time for distribution and startup of a server to run an application, and there is the inconvenience of having to redistribute the entire application even if a specific component is modified.

대용량 웹 서비스가 증가함에 따라, 기존의 모노리틱 아키텍처의 단점을 극복하기 위한 마이크로 서비스 아키텍처(MicroService Architecture; MSA)가 정의되었다. MSA에서 각 컴포넌트는 서비스의 형태로 구현되고, 애플리케이션 프로그래밍 인터페이스(Application Programming Interface; API)를 이용하여 다른 서비스와 통신을 수행하도록 구성된다. 예를 들어, 등록특허공보 제10-2027749호는 MSA의 각 서비스 간에 발생하는 통신에 대한 제어와 관리 기능을 제공하는 마이크로서비스 시스템 및 방법을 개시한다. As large-capacity web services increase, a microservice architecture (MSA) has been defined to overcome the shortcomings of the existing monolithic architecture. In MSA, each component is implemented in the form of a service, and is configured to communicate with other services using an application programming interface (API). For example, Korean Patent Publication No. 10-2027749 discloses a microservice system and method that provides a control and management function for communication occurring between each service of the MSA.

그러나, 모노리틱 아키텍처에 기반하여 개발된 서비스를 MSA 형태로 실행하고자 하는 경우, 서비스 간의 종속 관계 또는 각 서비스에서 호출하는 리소스(resource)에 대한 정보를 확인할 수 없으므로, 종래에는 모든 정보를 각 서버에 저장하여 각 서버에서 어떠한 서비스든 실행할 수 있도록 하는 대안을 이용하였다. 그러나 이 경우 MSA로서의 장점이 없어지고 단순히 서버 수를 늘리는 구성이 되는 한계가 있다. However, when the service developed based on the monolithic architecture is executed in the form of an MSA, it is impossible to check the information about the dependency relationship between services or the resource called by each service, so conventionally all information is stored in each server We used an alternative to save and run any service on each server. However, in this case, the advantage as an MSA disappears and there is a limitation in that it is a configuration that simply increases the number of servers.

등록특허공보 제10-2027749호Registered Patent Publication No. 10-2027749

본 발명의 일 측면에 따르면, 외부의 저장 서버에 모든 클래스(class) 및 리소스(resource) 정보를 저장하고 컨테이너(container)별 실행 시점에 필요한 클래스 및 리소스 정보를 받아 와 사용하도록 함으로써, 모노리틱 아키텍처(monolithic architecture)에 기반하여 개발된 서비스를 MSA 형태로 서비스할 수 있는 MSA 애플리케이션 실행 시스템과 방법 및 이를 위한 컴퓨터 프로그램을 제공할 수 있다. According to one aspect of the present invention, by storing all class and resource information in an external storage server and receiving and using the class and resource information required at the execution time for each container, monolithic architecture It is possible to provide an MSA application execution system and method capable of providing a service developed based on a monolithic architecture in the form of an MSA, and a computer program for the same.

본 발명의 일 측면에 따른 마이크로서비스 아키텍처(MicroService Architecture; MSA) 애플리케이션 실행 시스템은, 사용자의 서비스 요청에 대한 응답으로, 저장 서버에 서비스 및 리소스(resource) 요청을 전송하도록 구성된 컴퓨팅 장치; 및 마이크로서비스 아키텍처 애플리케이션의 하나 이상의 서비스에 연관된 서비스 정보 및 리소스 정보를 저장하며, 상기 서비스 및 리소스 요청에 대한 응답으로, 상기 서비스 정보 및 상기 리소스 정보를 제공하도록 구성된 저장 서버를 포함한다. 상기 컴퓨팅 장치는, 상기 저장 서버로부터 수신된 상기 서비스 정보 및 상기 리소스 정보를 이용하여 상기 서비스 요청에 상응하는 상기 애플리케이션의 서비스를 수행하도록 더 구성된다. MicroService Architecture (MSA) application execution system according to an aspect of the present invention, in response to a service request of a user, a computing device configured to transmit a service and resource (resource) request to a storage server; and a storage server configured to store service information and resource information associated with one or more services of a microservices architecture application, and provide the service information and the resource information in response to the service and resource request. The computing device is further configured to perform the service of the application corresponding to the service request by using the service information and the resource information received from the storage server.

일 실시예에서, 상기 컴퓨팅 장치는, 상기 서비스 및 리소스 요청을 상기 저장 서버에 전송하기 전에, 상기 서비스 정보 및 상기 리소스 정보를 상기 컴퓨팅 장치의 내부 저장소에서 검색하도록 더 구성된다.In an embodiment, the computing device is further configured to retrieve the service information and the resource information from an internal storage of the computing device before sending the service and resource request to the storage server.

일 실시예에서, 상기 컴퓨팅 장치는, 상기 애플리케이션의 하나 이상의 컨테이너(container)를 구성하며 상기 서비스 정보 및 상기 리소스 정보를 상기 저장 서버에 전송하도록 구성된 개발 프레임워크(framework)를 제공하도록 더 구성된다.In one embodiment, the computing device is further configured to provide a development framework configured to constitute one or more containers of the application and to transmit the service information and the resource information to the storage server.

본 발명의 일 측면에 따른 마이크로서비스 아키텍처 애플리케이션 동작을 위한 저장 서버는, 마이크로서비스 아키텍처 애플리케이션의 서비스 실행을 위한 서비스 정보 및 리소스 정보를 저장하도록 구성된 저장부; 및 컴퓨팅 장치로부터 상기 서비스 실행을 위한 서비스 및 리소스 요청을 수신하고, 상기 서비스 및 리소스 요청에 대한 응답으로, 상기 서비스 정보 및 상기 리소스 정보를 상기 컴퓨팅 장치에 제공하도록 구성된 정보 반환부를 포함한다.A storage server for a microservices architecture application operation according to an aspect of the present invention includes: a storage unit configured to store service information and resource information for service execution of the microservices architecture application; and an information return unit configured to receive a service and resource request for executing the service from a computing device, and provide the service information and the resource information to the computing device in response to the service and resource request.

본 발명의 일 측면에 따른 마이크로서비스 아키텍처 애플리케이션 실행 방법은, 저장 서버에 마이크로서비스 아키텍처 애플리케이션의 서비스 실행을 위한 서비스 정보 및 리소스 정보를 저장하는 단계; 상기 저장 서버가, 컴퓨팅 장치로부터 상기 애플리케이션의 서비스 실행을 위한 서비스 및 리소스 요청을 수신하는 단계; 및 상기 저장 서버가, 상기 서비스 및 리소스 요청에 대한 응답으로, 상기 서비스 정보 및 상기 리소스 정보를 상기 컴퓨팅 장치에 제공하는 단계를 포함한다.A microservices architecture application execution method according to an aspect of the present invention comprises the steps of: storing service information and resource information for service execution of a microservices architecture application in a storage server; receiving, by the storage server, a service and resource request for service execution of the application from a computing device; and providing, by the storage server, the service information and the resource information to the computing device in response to the service and resource request.

일 실시예에 따른 마이크로서비스 아키텍처 애플리케이션 실행 방법은 상기 서비스 및 리소스 요청을 수신하는 단계 전에, 상기 컴퓨팅 장치가 상기 서비스 정보 및 상기 리소스 정보를 상기 컴퓨팅 장치의 내부 저장소에서 검색하는 단계를 더 포함한다.The method of executing a microservices architecture application according to an embodiment further includes, before receiving the service and resource request, the computing device retrieving the service information and the resource information from an internal storage of the computing device.

일 실시예에 따른 마이크로서비스 아키텍처 애플리케이션 실행 방법은, 상기 컴퓨팅 장치가, 상기 저장 서버로부터 수신된 상기 서비스 정보 및 상기 리소스 정보를 이용하여 사용자의 서비스 요청에 상응하는 상기 애플리케이션의 서비스를 수행하는 단계를 더 포함한다.The microservices architecture application execution method according to an embodiment includes, by the computing device, performing a service of the application corresponding to a service request of a user by using the service information and the resource information received from the storage server include more

본 발명의 일 측면에 따른 컴퓨터 프로그램은, 하드웨어와 결합되어 실시예들에 따른 마이크로서비스 아키텍처 애플리케이션 실행 방법을 실행하기 위한 것으로서, 컴퓨터로 판독 가능한 기록매체에 저장될 수 있다. The computer program according to an aspect of the present invention is combined with hardware to execute the microservices architecture application execution method according to the embodiments, and may be stored in a computer-readable recording medium.

본 발명의 일 측면에 따른 마이크로서비스 아키텍처(MicroService Architecture; MSA) 애플리케이션 실행 시스템 및 방법에 의하면, 기존의 모노리틱 아키텍처(monolithic architecture) 방식의 서비스 구동에 필요한 모든 정보를 외부 서버에 저장하고, 컨테이너(container) 구동 시 커스텀 클래스로더(custom class loader) 등을 이용하여 서비스를 구성하고 BCI(Byte Code Insertion) 등을 통해 리소스(resource) 접근을 제어함으로써, 모노리틱 아키텍처에 기반하여 개발된 서비스를 MSA 형태로 서비스할 수 있는 이점이 있다. According to the microservice architecture (MSA) application execution system and method according to an aspect of the present invention, all information required for service operation of the existing monolithic architecture method is stored in an external server, and a container ( container), configure the service using a custom class loader, etc. and control access to resources through BCI (Byte Code Insertion), etc. It has the advantage of being able to serve as

도 1은 일 실시예에 따른 마이크로서비스 아키텍처(MicroService Architecture; MSA) 애플리케이션의 개발을 위한 개발 프레임워크(framework)의 개략적인 블록도이다.
도 2는 도 1에 도시된 개발 프레임워크를 이용한 컨테이너(container) 배포 과정을 나타내는 순서도이다.
도 3은 일 실시예에 따른 MSA 애플리케이션 실행 시스템에 의한 MSA 컨테이너의 실행 과정을 나타내는 순서도이다.
도 4는 일 실시예에 따른 MSA 애플리케이션 실행 시스템의 저장 서버의 개략적인 블록도이다.
1 is a schematic block diagram of a development framework for the development of a microservice architecture (MSA) application according to an embodiment.
FIG. 2 is a flowchart illustrating a container distribution process using the development framework shown in FIG. 1 .
3 is a flowchart illustrating an execution process of an MSA container by an MSA application execution system according to an exemplary embodiment.
4 is a schematic block diagram of a storage server of an MSA application execution system according to an embodiment.

이하에서, 도면을 참조하여 본 발명의 실시예들에 대하여 상세히 살펴본다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

도 1은 일 실시예에 따른 마이크로서비스 아키텍처(MicroService Architecture; MSA) 애플리케이션의 개발을 위한 개발 프레임워크(framework)의 개략적인 블록도이다.1 is a schematic block diagram of a development framework for the development of a microservice architecture (MSA) application according to an embodiment.

본 발명의 실시예들은 컨테이너(container)를 이용하여 MSA 서비스 형태를 가지는 애플리케이션을 실행하도록 구성된 시스템에 대한 것이다. 본 명세서에서 MSA 컨테이너는, MSA 기반 애플리케이션의 하나 이상의 서비스를 실행하고 그 실행 결과를 사용자에게 제공하는 컴퓨팅 장치 및 이의 소프트웨어 구동 수단을 통칭한다. 예컨대, MSA 기반 애플리케이션은 가상화 서버 상에서 실행되는 도커(docker)에서 이미지를 불러와 실행하는 방식으로 서비스를 제공하며, MSA 컨테이너는 이러한 가상화 서버 등 컴퓨팅 장치와 이에 의해 실행되는 소프트웨어 수단을 개념적으로 지칭한 것이다. Embodiments of the present invention relate to a system configured to execute an application having an MSA service type using a container. In the present specification, the MSA container collectively refers to a computing device that executes one or more services of an MSA-based application and provides a result of the execution to a user and a software driving means thereof. For example, MSA-based applications provide services by loading images from Docker running on a virtualization server and executing them, and MSA containers conceptually refer to computing devices such as virtualization servers and software means executed by them. .

MSA 컨테이너는 가상화 서버에 의하여 실행되며, 이하의 본 명세서에서는 개발자의 사용자 장치(1)와 통신하는 개발 프레임워크 제공 시스템(3)이 이러한 가상화 서버의 기능을 수행하는 것으로 상정하여 실시예들에 따른 MSA 애플리케이션 실행 시스템을 설명한다. 그러나, MSA 애플리케이션을 위한 가상화 서버는 사용자 장치(1) 또는 다른 임의의 컴퓨팅 장치에 의하여 실행될 수 있다. 따라서, 후술하는 청구범위의 컴퓨팅 장치는 도 1의 사용자 장치(1), 개발 프레임워크 제공 시스템(3) 또는 도면에 도시되지 않았으나 MSA 컨테이너를 실행하도록 구성된 임의의 가상화 서버를 지칭하는 것으로 의도되며, 특정 장치 또는 시스템으로 한정되지 않는다. The MSA container is executed by a virtualization server, and in the following specification, it is assumed that the development framework providing system 3 communicating with the developer's user device 1 performs the function of the virtualization server according to the embodiments. Describes the MSA application execution system. However, the virtualization server for the MSA application may be executed by the user device 1 or any other computing device. Accordingly, the computing device in the claims set out below is intended to refer to the user device 1 of FIG. 1 , the development framework providing system 3 or any virtualization server not shown in the figure but configured to run an MSA container, It is not limited to a specific device or system.

도 1을 참조하면, 개발 프레임워크 제공 시스템(3)은 사용자 장치(1) 및/또는 외부의 저장 서버(2)와 통신 가능하게 구성되어, 애플리케이션(application)의 개발자가 사용자 장치(1)를 통해 입력한 소스(source) 정보를 이용하여 모노리틱 아키텍처(monolithic architecture) 또는 MSA 컨테이너를 생성하는 역할을 한다. Referring to FIG. 1 , the development framework providing system 3 is configured to be able to communicate with the user device 1 and/or the external storage server 2 , so that the developer of the application uses the user device 1 . It plays a role of creating a monolithic architecture or MSA container using the source information input through the

본 명세서에 기재된 장치들은 전적으로 하드웨어이거나, 또는 부분적으로 하드웨어이고 부분적으로 소프트웨어인 측면을 가질 수 있다. 예컨대, 실시예들에 따른 개발 프레임워크 제공 시스템(3) 및 이와 통신하는 각각의 시스템, 장치, 서버 및 이에 포함된 각 부(unit)는, 특정 형식 및 내용의 데이터를 전자통신 방식으로 주고받기 위한 장치 및 이에 관련된 소프트웨어를 통칭할 수 있다. 본 명세서에서 "부", "모듈(module)", "서버", "시스템", "플랫폼", "장치" 또는 "단말" 등의 용어는 하드웨어 및 해당 하드웨어에 의해 구동되는 소프트웨어의 조합을 지칭하는 것으로 의도된다. 예를 들어, 여기서 하드웨어는 CPU 또는 다른 프로세서(processor)를 포함하는 데이터 처리 기기일 수 있다. 또한, 하드웨어에 의해 구동되는 소프트웨어는 실행중인 프로세스, 객체(object), 실행파일(executable), 실행 스레드(thread of execution), 프로그램(program) 등을 지칭할 수 있다.The devices described herein may be wholly hardware, or may have aspects that are partly hardware and partly software. For example, the development framework providing system 3 according to the embodiments and each system, device, server and each unit included therein communicating therewith transmit and receive data in a specific format and content in an electronic communication method A device for and related software may be collectively referred to. As used herein, terms such as “unit”, “module”, “server”, “system”, “platform”, “device” or “terminal” refer to a combination of hardware and software driven by the hardware. it is intended to For example, the hardware herein may be a data processing device including a CPU or other processor. In addition, software driven by hardware may refer to a running process, an object, an executable file, a thread of execution, a program, and the like.

사용자 장치(1)는 개발 프레임워크 제공 시스템(3)을 이용하여 애플리케이션을 개발하고자 하는 개발자가 사용하기 위한 장치이다. 도 1에서 사용자 장치(1)는 노트북 컴퓨터의 형태로 도시되었으나, 이는 예시적인 것으로서, 사용자 장치(1)는 스마트폰(smartphone) 등 이동 통신 단말기, 개인용 컴퓨터(personal computer), PDA(personal digital assistant), 태블릿(tablet) 컴퓨터, IPTV(Internet Protocol Television) 등을 위한 셋톱박스(set-top box) 등 임의의 컴퓨팅 장치의 형태로 구현될 수도 있다.The user device 1 is a device for use by a developer who wants to develop an application using the development framework providing system 3 . Although the user device 1 is illustrated in the form of a notebook computer in FIG. 1 , this is an example, and the user device 1 is a mobile communication terminal such as a smartphone, a personal computer, and a personal digital assistant (PDA). ), a tablet computer, a set-top box for IPTV (Internet Protocol Television), etc. may be implemented in the form of any computing device.

개발 프레임워크 제공 시스템(3)은 개발자가 개발 프레임워크 제공 시스템(3)에 소스 정보를 입력하고 개발하고자 하는 애플리케이션의 아키텍처 형태 등의 입력정보를 입력함으로써, 애플리케이션의 동작을 위한 컨테이너가 생성될 수 있도록 하는 플랫폼(platform)의 기능을 한다. In the development framework providing system 3, the developer inputs source information to the development framework providing system 3 and input information such as the architecture type of the application to be developed, so that a container for the operation of the application can be created. It functions as a platform that allows

예를 들어, 개발 프레임워크 제공 시스템(3)은 개발 프레임워크 제공 시스템(3)에 접속한 사용자 장치(1)상에 표시되기 위한 관리화면 등 사용자 인터페이스(user interface)를 제공하는 웹 서버(web server) 또는 애플리케이션 서비스 서버(application service server)의 형태로 구현될 수 있으나, 이에 한정되는 것은 아니다. For example, the development framework providing system 3 is a web server that provides a user interface such as a management screen to be displayed on the user device 1 connected to the development framework providing system 3 . server) or may be implemented in the form of an application service server (application service server), but is not limited thereto.

도 1에서는 설명의 편의를 위하여 개발자가 사용하는 장치인 사용자 장치(1)와 개발 프레임워크 제공 시스템(3)이 별개의 장치로 도시되었으며, 본 명세서의 실시예들은 개발 프레임워크 제공 시스템(3)과 사용자 장치(1)가 별개의 장치인 것으로 상정하여 설명된다. 그러나, 이는 예시적인 것으로서, 다른 실시예에서는 개발 프레임워크 제공 시스템(3) 자체가 개발자의 사용자 장치의 형태로 구현될 수도 있다. In Figure 1, for convenience of explanation, the user device 1 and the development framework providing system 3, which are devices used by developers, are shown as separate devices, and the embodiments of the present specification are the development framework providing system 3 It is assumed that the user device 1 and the user device 1 are separate devices. However, this is exemplary, and in another embodiment, the development framework providing system 3 itself may be implemented in the form of a developer's user device.

일 실시예에서, 개발 프레임워크 제공 시스템(3)은 저장부(30), 입출력부(31), 소스(source) 분석부(33) 및 컨테이너(container) 구성부(34)를 포함한다. 일 실시예에서, 개발 프레임워크 제공 시스템(3)은 컴파일(compile)부(32)를 더 포함할 수 있다. 또한 일 실시예에서, 개발 프레임워크 제공 시스템(3)은 송신부(35)를 더 포함할 수 있다.In an embodiment, the development framework providing system 3 includes a storage unit 30 , an input/output unit 31 , a source analysis unit 33 , and a container configuration unit 34 . In an embodiment, the development framework providing system 3 may further include a compile unit 32 . Also, in one embodiment, the development framework providing system 3 may further include a transmitter 35 .

본 명세서에서 개발 프레임워크 제공 시스템(3)을 구성하는 각각의 부는 반드시 물리적으로 구분되는 별개의 구성요소를 지칭하는 것으로 의도되지 않는다. 즉, 도 1에서 개발 프레임워크 제공 시스템(3)을 구성하는 각 부(30-35)는 서로 구분되는 별개의 블록으로 도시되었으나, 이는 개발 프레임워크 제공 시스템(3)을 이에 의해 실행되는 동작에 의해 기능적으로 구분한 것이다. 실시예에 따라서는 전술한 각 부 중 일부 또는 전부가 동일한 하나의 장치 내에 집적화될 수 있으며, 또는 하나 이상의 부가 다른 부와 물리적으로 구분되는 별개의 장치로 구현될 수도 있다. 예컨대, 개발 프레임워크 제공 시스템(3)의 각 부(30-35)는 분산 컴퓨팅 환경 하에서 서로 통신 가능하게 연결된 컴포넌트들일 수도 있다. In the present specification, each part constituting the development framework providing system 3 is not necessarily intended to refer to physically separate separate components. That is, each part 30-35 constituting the development framework providing system 3 in FIG. 1 is shown as a separate block that is distinguished from each other, but this is the operation performed by the development framework providing system 3 functionally separated by According to an embodiment, some or all of the above-described units may be integrated in the same single device, or one or more units may be implemented as separate devices physically separated from other units. For example, each part 30-35 of the development framework providing system 3 may be components communicatively connected to each other in a distributed computing environment.

입출력부(31)는 사용자 장치(1)를 통해 개발자의 입력을 수신하고 이에 상응하는 처리 결과를 사용자 장치(1)에 제공하기 위한 부분이다. 즉, 입출력부(31)는 개발자로부터 애플리케이션의 소스 정보를 수신할 수 있다. 이하의 본 명세서에서, 소스 정보는 자바(JAVA) 언어에 기반한 애플리케이션의 소스 코드를 예시로 하여 설명된다. 그러나, 실시예들에 따른 개발 프레임워크 제공 시스템(3)에서 사용될 수 있는 프로그래밍 언어의 종류는 이에 한정되는 것은 아니다. The input/output unit 31 is a part for receiving a developer's input through the user device 1 and providing a corresponding processing result to the user device 1 . That is, the input/output unit 31 may receive the source information of the application from the developer. In the following specification, the source information is described by taking the source code of the application based on the Java language as an example. However, the type of programming language that can be used in the development framework providing system 3 according to the embodiments is not limited thereto.

또한, 입출력부(31)는 개발자로부터 애플리케이션에 연관된 컨테이너 생성 요청을 수신할 수 있으며, 이때 컨테이너 생성 요청은 애플리케이션의 아키텍처 형태에 대한 입력정보를 포함할 수 있다. In addition, the input/output unit 31 may receive a container creation request related to the application from the developer, and in this case, the container creation request may include input information on the architectural form of the application.

컴파일부(32)는 개발자가 입력한 소스 정보를 컴퓨팅 장치에서 실행 가능한 형태(예컨대, 바이너리 파일 또는 중간언어 파일 등)로 변환하기 위한 부분이다. 이는 종래의 컴파일러(compiler)로부터 통상의 기술자에게 용이하게 이해될 수 있으므로, 자세한 설명은 생략한다. The compilation unit 32 is a part for converting the source information input by the developer into a form executable by the computing device (eg, a binary file or an intermediate language file, etc.). Since this can be easily understood by a person skilled in the art from a conventional compiler, a detailed description will be omitted.

소스 분석부(33)는 컴파일부(32)에 의해 변환되는 소스 정보를 분석하여, 애플리케이션에 포함된 하나 이상의 서비스 사이의 호출 관계에 연관된 관계정보를 생성하는 역할을 한다. 소스 분석부(33)의 동작은 코드 상의 주석을 통해 문서를 생성하는 독시젠(doxygen)이나, 소스 코드 내의 함수 호출을 그래프로 변환하는 그래프비즈(graphviz) 등 공지된 소프트웨어 도구로부터 용이하게 이해될 수 있다. The source analysis unit 33 analyzes the source information converted by the compilation unit 32 and serves to generate relationship information related to a call relationship between one or more services included in the application. The operation of the source analysis unit 33 can be easily understood from known software tools such as doxygen that generates a document through comments on the code or graphviz that converts a function call in the source code into a graph. can

본 발명의 실시예들에서 애플리케이션은 하나 이상의 서비스를 포함할 수 있으며, 각 서비스는 공통의 라이브러리(library)를 제외하고는 상호 간에 직접 호출을 금지하도록 소스 정보가 구성된다. 즉, 애플리케이션의 각 서비스 사이의 호출은 사전에 정의된 입출력 도메인(domain)을 이용한 URL(Uniform Resource Locator) 호출 방식으로 이루어지도록 구성되며, 이에 따라 소스 정보의 분석을 통하여 소스 정보의 각 서비스 사이의 호출 관계가 관계정보로서 생성될 수 있도록 한다. In embodiments of the present invention, an application may include one or more services, and source information is configured such that each service prohibits direct calls to each other except for a common library. That is, the call between each service of the application is configured to be made in a URL (Uniform Resource Locator) call method using a predefined input/output domain. It allows a call relationship to be created as relationship information.

소스 분석부(33)는 생성한 관계정보를 저장부(30)에 저장할 수 있다. 또한, 개발자가 기존의 소스 정보를 수정하여 호출 관계에 변동이 발생하는 경우, 소스 분석부(33)는 새로 생성된 관계정보를 이용하여 저장부(30)에 기 저장된 관계정보를 갱신할 수 있다. 이때 관계정보는, 애플리케이션의 각 서비스와 관련하여 해당 서비스의 동작에 필요한 클래스(class), jsp 파일 등 서비스 정보 및 리소소(resource) 정보들을 정의하는 패키지(package) 정보를 포함할 수 있다. The source analysis unit 33 may store the generated relationship information in the storage unit 30 . In addition, when a change occurs in the call relationship by the developer modifying the existing source information, the source analyzer 33 may update the relationship information pre-stored in the storage unit 30 using the newly created relationship information. . In this case, the relationship information may include package information defining service information and resource information such as a class and a jsp file required for the operation of the corresponding service in relation to each service of the application.

컨테이너 구성부(34)는, 개발자로부터 특정 서비스 또는 기존에 생성된 특정 패키지 정보에 대한 컨테이너 생성 요청에 대한 응답으로, 저장부(20)에 저장된 관계정보를 토대로 컨테이너를 구성하는 역할을 한다. 이때 컨테이너는 컴퓨팅 장치의 운영체제 등과 격리된 환경에서 실행되며, 요청에 상응하는 객체를 생성하고 이를 인자로 한 함수를 호출함으로써 요청에 대한 응답을 생성, 반환하는 등의 기능을 수행하는 것으로서, 예컨대, 도커(docker) 등이 이에 해당한다. The container configuration unit 34 serves to configure a container based on relationship information stored in the storage unit 20 in response to a container creation request for a specific service or previously generated specific package information from a developer. In this case, the container runs in an environment isolated from the operating system of the computing device, and performs functions such as creating and returning a response to the request by creating an object corresponding to the request and calling a function using it as an argument, for example, This includes Docker and the like.

본 명세서에서 컨테이너 구성부(34)에 의해 컨테이너를 구성한다는 것은, 새로운 컨테이너를 생성하는 의미할 수도 있고, 또는 패키지 정보와 관계 정보를 기준으로 기존의 컨테이너에 정보를 전송하는 것을 의미할 수도 있다. 이때 관계정보를 기초로 서비스의 동작을 위한 서비스 정보 및 리소스 정보 등이 추출되어 자동으로 컨테이너에 포함된다.In this specification, configuring a container by the container configuration unit 34 may mean creating a new container or transmitting information to an existing container based on package information and relationship information. At this time, service information and resource information for service operation are extracted based on the relationship information and automatically included in the container.

송신부(35)는, 컨테이너 구성부(34)에 의해 구성되는 컨테이너가 MSA 컨테이너인 경우, 서비스 정보 및 리소스 정보를 외부의 저장 서버(2)에 저장하여 이를 해당 컨테이너의 실행 시 로드할 수 있게 하는 역할을 한다. 예컨대, 서비스 정보는 클래스 파일, jsp 파일 등을 포함할 수 있으며, 리소스 정보는 서비스의 동작에 필요한 txt, xml 등의 파일을 포함할 수 있다. 송신부(35)와 저장 서버(2)의 동작에 대해서는 도 4 및 도 5를 참조하여 상세히 후술한다. When the container configured by the container configuration unit 34 is an MSA container, the transmitter 35 stores service information and resource information in the external storage server 2 to load it when the container is executed. plays a role For example, the service information may include a class file, a jsp file, and the like, and the resource information may include files such as txt and xml required for the operation of the service. The operation of the transmitter 35 and the storage server 2 will be described later in detail with reference to FIGS. 4 and 5 .

도 2는 일 실시예에 따른 개발 프레임워크 제공 시스템을 이용한 컨테이너 배포 과정을 나타내는 순서도이다. 설명의 편의를 위하여, 도 1 및 도 2를 참조하여 컨테이너 배포 과정을 설명한다. 2 is a flowchart illustrating a container distribution process using a system for providing a development framework according to an embodiment. For convenience of description, a container distribution process will be described with reference to FIGS. 1 and 2 .

도 2를 참조하면, 개발자가 사용자 장치(1)를 이용하여 개발 프레임워크 제공 시스템(3)에 소스 정보를 커밋(commit)하면(S21), 개발 프레임워크 제공 시스템(3)의 컴파일부(32)는 이를 클래스 파일 등으로 컴파일할 수 있다(S22). 컴파일 도중 문법 오류와 같은 오류가 발생하는 경우, 컴파일부(32)는 오류 정보를 개발자의 사용자 장치(1)에 전송할 수도 있다(S23). Referring to FIG. 2 , when the developer commits source information to the development framework providing system 3 using the user device 1 ( S21 ), the compilation unit 32 of the development framework providing system 3 . ) may compile it into a class file or the like (S22). When an error such as a grammar error occurs during compilation, the compilation unit 32 may transmit error information to the developer's user device 1 ( S23 ).

개발 프레임워크 제공 시스템(3)의 소스 분석부(33)는, 소스 정보의 컴파일이 이루어지는 것과 동시에 또는 컴파일 후에 소스 정보를 분석하여, 서비스 사이의 호출 관계를 나타내는 관계정보를 생성할 수 있다(S24). 이는 애플리케이션에 포함된 하나 이상의 서비스에 대해 해당 서비스에서 호출하는 다른 서비스들을 식별하고, 해당 서비스 및 호출된 서비스들의 동작에 필요한 서비스 정보 및 리소스 정보 등을 정의하는 패키지 정보를 생성하는 것을 의미할 수 있다. 또한, 본 명세서에서 서비스란 애플리케이션을 통해 이루어지는 기능들의 집합적인 단위(예컨대, 사용자 관리, 게시판 등)를 지칭한다. The source analysis unit 33 of the development framework providing system 3 may analyze the source information at the same time or after the compilation of the source information is made to generate relationship information indicating a call relationship between services (S24). ). This may mean generating package information that identifies other services called by the corresponding service for one or more services included in the application, and defines service information and resource information necessary for the operation of the corresponding service and the called services. . Also, in this specification, a service refers to a collective unit (eg, user management, bulletin board, etc.) of functions performed through an application.

만약 소스 분석 도중 오류가 탐지되는 경우, 소스 분석부(33)는 사용자 장치(1)에 검증 오류 정보를 전송하여 개발자가 오류 발생 사실을 알게 할 수도 있다(S25). 이때 검증 오류란, 특정 서비스에서 호출하는 다른 서비스가 존재하지 않거나, 특정 서비스에서 호출하는 패키지 또는 클래스가 존재하지 않는 등, 서비스 간의 호출 관계를 생성하는 것이 적어도 부분적으로 불가능하게 되는 경우를 지칭한다. If an error is detected during source analysis, the source analyzer 33 may transmit verification error information to the user device 1 so that the developer knows that the error has occurred (S25). In this case, the verification error refers to a case in which it is at least partially impossible to create a call relationship between services, such as other services called by a specific service do not exist, or a package or class called by a specific service does not exist.

관계정보가 생성되면, 소스 분석부(33)는 관계정보를 개발 프레임워크 제공 시스템(3)의 저장부(30)에 저장할 수 있다(S26). 한편, 개발 프레임워크 제공 시스템(3)의 저장부(30)에는 관계정보 외에도 개발자가 커밋한 소스 정보 자체나, 해당 애플리케이션과 관련하여 기존에 생성된 컴파일된 파일, 서비스 정보, 리소스 정보 등이 저장되어 있을 수도 있다. When the relationship information is generated, the source analysis unit 33 may store the relationship information in the storage unit 30 of the development framework providing system 3 (S26). On the other hand, in the storage unit 30 of the development framework providing system 3, in addition to the relationship information, the source information itself committed by the developer or the compiled file, service information, resource information, etc. previously generated in relation to the application are stored. it may have been

일 실시예에서, 개발 프레임워크 제공 시스템(3)의 송신부(35)는 개발 프레임워크 제공 시스템(3)을 통해 개발되는 애플리케이션에 연관된 서비스 정보 및 리소스 정보 등을 저장 서버(2)에 전송하여 이들 정보가 저장 서버(2)에 저장되도록 할 수도 있다(S27). In one embodiment, the transmitting unit 35 of the development framework providing system 3 transmits service information and resource information related to the application developed through the development framework providing system 3 to the storage server 2 and transmits these The information may be stored in the storage server 2 (S27).

한편, 개발자는 자신이 개발하는 애플리케이션의 서비스 형태를 정의하는 관리 정보를 개발 프레임워크 제공 시스템(3)에 입력할 수 있다(S28). 이는, 개발 프레임워크 제공 시스템(3)이 제공하는 관리화면을 통하여 애플리케이션의 서비스 형태를 모노리틱 아키텍처 또는 MSA로 정의하는 것을 의미할 수 있다. 도면에서는 설명의 편의를 위하여 관리 정보를 입력하는 단계(S28)가 별도의 단계로 도시되었으나, 실시예에 따라서는 애플리케이션의 서비스 형태를 지정하는 것은 소스 정보의 커밋과 동시에 이루어질 수도 있다. Meanwhile, the developer may input management information defining the service type of the application he/she develops into the development framework providing system 3 ( S28 ). This may mean defining the service type of the application as monolithic architecture or MSA through the management screen provided by the development framework providing system 3 . Although the step of inputting management information ( S28 ) is shown as a separate step for convenience of description in the drawings, the designation of the service type of the application may be performed simultaneously with the commit of the source information according to an embodiment.

개발자로부터 서비스 형태가 입력되면, 개발 프레임워크 제공 시스템(3)의 컨테이너 구성부(34)는, 저장부(30)에 저장된 관계정보를 이용하여 컨테이너를 구성할 수 있다(S29). 예를 들어, 서비스 형태가 모노리틱 아키텍처인 경우, 컨테이너 구성부(34)는 애플리케이션의 동작에 필요한 모든 정보, 예컨대, 공통 라이브러리, 서비스 정보 및 리소스 정보 등이 하나의 컨테이너에 포함되도록 컨테이너를 구성할 수 있다. 이는 새로운 컨테이너를 생성하는 것 또는 기존의 컨테이너에 정보를 배포하는 것을 의미할 수 있다. When a service type is input from the developer, the container configuration unit 34 of the development framework providing system 3 may configure the container using the relationship information stored in the storage unit 30 (S29). For example, when the service type is monolithic architecture, the container configuration unit 34 configures the container so that all information necessary for the operation of the application, for example, common library, service information, and resource information, etc. are included in one container. can This may mean creating a new container or deploying information to an existing container.

또는, 서비스 형태가 MSA일 경우, 컨테이너 구성부(34)는 각 서비스가 호출하는 다른 서비스와 이의 동작을 위한 정보들이 하나의 컨테이너에 포함되도록 컨테이너를 구성할 수 있다. 예를 들어, 특정 서비스에 연관된 클래스 정보가 갱신되었을 경우, 컨테이너 구성부(34)는 클래스 정보가 갱신된 서비스를 호출하는 다른 서비스들에 상응하는 컨테이너를 관계정보의 패키지 정보로부터 확인하고, 패키지 정보를 기준으로 해당 서비스를 호출하는 다른 서비스들에 관련된 각 컨테이너에 정보를 배포할 수 있다. Alternatively, when the service type is MSA, the container configuration unit 34 may configure the container so that other services called by each service and information for their operation are included in one container. For example, when class information related to a specific service is updated, the container configuration unit 34 identifies containers corresponding to other services calling the service whose class information is updated from the package information of the relationship information, and the package information Based on this, information can be distributed to each container related to other services that call the service.

일 실시예에서, 개발 프레임워크 제공 시스템(3)의 입출력부(31)는 컨테이너 구성에 대한 처리 결과를 개발자의 사용자 장치(1)에 전송하도록 더 구성될 수도 있다(S30). In one embodiment, the input/output unit 31 of the development framework providing system 3 may be further configured to transmit the processing result for the container configuration to the user device 1 of the developer ( S30 ).

이상에서 도 1 및 도 2를 참조하여 설명한 실시예에 의하면, 개발자가 애플리케이션을 개발할 때 모노리틱 또는 MSA 중 어느 하나로 서비스 형태를 지정할 필요가 없으며, 관리화면을 통해 자신이 원하는 아키텍처를 지정하면 개발 프레임워크 제공 시스템(3)이 서비스 간의 호출 관계를 기반으로 자동으로 모노리틱 컨테이너 또는 MSA 컨테이너를 구성한다. 따라서, 서비스 형태의 변경이 용이하고 MSA 형태의 서비스 개발에 익숙하지 않은 개발자라 하더라도 MSA 서비스 개발이 가능한 이점이 있다. According to the embodiment described above with reference to FIGS. 1 and 2, when a developer develops an application, there is no need to specify a service type as either monolithic or MSA, and if the desired architecture is specified through the management screen, the development frame The work providing system 3 automatically configures a monolithic container or MSA container based on the call relationship between services. Therefore, it is easy to change the service type, and even a developer who is not familiar with MSA type service development has the advantage of enabling MSA service development.

도 3은 일 실시예에 따른 MSA 애플리케이션 실행 시스템에 의한 MSA 컨테이너의 실행 과정을 나타내는 순서도이며, 도 4는 일 실시예에 따른 MSA 애플리케이션 실행 시스템의 저장 서버의 개략적인 블록도이다.3 is a flowchart illustrating an execution process of an MSA container by the MSA application execution system according to an embodiment, and FIG. 4 is a schematic block diagram of a storage server of the MSA application execution system according to an embodiment.

도 3 및 도 4를 참조하면, MSA 기반의 애플레이케이션을 실행하고자 하는 사용자는, 사용자 장치(1)를 이용하여 MSA 컨테이너(4)에 서비스를 요청할 수 있다(S41). 이때 MSA 컨테이너(4)는 MSA 기반 애플리케이션의 하나 이상의 서비스를 실행하고 그 실행 결과를 사용자에게 제공하는 가상화 서버 등 컴퓨팅 장치 및 이의 소프트웨어 구동 수단을 통칭한다. 예를 들어, 도 1의 사용자 장치(1) 또는 개발 프레임워크 제공 시스템(3), 또는 도면에 도시되지 않은 가상화 서버가 이러한 컴퓨팅 장치로서 저장 서버(2)와 함께 MSA 애플리케이션 실행 시스템을 구성할 수 있다. 3 and 4 , a user who wants to execute an MSA-based application may request a service from the MSA container 4 using the user device 1 ( S41 ). In this case, the MSA container 4 collectively refers to a computing device such as a virtualization server that executes one or more services of an MSA-based application and provides the execution result to a user and a software driving means thereof. For example, the user device 1 or the development framework providing system 3 of FIG. 1 , or a virtualization server not shown in the figure may constitute an MSA application execution system together with the storage server 2 as such a computing device. have.

MSA 컨테이너(4)에서는 요청된 서비스의 동작에 필요한 서비스 정보(예컨대, 클래스 파일, jsp 파일) 및 리소스 정보(예컨대, txt, xml 파일 등)를 저장 서버(2)에 요청하고(S43), 저장 서버(2)에서는 요청된 서비스 및 리소스 정보를 MSA 컨테이너(4)에 반환할 수 있다(S44). 이상의 동작을 위하여, 저장 서버(2)는 도 4에 도시된 것과 같이 MSA 컨테이너(4)의 서비스 동작을 위한 서비스 및 리소스 정보가 저장된 저장부(21)와, MSA 컨테이너(4)의 요청에 대한 응답으로 요청된 정보를 반환하는 정보 반환부(22)를 포함할 수 있다. The MSA container 4 requests service information (eg, class file, jsp file) and resource information (eg, txt, xml file, etc.) necessary for the operation of the requested service to the storage server 2 (S43), and stores it The server 2 may return requested service and resource information to the MSA container 4 (S44). For the above operation, as shown in FIG. 4 , the storage server 2 includes a storage unit 21 in which service and resource information for a service operation of the MSA container 4 are stored, and a request for the MSA container 4 . It may include an information return unit 22 that returns the requested information as a response.

일 실시예에서, MSA 컨테이너(4)는 저장 서버(2)에 정보를 요청하기 전에 MSA 컨테이너(4)의 내부 저장소(즉, 내부 캐시)에서 필요한 정보를 검색하고, 해당 정보가 검색되지 않는 경우에만 필요한 서비스 정보 및 리소스 정보를 저장 서버(2)에 요청하도록 구성될 수도 있다. In one embodiment, the MSA container 4 retrieves the necessary information from the internal storage (ie, internal cache) of the MSA container 4 before requesting the information from the storage server 2, and if the information is not retrieved It may be configured to request service information and resource information only necessary for the storage server 2 .

MSA 컨테이너(4)는, 저장 서버(2)의 정보 반환부(22)로부터 서비스 정보 및 리소스 정보를 수신하고, 이를 이용하여 사용자가 요청한 서비스를 수행할 수 있다(S45). 또한, MSA 컨테이너(4)는 사용자가 요청한 서비스의 수행 결과를 사용자 장치(1)에 전송할 수 있다(S46). The MSA container 4 may receive service information and resource information from the information return unit 22 of the storage server 2 , and use the received service information to perform a service requested by the user ( S45 ). Also, the MSA container 4 may transmit a result of performing a service requested by the user to the user device 1 (S46).

이상의 동작을 위하여, MSA 컨테이너(4)는 외부에서 수신한 서비스 정보를 이용하여 동작하는 커스텀 클래스로더(Custom ClassLoader)를 이용하여 서비스를 수행하도록 구성될 수 있다. 또한, MSA 컨테이너(4)는 바이트 코드(byte code)로 컴파일된 클래스 파일에서 외부의 리소스 정보를 활용하여 서비스를 수행할 수 있도록, 바이트코드 삽입(Byte Code Insertion; BCI) 등의 방식으로 리소스 정보를 입력받고 이를 토대로 응답을 생성하도록 구성될 수 있다. For the above operation, the MSA container 4 may be configured to perform a service using a custom classloader that operates using service information received from the outside. In addition, the MSA container 4 utilizes external resource information in a class file compiled into byte code to perform a service, so that resource information in a manner such as Byte Code Insertion (BCI) may be configured to receive input and generate a response based on it.

본 실시예에 의하면, 기존에 모노리틱 형태로 제공되는 서비스를 MSA 형태로 구현하는 경우 각 MSA 컨테이너가 실행되는 가상화 서버에 모든 정보를 저장할 필요가 없으며, 기존 모노리틱 서비스를 위한 모든 정보가 저장된 저장 서버(2)로부터 각 MSA 컨테이너가 필요한 정보를 불러 와 서비스를 수행할 수 있는 이점이 있다. According to this embodiment, when the service provided in the existing monolithic form is implemented in the MSA form, it is not necessary to store all information in the virtualization server in which each MSA container is executed, and all information for the existing monolithic service is stored. There is an advantage that each MSA container can fetch the necessary information from the server 2 and perform the service.

이상에서 설명한 실시예들에 따른 MSA 애플리케이션 실행 방법에 의한 동작은 적어도 부분적으로 컴퓨터 프로그램으로 구현되고 컴퓨터로 읽을 수 있는 기록매체에 기록될 수 있다. 실시예들에 따른 방법에 의한 동작을 구현하기 위한 프로그램이 기록되고 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산 방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수도 있다. 또한, 본 실시예를 구현하기 위한 기능적인 프로그램, 코드 및 코드 세그먼트(segment)들은 본 실시예가 속하는 기술 분야의 통상의 기술자에 의해 용이하게 이해될 수 있을 것이다.The operation by the MSA application execution method according to the embodiments described above may be implemented at least partially as a computer program and recorded in a computer-readable recording medium. A computer-readable recording medium in which a program for implementing the operation according to the method according to the embodiments is recorded includes all types of recording devices in which computer-readable data is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical data storage device. In addition, the computer-readable recording medium may be distributed in a network-connected computer system, and the computer-readable code may be stored and executed in a distributed manner. In addition, functional programs, codes, and code segments for implementing the present embodiment may be easily understood by those skilled in the art to which the present embodiment belongs.

또한, 본 명세서의 순서도들에 도시된 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 인스트럭션들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 실시예들에서는 블록들 또는 단계들 에서 언급된 기능들이 순서를 벗어나서 발생하는 것도 가능하다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 사실 실질적으로 동시에 수행되는 것도 가능하고 또는 그 블록들 또는 단계들이 때때로 해당하는 기능에 따라 역순으로 수행되는 것도 가능하다.In addition, each block or each step shown in the flowcharts herein may represent a module, segment, or portion of code that includes one or more executable instructions for executing the specified logical function(s). It is also possible for the functions recited in blocks or steps to occur out of order in some alternative embodiments. For example, it is possible that two blocks or steps shown one after another may in fact be performed substantially simultaneously, or that the blocks or steps may sometimes be performed in the reverse order according to the corresponding function.

이상에서 살펴본 본 발명은 도면에 도시된 실시예들을 참고로 하여 설명하였으나 이는 예시적인 것에 불과하며 당해 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 실시예의 변형이 가능하다는 점을 이해할 것이다. 그러나, 이와 같은 변형은 본 발명의 기술적 보호범위 내에 있다고 보아야 한다. 따라서, 본 발명의 진정한 기술적 보호범위는 첨부된 청구범위의 기술적 사상에 의해서 정해져야 할 것이다.Although the present invention as described above has been described with reference to the embodiments shown in the drawings, it will be understood that these are merely exemplary, and that various modifications and variations of the embodiments are possible therefrom by those of ordinary skill in the art. However, such modifications should be considered to be within the technical protection scope of the present invention. Accordingly, the true technical protection scope of the present invention should be defined by the technical spirit of the appended claims.

Claims (8)

하나 이상의 마이크로서비스 아키텍처 컨테이너를 이용하여 실행되는 마이크로서비스 아키텍처 애플리케이션에 대한 사용자의 서비스 요청에 대한 응답으로, 저장 서버에 서비스 및 리소스 요청을 전송하도록 구성된 컴퓨팅 장치; 및
상기 마이크로서비스 아키텍처 애플리케이션의 하나 이상의 서비스에 연관된 서비스 정보 및 리소스 정보를 저장하며, 상기 서비스 및 리소스 요청에 대한 응답으로, 상기 서비스 정보 및 상기 리소스 정보를 상기 마이크로서비스 아키텍처 컨테이너에 제공하도록 구성된 저장 서버를 포함하되,
상기 컴퓨팅 장치는, 상기 저장 서버로부터 수신된 상기 서비스 정보 및 상기 리소스 정보를 이용하여 상기 서비스 요청에 상응하는 상기 애플리케이션의 서비스를 수행하도록 더 구성되며,
상기 서비스 정보는 바이트 코드로 컴파일된 클래스 파일을 포함하고,
상기 마이크로서비스 아키텍처 컨테이너는,
외부로부터 수신한 상기 서비스 정보를 이용하여 동작하는 커스텀 클래스로더를 이용하여 서비스를 수행하며,
바이트코드 삽입 방식으로 상기 클래스 파일에 상기 리소스 정보를 입력받아 상기 애플리케이션의 서비스에 상응하는 응답을 생성하도록 구성된 마이크로서비스 아키텍처 애플리케이션 실행 시스템.
a computing device configured to send, in response to a user's service request for a microservices architecture application running using the one or more microservices architecture containers, service and resource requests to the storage server; and
a storage server configured to store service information and resource information associated with one or more services of the microservices architecture application, and in response to the service and resource request, provide the service information and the resource information to the microservices architecture container; including,
The computing device is further configured to perform the service of the application corresponding to the service request by using the service information and the resource information received from the storage server,
The service information includes a class file compiled into byte code,
The microservices architecture container comprises:
The service is performed using a custom class loader that operates using the service information received from the outside,
A microservices architecture application execution system, configured to receive the resource information into the class file in a bytecode insertion manner and generate a response corresponding to the service of the application.
제1항에 있어서,
상기 컴퓨팅 장치는, 상기 서비스 및 리소스 요청을 상기 저장 서버에 전송하기 전에, 상기 서비스 정보 및 상기 리소스 정보를 상기 컴퓨팅 장치의 내부 저장소에서 검색하도록 더 구성된 마이크로서비스 아키텍처 애플리케이션 실행 시스템.
The method of claim 1,
The computing device is further configured to retrieve the service information and the resource information from an internal storage of the computing device before sending the service and resource request to the storage server.
제1항에 있어서,
상기 컴퓨팅 장치는, 상기 애플리케이션의 하나 이상의 컨테이너를 구성하며 상기 서비스 정보 및 상기 리소스 정보를 상기 저장 서버에 전송하도록 구성된 개발 프레임워크를 제공하도록 더 구성된 마이크로서비스 아키텍처 애플리케이션 실행 시스템.
The method of claim 1,
The computing device is further configured to provide a development framework that constitutes one or more containers of the application and is configured to transmit the service information and the resource information to the storage server.
삭제delete 저장 서버에 마이크로서비스 아키텍처 애플리케이션의 서비스 실행을 위한 서비스 정보 및 리소스 정보를 저장하는 단계;
컴퓨팅 장치가, 하나 이상의 마이크로서비스 아키텍처 컨테이너를 이용하여 실행되는 마이크로서비스 아키텍처 애플리케이션에 대한 사용자의 서비스 요청을 수신하는 단계;
상기 저장 서버가, 상기 컴퓨팅 장치로부터 상기 애플리케이션의 서비스 실행을 위한 서비스 및 리소스 요청을 수신하는 단계;
상기 저장 서버가, 상기 서비스 및 리소스 요청에 대한 응답으로, 상기 서비스 정보 및 상기 리소스 정보를 상기 마이크로서비스 아키텍처 컨테이너에 제공하는 단계; 및
상기 컴퓨팅 장치가, 상기 저장 서버로부터 수신된 상기 서비스 정보 및 상기 리소스 정보를 이용하여 사용자의 서비스 요청에 상응하는 상기 애플리케이션의 서비스를 수행하는 단계를 포함하되,
상기 애플리케이션의 서비스를 수행하는 단계는, 상기 컴퓨팅 장치가, 외부로부터 수신한 상기 서비스 정보를 이용하여 동작하는 커스텀 클래스로더를 이용하여 서비스를 수행하는 단계를 포함하며,
상기 서비스 정보는 바이트 코드로 컴파일된 클래스 파일을 포함하고,
상기 커스텀 클래스로더를 이용하여 서비스를 수행하는 단계는, 상기 컴퓨팅 장치가, 바이트코드 삽입 방식으로 상기 리소스 정보를 상기 클래스 파일에 입력받아 상기 애플리케이션의 서비스에 상응하는 응답을 생성하는 단계를 포함하는 마이크로서비스 아키텍처 애플리케이션 실행 방법.
storing service information and resource information for service execution of a microservice architecture application in a storage server;
receiving, by the computing device, a service request from a user for a microservices architecture application that is executed using one or more microservices architecture containers;
receiving, by the storage server, a service and resource request for service execution of the application from the computing device;
providing, by the storage server, the service information and the resource information to the microservice architecture container in response to the service and resource request; and
Comprising, by the computing device, performing the service of the application corresponding to the user's service request by using the service information and the resource information received from the storage server,
The step of performing the service of the application includes, by the computing device, performing the service using a custom classloader that operates using the service information received from the outside,
The service information includes a class file compiled into byte code,
The step of performing the service using the custom classloader includes, by the computing device, receiving the resource information into the class file in a bytecode insertion method and generating a response corresponding to the service of the application. How to run a service architecture application.
제5항에 있어서,
상기 서비스 및 리소스 요청을 수신하는 단계 전에, 상기 컴퓨팅 장치가 상기 서비스 정보 및 상기 리소스 정보를 상기 컴퓨팅 장치의 내부 저장소에서 검색하는 단계를 더 포함하는 마이크로서비스 아키텍처 애플리케이션 실행 방법.
6. The method of claim 5,
and before receiving the service and resource request, the computing device retrieving the service information and the resource information from an internal storage of the computing device.
삭제delete 하드웨어와 결합되어 제5항 또는 제6항에 따른 마이크로서비스 아키텍처 애플리케이션 실행 방법을 수행하도록 컴퓨터로 판독 가능한 기록 매체에 저장된 컴퓨터 프로그램. A computer program stored in a computer-readable recording medium in combination with hardware to perform the microservices architecture application execution method according to claim 5 or 6.
KR1020200060777A 2020-05-21 2020-05-21 System and method for executing application based on microservice architecture and computer program for the same KR102337962B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200060777A KR102337962B1 (en) 2020-05-21 2020-05-21 System and method for executing application based on microservice architecture and computer program for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200060777A KR102337962B1 (en) 2020-05-21 2020-05-21 System and method for executing application based on microservice architecture and computer program for the same

Publications (2)

Publication Number Publication Date
KR20210144045A KR20210144045A (en) 2021-11-30
KR102337962B1 true KR102337962B1 (en) 2021-12-10

Family

ID=78722236

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200060777A KR102337962B1 (en) 2020-05-21 2020-05-21 System and method for executing application based on microservice architecture and computer program for the same

Country Status (1)

Country Link
KR (1) KR102337962B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102535011B1 (en) * 2022-10-14 2023-05-26 주식회사 플랜티넷 Method for Applying Network Device Settings Based on Microservice
EP4339786A1 (en) 2022-09-16 2024-03-20 Openmaru, Inc. Method of tracing call relationship and displaying log information accordingly in msa

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102109461B1 (en) * 2020-02-17 2020-05-12 주식회사 제이윈파트너스 Project Automation Assistance System with Micro Service Architecture

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200046316A (en) * 2018-10-24 2020-05-07 삼성에스디에스 주식회사 Web application server, method for handling user request and method for handling intergrated request
KR102027749B1 (en) 2019-02-08 2019-10-02 아콘소프트 주식회사 Microservice system and method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102109461B1 (en) * 2020-02-17 2020-05-12 주식회사 제이윈파트너스 Project Automation Assistance System with Micro Service Architecture

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4339786A1 (en) 2022-09-16 2024-03-20 Openmaru, Inc. Method of tracing call relationship and displaying log information accordingly in msa
KR102535011B1 (en) * 2022-10-14 2023-05-26 주식회사 플랜티넷 Method for Applying Network Device Settings Based on Microservice

Also Published As

Publication number Publication date
KR20210144045A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US8978023B2 (en) Canonical mechanism for securely assembling features into a mobile application
US7908580B2 (en) Connecting an integrated development environment with an application instance
US8307058B2 (en) Apparatus, method, and computer program product for processing information
US11556348B2 (en) Bootstrapping profile-guided compilation and verification
US20060271911A1 (en) Generating executable objects implementing methods for an information model
US9454616B2 (en) Method and system for unifying configuration descriptors
US9189223B2 (en) Connecting method and apparatus for connecting a component included in an application with an external service
US8516505B2 (en) Cross-platform compatibility framework for computer applications
US20150020057A1 (en) Controlling application features
CN102279765A (en) Pre-compiling hosted managed code
US20080127055A1 (en) Application proxy
CN109240697B (en) Call processing method and device and storage medium
US20090144711A1 (en) System and method for common compiler services based on an open services gateway initiative architecture
KR102337962B1 (en) System and method for executing application based on microservice architecture and computer program for the same
US8191041B2 (en) Javascript pre-processing framework
EP2685376B1 (en) COBOL reference architecture
US7543019B1 (en) Methods and apparatus providing backward compatibility for applications that access a changing object model
US10394610B2 (en) Managing split packages in a module system
US7631302B2 (en) System and method for validation of arguments provided to an application
KR102337961B1 (en) System for providing development framework which support both monolithic architecture and microservice architecture, method for developing application using the same and computer program for the same
KR20100089831A (en) Generation and management of managed javabean objects
KR20140049824A (en) System for remotely debugging an application programming and controlling method therefor
EP3872630B1 (en) Request processing method and apparatus, electronic device, and computer storage medium
US20230385075A1 (en) Networked Universal Code Package Provider
CN117111904A (en) Method and system for automatically converting web applications into serverless functions

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant