Date post: | 16-Mar-2018 |
Category: |
Technology |
Upload: | mate-thurzo |
View: | 49 times |
Download: | 0 times |
The Science Behind StagingHow Graph Theory Helps the Development of Liferay’s Publication Tools
Máté Thurzó, Staging Lead, Senior Software Engineer
1.Advanced publication tool
Content can be assembled and reviewed on a staging site and can
be published to live
A staging publication processreplicates data between sites and performs extra operations – such asvalidation
2. replication
EntityStaging is operating on a graph of entities, discovering and processingthe relationships between them
w y si w y g beh a v i or
In order to ensure a smooth experience wemight need to pullother contents too
r ef er en ce v a l i d a t i on
Certain business rulesneeds to be validatedand reported back
n o g r a ph st or ed
There is no information beforethe execution of thegraph
g r a ph m a i n t en a n ce
On edit approach vsprocessing every time
X M L f or m a t
Performance considerations –especially on thememory side
g r a ph n ot h om og en ou s
The graph vertices are not thesame – graph operations notpossible
st a t i c ca l l i n g
Pre-defined entry pointscombined with a staticcontrolling setup
DirectedDirection is important to tellwhat comes after what –This is defined in the business logic
GraphDuh!
AcyclicalIn a cycle everything
has a predecessor and a successor
× Static code analysis – Codecheck, Liferay Source Formatter
× Abstract Syntax Tree (AST)× Abstract Semantic Graph (ASG)