Difference between revisions of "Separation of Concerns via API"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | |||
+ | = Example: MediaWiki page rendering= | ||
<graphviz> | <graphviz> | ||
digraph rendering { | digraph rendering { | ||
Line 5: | Line 7: | ||
page -> html [ label="render via PHP" ] | page -> html [ label="render via PHP" ] | ||
page -> sql [ label="store via PHP" ] | page -> sql [ label="store via PHP" ] | ||
+ | } | ||
+ | </graphviz> | ||
+ | |||
+ | = Idea: use APIs = | ||
+ | <graphviz> | ||
+ | digraph rendering { | ||
+ | label="MediaWiki rendering" | ||
+ | sql [ label="record in the SQL database" ] | ||
+ | graphDB [ label="Graph Database" ] | ||
+ | render [ label="external render service" ] | ||
+ | store [ label="external storage service" ] | ||
+ | page -> render-> html [ label="render via PHP" ] | ||
+ | page -> store -> database[ label="store via PHP" ] | ||
+ | database -> sql | ||
+ | database -> triplestore | ||
+ | database -> wikibase | ||
+ | database -> graphDB | ||
} | } | ||
</graphviz> | </graphviz> |