MSA 실습
MSA 실습
msaez 접속
- msaez 사이트 접속 : https://www.msaez.io.com
- 깃허브 계정으로 로그인
EventStorming Design
Hexagonal
쿠버네티스 확인(k8s)
Code Preview
Github push
코드 확인 및 수정
external/HelloServiceImpl.java
1
2
3
4
5
6
7
public class HelloServiceImpl implements HelloService {
/*FallBack*/
@Override
public void hello(Hello hello){
throw new UnsupportedOperationException("Unimplemented method 'hello'");
}
}
터미널에서 mvn spring-boot:run
실행
InHello
OutHello
gateway
포트창에서 브라우저 클릭해서 확인
8081
8082
httpie를 실행해서 확인
http POST [localhost:8088/hellos](http://localhost:8088/hellos) hello=”hello”
http POST [localhost:8088/](http://localhost:8088/hellos)worlds world=”world”
카프카로 서비스간 통신 (Pub/Sub)
kafka-console-consumer —bootstrap-server [localhost:9092](http://localhost:9092) —topic gcumsa2
http :8088/hellos id=1 hello=”hello”
http :8088/worlds id=1 world=”helloworld”
References: 가천 SW 아카데미
This post is licensed under CC BY 4.0 by the author.