* Placing components in plantuml
@ 2019-10-17 15:33 Cecil Westerhof
2019-10-17 15:51 ` Cecil Westerhof
0 siblings, 1 reply; 3+ messages in thread
From: Cecil Westerhof @ 2019-10-17 15:33 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]
I just started working with plantuml, but I do not know how to get what I
want.
At the moment I have the following:
#+BEGIN_SRC plantuml :file Graphics/rabbitMQ.eps :noexport
@startuml
[Producer 1]
[Producer 2]
[Producer ...]
[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
It seems that going down works much better as going right.
I would like to have [Producer 2], [Producer ...] and [Producer n] below
[Producer 1] is this possible? (And the first 2 left and higher as
Internet1 and the other 2 left and lower as Internet1.)
The same with queue and consumer. But probably when I have a solution for
producer, I will also have a solution for queue and consumer.
--
Cecil Westerhof
[-- Attachment #2: Type: text/html, Size: 2586 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Placing components in plantuml
2019-10-17 15:33 Placing components in plantuml Cecil Westerhof
@ 2019-10-17 15:51 ` Cecil Westerhof
2019-10-18 1:04 ` Cecil Westerhof
0 siblings, 1 reply; 3+ messages in thread
From: Cecil Westerhof @ 2019-10-17 15:51 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]
Op do 17 okt. 2019 om 17:33 schreef Cecil Westerhof <cldwesterhof@gmail.com
>:
> 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
[-- Attachment #2: Type: text/html, Size: 2722 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Placing components in plantuml
2019-10-17 15:51 ` Cecil Westerhof
@ 2019-10-18 1:04 ` Cecil Westerhof
0 siblings, 0 replies; 3+ messages in thread
From: Cecil Westerhof @ 2019-10-18 1:04 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2590 bytes --]
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 <cldwesterhof@gmail.com
>:
> Op do 17 okt. 2019 om 17:33 schreef Cecil Westerhof <
> cldwesterhof@gmail.com>:
>
>> 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
[-- Attachment #2: Type: text/html, Size: 4089 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-18 1:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-17 15:33 Placing components in plantuml Cecil Westerhof
2019-10-17 15:51 ` Cecil Westerhof
2019-10-18 1:04 ` Cecil Westerhof
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).