$\require{mediawiki-texvc}$

연합인증

연합인증 가입 기관의 연구자들은 소속기관의 인증정보(ID와 암호)를 이용해 다른 대학, 연구기관, 서비스 공급자의 다양한 온라인 자원과 연구 데이터를 이용할 수 있습니다.

이는 여행자가 자국에서 발행 받은 여권으로 세계 각국을 자유롭게 여행할 수 있는 것과 같습니다.

연합인증으로 이용이 가능한 서비스는 NTIS, DataON, Edison, Kafe, Webinar 등이 있습니다.

한번의 인증절차만으로 연합인증 가입 서비스에 추가 로그인 없이 이용이 가능합니다.

다만, 연합인증을 위해서는 최초 1회만 인증 절차가 필요합니다. (회원이 아닐 경우 회원 가입이 필요합니다.)

연합인증 절차는 다음과 같습니다.

최초이용시에는
ScienceON에 로그인 → 연합인증 서비스 접속 → 로그인 (본인 확인 또는 회원가입) → 서비스 이용

그 이후에는
ScienceON 로그인 → 연합인증 서비스 접속 → 서비스 이용

연합인증을 활용하시면 KISTI가 제공하는 다양한 서비스를 편리하게 이용하실 수 있습니다.

안정적인 API 게이트웨이를 위한 스트림 기반 API 조합
Stream-based API composition for stable API Gateway 원문보기

Journal of Internet Computing and Services = 인터넷정보학회논문지, v.25 no.1, 2024년, pp.1 - 8  

조동일 (Division of R&D, TOMATOSYSTEM)

초록
AI-Helper 아이콘AI-Helper

API 게이트웨이에서 API 조합은 클라이언트의 호출 횟수를 줄이고 오버페칭과 언더페칭을 방지할 수 있는 필수적인 기능이다. IMJ(In-Memory Join)로 동작하는 API 조합은 많은 자원을 소모하여 API 게이트웨이의 성능에 부담을 준다. 본 연구에서는 IMJ 방식의 API 조합의 문제를 개선하기 위해 조합할 데이터를 스트리밍으로 클라이언트에 전달하는 SAPIC(Stream-based API Composition)를 제안한다. SAPIC는 클라이언트 응답 메시지를 구성하는 각각의 MSA API를 호출하여 받은 응답 메시지를 즉시 클라이언트로 스트리밍하여 IMJ에 비해 API 게이트웨이의 자원 소모를 줄이고 빠른 응답시간을 제공할 수 있다. 대표적인 API 조합 기술인 GraphQL 비교실험결과 SAPIC는 GraphQL에 비해 약 21 ~ 70 % 낮은 최대 CPU 점유율과 약 16 ~ 74 % 낮은 최대 Heap 사용량 그리고 1 ~ 2.3 배의 높은 처리량을 기록하였다.

Abstract AI-Helper 아이콘AI-Helper

In the API gateway, API composition is an essential function that can reduce the number of client calls and prevent over-fetching and under-fetching. API composition that operate with IMJ (In-Memory Join) consume a lot of resources, putting a burden on the performance of the API gateway. In this pap...

주제어

표/그림 (11)

AI 본문요약
AI-Helper 아이콘 AI-Helper

문제 정의

  • 본 연구에서는 (2) 서비스 모델을 대상으로 응답시간 및 API 게이트웨이의 자원소모를 줄이는 것을 목표로 한다.
  • 본 연구에서는 API 조합의 이와 같은 문제를 해결하기 위해 SAPIC(Stream-based API Composition: 스트림 기반 API 조합)를 제안한다. SAPIC는 IMJ와 달리 각 API의 데이터를 스트림으로 처리하고 조합한다.
  • 본 연구에서는 IMJ API 조합의 문제점을 개선하기 위해 조합할 데이터를 스트리밍으로 클라이언트에 전달하는 SAPIC를 제안하였다. SAPIC는 클라이언트 응답 메시지를 해석한 후 응답데이터를 구성하는 각각의 MSA API를 호출하고 즉시 응답메시지를 클라이언트로 스트리밍한다.

가설 설정

  • 최근 웹 데이터는 JSON이나 XML과 같은 편리한 구조화된 형식으로 데이터를 노출하는 REST API를 통해 교환되고, 대부분의 경우 이러한 API의 구조화된 응답은 REST 스타일에 따라 일반적인 구문 형식을 따른다[15]. SAPIC는 클라이언트의 요청이 이런 구조화된 데이터 응답을 소모한다고 가정하고 대표적인 경량 데이터 교환형식인 JSON을 사용한다. JSON은 REST API에서 많이 사용되는 대표적인 데이터 교환형식으로 GraphQL에서도 주요 데이터 형식으로 지원한다.
본문요약 정보가 도움이 되었나요?

