formations/cesi/architecture_n_tiers/ressources/rpc.msc

18 lines
894 B
Plaintext
Raw Permalink Normal View History

2018-01-13 18:02:29 +01:00
msc {
wordwraparcs=true, hscale=2;
Client,ClientMiddleware,ServerMiddleware,Server;
Client->ClientMiddleware [ label="server.getBlogPosts()" ];
ClientMiddleware->ClientMiddleware [ label="serializeCall('server.getBlogPosts')" ];
ClientMiddleware->ServerMiddleware [ label="CALL getBlogPosts" ];
ServerMiddleware->ServerMiddleware [ label="deserialize('CALL getBlogPosts')" ];
ServerMiddleware->Server [ label="getBlogPosts()" ];
Server->ServerMiddleware [ label="[{title: 'Article 1'}, {title: 'Article 2'}, ...]" ];
ServerMiddleware->ServerMiddleware [ label="serializeResult([{title: 'Article 1'}, {title: 'Article 2'}, ...])" ];
ServerMiddleware->ClientMiddleware [ label="RES <data...>" ];
ClientMiddleware->ClientMiddleware [ label="deserializeResult('RES <data...>')" ];
ClientMiddleware->Client [ label="[{title: 'Article 1'}, {title: 'Article 2'}, ...]" ];
}