From 9a5bea5c3f5e109eaa3dd40cb9848867fc4b66aa Mon Sep 17 00:00:00 2001 From: Azul Date: Sun, 2 Oct 2016 15:27:15 +0200 Subject: doc: add sequence diagrams for high level overview --- doc/sequence-diagrams/request-response.png | Bin 0 -> 37705 bytes doc/sequence-diagrams/request-response.seq | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 doc/sequence-diagrams/request-response.png create mode 100644 doc/sequence-diagrams/request-response.seq diff --git a/doc/sequence-diagrams/request-response.png b/doc/sequence-diagrams/request-response.png new file mode 100644 index 0000000..170ce7a Binary files /dev/null and b/doc/sequence-diagrams/request-response.png differ diff --git a/doc/sequence-diagrams/request-response.seq b/doc/sequence-diagrams/request-response.seq new file mode 100644 index 0000000..9baca21 --- /dev/null +++ b/doc/sequence-diagrams/request-response.seq @@ -0,0 +1,22 @@ +title Nickserver Request-Response-Sequence + +Client-->Server: Request +Server->*Responder: new +Server->*Dispatcher: new(responder) +Server->Dispatcher: respond_to(params, headers) +# Dispatcher->*Request: new(params, headers) +Dispatcher->*HandlerA: call(request) +# HandlerA->Request: params +# Request->HandlerA: address: 'mail@domain' +note right of HandlerA: not responsible +HandlerA-->Dispatcher: nil +destroy HandlerA +Dispatcher->*HandlerB: call(request) +note right of HandlerB: responsible\nquery source and build response +HandlerB-->Dispatcher: reponse +destroy HandlerB +Dispatcher->Responder: send_response(response) +# destroy Request +destroy Dispatcher +Responder-->Client: Response +destroy Responder -- cgit v1.2.3