11 Spring Cloud Bus
11 Spring Cloud Bus
HT
TP Client Application
(Spring)
Backing Files
(Git, Flat Files, etc.) Client Application
(Another Technology)
HT
Client Application
TP
(Spring)
CHANGES
Backing Files
(Git, Flat Files, etc.) Client Application
(Another Technology)
Any
changes? Client Application
ConfigServer
Config Server (Spring)
Config Server
Any
changes?
Any Client Application
changes? (Spring)
CHANGES
Backing Files
(Git, Flat Files, etc.) Client Application
(Another Technology)
You have
changes Client Application
ConfigServer
Config Server (Spring)
Config Server
You have
changes
Client Application
(Spring)
CHANGES
Backing Files
(Git, Flat Files, etc.) Client Application
(Another Technology)
● Rabbit MQ:
● Open Source
● Easy to Install and Run
● Pretty popular
● Spring Cloud Bus works automatically with Rabbit MQ
on localhost.
String luckyWord;
String preamble;
@RequestMapping("/lucky-word")
public String showLuckyWord() { Notice: relaxed binding.
return preamble + ": " + luckyWord; LuckyWord, LUCKY_WORD
} also valid
@RequestMapping("/lucky-word")
public String showLuckyWord() {
No more relaxed binding
return preamble + ": " + luckyWord; when using @Value
}
---
wordConfig:
// Getters and Setters NOT required
lucky-word: Irish
}
preamble: The lucky word is