В примере показывается использование библиотеки httplib для построения клиентских и серверных приложений, использующих протокол HTTP
Билиотека: https://github.com/yhirose/cpp-httplib
upstream app {
server web-node-1:8080;
server web-node-2:8080;
server web-node-3:8080;
}
server {
listen 80;
location / {
proxy_pass http://app;
}
}
@startuml
component browser
component nginx
component "web-node-1"
component "web-node-2"
component "web-node-3"
browser -d-> nginx : "http://localhost:12345/hi"
nginx -d-> "web-node-1" : "http://web-node-1:8080/hi"
nginx -d-> "web-node-2" : "http://web-node-2:8080/hi"
nginx -d-> "web-node-3" : "http://web-node-3:8080/hi"
@enduml