binchoo / PaimonGanyu

여행 비서 페이몬! Genshin Impact AWS workflows & KakaoTalk chatbot skills
https://pf.kakao.com/_mtPFb
GNU General Public License v3.0
7 stars 1 forks source link

[SAM][architecture] Give up lambda for PaimonGanyuSpringBootApp, use Elastic Beanstalk instead. #10

Closed binchoo closed 2 years ago

binchoo commented 2 years ago

As-is

Running a SpringBoot application on a lambda container is not optimal at all. The aws-serverless-java-container module is trying the best to support SpringBoot apps on the lambda service, but it is not satisfying me.

Cons:

Pros:

binchoo commented 2 years ago

As-is: API Gateway + PaimonGanyuSpringBootApp on AWS Lambda

To-be:

Disgusting to write down to template.yaml.

binchoo commented 2 years ago

To-be

Let's use Elastic Beanstalk.

image
binchoo commented 2 years ago

Change Impact

The principle: "Keep single-jar deployment."

Java code base

IAM

AWS Beanstalk

AWS SAM template.yaml

Makefile