Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[split] Some diagrams for my talk & later essay.

These show the entire client stack, in pieces.

RB_ID=69881
  • Loading branch information...
commit 57568b6a0feba2ae2628279263dee3380fb76ff7 1 parent 188d532
@mariusae mariusae authored
View
14 doc/Makefile
@@ -0,0 +1,14 @@
+# todo: custom pic2graph
+
+%.ps: %.pic
+ cat $< | groff -e -p -Tps -P-pa0 > $@
+
+%.pdf: %.ps
+ convert -trim -crop 0x0 $< $@
+
+%.png: %.ps
+ convert -trim -crop 0x0 $< $@
+
+all: lbstack.png filterstack.png morestack.png lbdown.png
+clean:
+ rm -f lbstack.png filterstack.png morestack.png lbdown.png
View
14 doc/filterstack.pic
@@ -0,0 +1,14 @@
+.sp
+.PS
+maxpswid=100
+maxpsht=100
+boxwid=4.3
+.ps +10
+
+down
+box "FactoryToService: \fBService[Req, Rep]\fP"
+arrow <-
+box "RetryFilter"
+arrow <-
+box "GlobalTimeoutFilter"
+.PE
View
23 doc/lbdown.pic
@@ -0,0 +1,23 @@
+.sp
+.PS
+maxpswid=100
+maxpsht=100
+boxwid=1.4
+.ps +10
+
+copy "service.pic"
+
+Stack: stack
+"\s+9............\s-9" ljust with .w at last [].e+(.3,0)
+
+boxwid=Stack.wid+2
+down
+box "\fIServiceFactory - LoadBalancer\fP" with .nw at Stack.sw+(0,-.25) thickness 2
+move .1
+box "\fIConnectTimeout\fP" thickness 2
+box "\fIStatsFactory\fP" thickness 2
+box "\fITracingFilter\fP" thickness 2
+box "\fICodec preparation\fP" thickness 2
+box with .nw at Stack.nw+(-.2,.2) ht Stack.ht+5*boxht+.1+.25+.2+.2+.5 wid boxwid+.2+.2 thickness 3
+"\fI\s+7ServiceFactory\s-7\fP" with .s at last box .s+(0,.2)
+.PE
View
17 doc/lbstack.pic
@@ -0,0 +1,17 @@
+.\" Shows ServiceFactory stack
+.sp
+.PS
+maxpswid=100
+maxpsht=100
+boxwid=1.4
+.ps +10
+
+copy "service.pic"
+
+stack; move; stack
+
+box "\fIServiceFactory - LoadBalancer\fP" with .n at 1/2 of the way between 2nd last [].sw and last [].se + (0, -.5) wid 2*last [].wid + movewid thickness 2
+
+.\" box with .nw at Fst.nw ht Fst.Bound.ht
+.\" box with .nw at 3rd last [].nw wid 3*last [].wid ht last [].ht
+.PE
View
22 doc/morestack.pic
@@ -0,0 +1,22 @@
+.sp
+.PS
+maxpswid=100
+maxpsht=100
+.ps +10
+boxwid=1.4
+
+copy "service.pic"
+
+Stack: stack
+down
+boxwid=last [].wid
+box "RequestTimeoutFilter" with .n at last [].s+(0,-.25)
+box "FailureAccrualFactory"
+box "FailFastFactory"
+box "StatsFilter"
+box "MonitorFilter"
+
+box with .n at Stack.n+(0,.05) ht (Stack.ht+5*boxht+.25+.05)+.6 wid 1.05*boxwid thickness 2.4
+"\fIServiceFactory - Host\fP" with .s at last box .s+(0,.2)
+
+.PE
View
29 doc/service.pic
@@ -0,0 +1,29 @@
+define service {[
+ line down .05 left .05 then down .05 right .1 then down .05 left .1 then down .1 right .2 then down .1 left .2 then down .1 right .1
+ down
+ box "Codec"
+ box "Transport"
+ box "Service"
+]}
+
+
+define channelservice {[
+ Fun: [
+ service
+ "\fB() => \fP" rjust at last [].w
+ ]
+
+ box ht 2.4 wid boxwid*3 thickness 2 with .n at Fun.n
+ "\fIServiceFactory - ChannelService\fP" with .s at last box.s+(0,.2)
+]}
+
+define stack {[
+ channelservice
+
+ movewid=.2
+ [service ; service; service] with .n at last [].s+(0,-.2)
+
+ box with .nw at last [].nw wid last [].wid ht last[].ht+boxht thickness 2
+ "\fIServiceFactory - Pool\fP" with .s at last box.s+(0,.2)
+ "..." with .n at last box.s+(0,-.2)
+]}
Please sign in to comment.
Something went wrong with that request. Please try again.