Post

MSA 실습

MSA 실습

msaez 접속

EventStorming Design

image

Hexagonal

image

image

쿠버네티스 확인(k8s)

image

Code Preview

Github push

image

코드 확인 및 수정

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

image

image

포트창에서 브라우저 클릭해서 확인

8081

image

8082

image

httpie를 실행해서 확인

http POST [localhost:8088/hellos](http://localhost:8088/hellos) hello=”hello”

image

http POST [localhost:8088/](http://localhost:8088/hellos)worlds world=”world”

image

카프카로 서비스간 통신 (Pub/Sub)

kafka-console-consumer —bootstrap-server [localhost:9092](http://localhost:9092) —topic gcumsa2

image

http :8088/hellos id=1 hello=”hello”

image

http :8088/worlds id=1 world=”helloworld”

image

image


References: 가천 SW 아카데미

This post is licensed under CC BY 4.0 by the author.