emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Placing components in plantuml


From: Cecil Westerhof
Subject: Re: [O] Placing components in plantuml
Date: Fri, 18 Oct 2019 03:04:22 +0200

I got a reasonable result by putting the four producers/queues/consumers into one component. But if anybody knows a better solution …

@startuml

component [Producer 1\nProducer 2\nProducer ...\nProducer n] as Producers

cloud {
  [Internet] as Internet1
}

node RabbitMQ #LightSteelBlue {
  [Exchange]
  [Queue 1\nQueue 2\nQueue ...\nQueue n] as Queues
}

cloud {
  [Internet] as Internet2
}

[Consumer 1\nConsumer 2\nConsumer ...\nConsumer n] as Consumers


[Producers] -> [Internet1]  : Publish
[Internet1] -> [Exchange]   : Publish
[Exchange]  -> [Queues]     : Route
[Queues]    -> [Internet2]  : Consume
[Internet2] -> [Consumers]  : Consume

@enduml

Op do 17 okt. 2019 om 17:51 schreef Cecil Westerhof <address@hidden>:
Op do 17 okt. 2019 om 17:33 schreef Cecil Westerhof <address@hidden>:
I just started working with plantuml, but I do not know how to get what I want.

I have something that comes close:
#+BEGIN_SRC plantuml :file Graphics/rabbitMQ.eps :noexport
@startuml

[Producer 1]
[Producer 2]
[Producer ...]
[Producer n]

[Producer 1]    -[hidden]-> [Producer 2]
[Producer 2]    -[hidden]-> [Producer ...]
[Producer ...]  -[hidden]-> [Producer n]

cloud {
  [Internet] as Internet1
}

node RabbitMQ {
  [Exchange]
  [Queue 1]
  [Queue 2]
  [Queue ...]
  [Queue n]
}

cloud {
  [Internet] as Internet2
}

[Consumer 1]
[Consumer 2]
[Consumer ...]
[Consumer n]


[Producer 1]     -> [Internet1]     : Publish
' [Producer 2]     -> [Internet1]     : Publish
' [Producer ...]   -> [Internet1]     : Publish
' [Producer n]     -> [Internet1]     : Publish
[Internet1]      -> [Exchange]      : Publish
[Exchange]      --> [Queue 1]       : Route
[Exchange]      --> [Queue 2]       : Route
[Exchange]      --> [Queue ...]     : Route
[Exchange]      --> [Queue n]       : Route
[Queue 1]       --> [Internet2]     : Consume
[Queue 2]       --> [Internet2]     : Consume
[Queue ...]     --> [Internet2]     : Consume
[Queue n]       --> [Internet2]     : Consume
[Internet2]      -> [Consumer 1]    : Consume
[Internet2]      -> [Consumer 2]    : Consume
[Internet2]      -> [Consumer ...]  : Consume
[Internet2]      -> [Consumer n]    : Consume

@enduml
#+END_SRC

But as soon as I get the paths from the other producers to Internet1 out of comment, it goes horrible wrong. :'-(

--
Cecil Westerhof


--
Cecil Westerhof

reply via email to

[Prev in Thread] Current Thread [Next in Thread]