참고문헌 (17)

  1. C Richardson, "Microservices Patterns," Manning,?pp.152-160, 253-291, 2018. 

  2. Q Xiong and W Li, "Design and Implementation of?Microservices Gateway Based on Spring Cloud?Zuul," 3rd International Conference on Computer?Information and Big Data Applications, pp.1-5, 2022.?https://ieeexplore.ieee.org/stamp/stamp.jsp?tp&arnumber9899125&isnumber9898665 

  3. X Gao, R Liu and X Lin, "API Gateway?Optimization Architecture Based on Heterogeneous?Hardware Acceleration," IEEE 3rd International?Conference on Information Technology and Big Data?and Artificial Intelligence, pp. 863-868, 2023.?https://doi.org/10.1109/ICIBA56860.2023.10165387 

  4. P D Francesco, P Lago and I Malavolta, "Architecting?with microservices: A systematic mapping study,"?Journal of Systems and Software, Vol.150, pp.77-97,?2019.?https://doi.org/10.1016/j.jss.2019.01.001 

  5. Pattern: API Composition.?http://microservices.io/patterns/data/api-composition.html 

  6. S Newman, "Building Microservices: Designing?Fine-Grained Systems," pp.44-45, O'Reilly Media,?2021. 

  7. F M Imani, "Aggregator Backend API With?KrakenD," Proceeding International Applied Business?and Engineering Conference, Vol.2, pp.229-233,?2022.?https://abecindonesia.org/iabec/index.php/iabec/article/view/108 

  8. N Vohra and I B K Manuaba, "Implementation of?REST API vs GraphQL in Microservice Architecture,"?International Conference on Information Management?and Technology, pp.45-50, 2022.?https://doi.org/10.1109/ICIMTech55957.2022.9915098 

  9. M F Radhiyan, D Khairani and H B Suseno,?"Analysis and Design of Microservices Architecture?with GraphlQL as an API Gateway for Higher?Education Information System," International?Conference on Science and Technology, pp.1-7,?2022.?https://doi.org/10.1109/ICOSTECH54296.2022.9829090 

  10. G Brito and M T Valente, "REST vs GraphQL: A?Controlled Experiment," IEEE International?Conference on Software Architecture, pp.81-91,?2020.?https://doi.org/10.1109/ICSA47634.2020.00016 

  11. E Porcello, A Banks, "Learning GraphQL -?Declarative Data Fetching for Modern Web Apps,"?O'Reilly Media, pp2-5, 2018. 

  12. O Hartig and J Perez, "An initial analysis of?Facebook's GraphQL language," International?Workshop on Foundations of Data Management and?the Web, pp. 1-10, 2017.?https://ceur-ws.org/Vol-1912/paper11.pdf 

  13. D Malavalli and S Sathappan, "Scalable microservice?based architecture for enabling DMTF profiles,"?International Conference on Network and Service?Management, pp.428-432, 2015.?https://doi.org/10.1109/CNSM.2015.7367395 

  14. J Lin, L C Lin and S Huang, "Migrating web?applications to clouds with microservice architectures,"?International Conference on Applied System?Innovation, pp.1-4, 2016.?https://doi.org/10.1109/ICASI.2016.7539733 

  15. D Serrano, E Stroulia, D Lau and T Ng, "Linked?REST APIs: A Middleware for Semantic REST API?Integration," IEEE International Conference on Web?Services, pp.138-145, 2017.?https://doi.org/10.1109/ICWS.2017.26 

  16. W Scarborough, C Arnold and M Dahan, "Case?study: Microservice evolution and software lifecycle?of the xsede user portal api," in Proc. of Conference?on Diversity Big Data and Science at Scale, No.47,?pp.1-5, 2016.?https://doi.org/10.1145/2949550.2949655 

  17. Z Xianyu, S Yuehan, W Qianqian and X Yi, "An?API gateway design strategy optimized for?persistence and coupling Advances in Engineering?Software," Elsevier, Vol.148, 2020.?https://doi.org/10.1016/j.advengsoft.2020.102878 

관련 콘텐츠

오픈액세스(OA) 유형

BRONZE

출판사/학술단체 등이 한시적으로 특별한 프로모션 또는 일정기간 경과 후 접근을 허용하여, 출판사/학술단체 등의 사이트에서 이용 가능한 논문

저작권 관리 안내
섹션별 컨텐츠 바로가기

AI-Helper ※ AI-Helper는 오픈소스 모델을 사용합니다.

AI-Helper 아이콘
AI-Helper
안녕하세요, AI-Helper입니다. 좌측 "선택된 텍스트"에서 텍스트를 선택하여 요약, 번역, 용어설명을 실행하세요.
※ AI-Helper는 부적절한 답변을 할 수 있습니다.

선택된 텍스트

맨위로