API /hello GET

EC2 host ->  123.123.123.123

port 8080 Nginx

123.123.123.123:8080/hello

docker nginx /hello

redirect

default /hello

Java/Spring /hello

Controller가 매핑 정보에 따라 redirect

API call

GET method이므로 DB read로 연결해둠

DB read가 이루어짐

MySQL DB 3306

123.123.123.123:3306 connection 얻은 상태로

SCHEMA ‘synol’

table ‘hello’

있으면 바로 반환

없으면 메인 서버 요청

main server 890.890.890.890

890.890.890.890:8000/hello