Change the architecture of the code #81
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Since we are growing the Siddhi operator code base we need a proper architecture to organize the code.
Goals
Change the Siddhi operator code architecture to follow the clean architecture.
Approach
Clean architecture mainly describes the dependency rules. All the functionalities of the project embedded to multiple packages accordingly. Source code packages are in a circular way. The source code dependencies can only point inwards. Nothing in an inner circle can know anything at all about something in an outer circle.
Here we used the following packages in the code.
These packages can be categorized as follow.
For more details:
Automation tests
Test environment
Learning
The clean architecture allows you to independently manage and test the specific parts of the code.