Stomp 2

[RabbitMQ] Window/rabbitmq-server ์„œ๋ฒ„๊ฐ€ ์‹คํ–‰ ์ค‘์ธ์ง€ ํ™•์ธํ•˜๊ธฐ/ Error: unable to connect to node rabbit@localhost: nodedown

Error: unable to connect to node rabbit@localhost: nodedown rabbitMq๋Š” ๋ถ„์‚ฐ ๋ฉ”์‹œ์ง• ์‹œ์Šคํ…œ์œผ๋กœ์„œ ์ฃผ๋กœ ์„œ๋ฒ„๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ๋ฆฌ๋ˆ…์Šค๋‚˜ ํด๋ผ์šฐ๋“œ ํ™˜๊ฒฝ์— ์„ค์น˜ํ•˜๊ฒŒ ๋œ๋‹ค. ํ•˜์ง€๋งŒ ์–ด์ฉŒ๋‹ค๋ณด๋‹ˆ Window ํ™˜๊ฒฝ์—์„œ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค. ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด Window์—์„œ๋Š” ์ž˜ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋‹ค๋ณด๋‹ˆ ์ž๋ฃŒ๋„ ๋ณ„๋กœ ์—†์–ด ๊ฝค ๊ณ ์ƒํ–ˆ์—ˆ๋‹ค. ๋”ฐ๋ผ์„œ Window ์—์„œ RabbitMq๋ฅผ ์„ค์น˜ํ•˜๋ฉฐ ์‚ฝ์งˆํ–ˆ๋˜ ๊ณผ์ •์„ ํฌ์ŠคํŒ…ํ•˜๋ ค๊ณ  ํ•œ๋‹ค. rabbitmq-server ๋ช…๋ น์–ด๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š๊ณ  ์ด์ƒํ•œ ์—๋Ÿฌ๋ฉ”์‹œ์ง€๊ฐ€ ์ถœ๋ ฅ๋œ๋‹ค๋ฉด rabbitmq ์„œ๋ฒ„๊ฐ€ ์‹คํ–‰๋˜๊ณ  ์žˆ๋Š” ์ง€ ํ™•์ธํ•ด์•ผ ํ•œ๋‹ค. ์ด๋•Œ, ์„œ๋ฒ„ ์‹คํ–‰๊ณผ localhost manager UIํ™”๋ฉด๊ณผ๋Š” ๋ณ„๊ฐœ์ด๋‹ค. ์„œ๋ฒ„๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š์•„๋„ manager UI๋Š” ์ ‘๊ทผ์ด ..

[RabbitMQ] ์ฒ˜์Œ ๋งŒ๋‚˜๋Š” rabbitMq + springboot + stomp : Message broker ์ดํ•ด

RabbitMQ๋ž€? ๋ฉ”์‹œ์ง€ ์ง€ํ–ฅ ๋ฏธ๋“ค์›จ์–ด(MOM)๋กœ์„œ, ๋ถ„์‚ฐ ์‹œ์Šคํ…œ์—์„œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์ปดํฌ๋„ŒํŠธ ๊ฐ„์— ๋ฉ”์‹œ์ง€๋ฅผ ์•ˆ์ •์ ์ด๊ณ  ํ™•์‹คํ•˜๊ฒŒ ์ „์†กํ•˜๊ธฐ ์œ„ํ•ด ์„ค๊ณ„๋œ ์˜คํ”ˆ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด์ด๋‹ค. RabbitMQ๋Š” ๋‹ค์–‘ํ•œ ํ”„๋กœํ† ์ฝœ์„ ์ง€์›ํ•˜๋ฉฐ, ์ฃผ๋กœ AMQP(Advanced Message Queuing Protocol) ํ”„๋กœํ† ์ฝœ์„ ์‚ฌ์šฉํ•œ๋‹ค. AMQP๋Š” ๋ฉ”์‹œ์ง€ ์ง€ํ–ฅ ๋ฏธ๋“ค์›จ์–ด ์‹œ์Šคํ…œ์—์„œ ์•ˆ์ •์ ์ธ ๋ฉ”์‹œ์ง€ ์ „์†ก์„ ์œ„ํ•œ ํ‘œ์ค€ ํ”„๋กœํ† ์ฝœ๋กœ, RabbitMQ๋Š” ์ด ํ”„๋กœํ† ์ฝœ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๋ฉ”์‹œ์ง€๋ฅผ ์ฃผ๊ณ  ๋ฐ›๋Š”๋‹ค. RabbitMQ๋Š” ํ(Queue)์™€ ๊ตํ™˜๊ธฐ(Exchange)๋ฅผ ์ค‘์‹ฌ์œผ๋กœ ๋™์ž‘ํ•˜๋Š”๋ฐ ๋ฉ”์‹œ์ง€๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ํ์— ๋ณด๋‚ด๋Š” ๊ฒƒ์„ '๋ฉ”์‹œ์ง€ ๋ฐœํ–‰(Publish)'์ด๋ผ๊ณ  ํ•˜๋ฉฐ, ํ๋กœ๋ถ€ํ„ฐ ๋ฉ”์‹œ์ง€๋ฅผ ๋ฐ›์•„ ์ฒ˜๋ฆฌํ•˜๋Š” ๊ฒƒ์„ '๋ฉ”์‹œ์ง€ ๊ตฌ๋…(Subscribe)'์ด๋ผ๊ณ ..