-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to handle maximum document size? #3
Comments
prooph/event-store provides different stream strategies. They operate on aggregate level and invoke the event store differently when an aggregate is going to be added or updated. All other PHP event store implementations (I'm aware of) only support a single event stream and fetch all events for an aggregate from the ES by using the UUID of the aggregate as filter.
👍 : Transaction handling is simple because updating the event stream of the aggregate can be done within one atomic mongoDB operation, right? When looking at DDD an aggregate should be consistent but between multiple aggregates eventual consistency is preferred. So the atomic update operation would be enough. I think we should provide both options so people can choose the one that best fits their needs (by using the adapter together with the appropriate StreamStrategy). But I'm not sure if this can be implemented in one adapter or if we really need two to keep them simple and focused. |
I'll try to play a little with some implementation tomorrow and let you know what I got ;-) |
👍 some working code would be great |
Ping @prolic: Did you find some time to play with ideas or should I start working on it (if I find some time in the next weeks ;)) |
Sorry, first I got sick and then I needed to rearrange some timing Best Sascha Sascha-Oliver Prolic 2015-07-03 19:50 GMT+02:00 Alexander Miertsch notifications@github.com:
|
No problem. And very good news. Thanks for the update. |
@prolic Can we close the issue as we are using one document per event now? |
I am not sure. What about file uploads?
|
I consider file uploads as one of the edge-cases 😄 It is not recommended to put uploaded files into events but a reference to the file. |
Ok, so we can close this, I think ;) |
Question extracted from prooph/proophessor#20
About maximum document size: We can perhabs have 2 adapters?
The first one has the 16MB per document limitation, but will work slightly faster. The second one stores a reference to a mongo grid fs entry and has no limitations at all.
The text was updated successfully, but these errors were encountered: