-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce memory consumption of ThingPersistenceActor #194
Merged
thjaeckle
merged 55 commits into
eclipse-ditto:master
from
bosch-io:bugfix/things-memory
Jul 26, 2018
Merged
Reduce memory consumption of ThingPersistenceActor #194
thjaeckle
merged 55 commits into
eclipse-ditto:master
from
bosch-io:bugfix/things-memory
Jul 26, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ng events to separate class Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Johannes Schneider <johannes.schneider@bosch-si.com>
Signed-off-by: Johannes Schneider <johannes.schneider@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Johannes Schneider <johannes.schneider@bosch-si.com>
…x/things-memory # Conflicts: # services/things/persistence/src/main/java/org/eclipse/ditto/services/things/persistence/actors/ThingPersistenceActor.java
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Johannes Schneider <johannes.schneider@bosch-si.com>
…y a singleton Signed-off-by: Johannes Schneider <johannes.schneider@bosch-si.com>
Signed-off-by: Johannes Schneider <johannes.schneider@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Johannes Schneider <johannes.schneider@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
* Moved methods for creating exceptions from AbstractCommandStrategy to ExceptionFactory. * Moved ImmutableResult to ResultFactory to inhibit direct instantiation of ImmutableResult. * Moved some files to reduce cyclic dependencies of packages. * Added unit test for some command strategies. * Redesigned some strategies to be more fluent and easier to understand. Work in progress! Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
…ierarchy with composition. Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
…dling possible null Thing and get rid of redundancy. Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
…gies to be more fluent. Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
…atatype; enable async notification Signed-off-by: Cai Yufei (INST/ECS1) <yufei.cai@bosch-si.com>
thjaeckle
approved these changes
Jul 26, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool 👍
exciting times :)
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The ThingPersistenceActor handles thing commands and events using inner class strategies, which access and modify the internal state of the actor. This requires these command strategies and event handlers to be instantiated for every single persistence actor, which does not scale very well. With this PR the strategies and handlers were moved out of the persistence actor into separate packages, so that they only need to be instantiated once per actor system. This brings several improvements: