Laravel-broadway
Laravel-broadway copied to clipboard
Support mongodb for ReadModel
Beside InMemory and ElasticSearch for storing the ReadModel it would be nice if this package would also support the nearly published MongoDB implementation which I found here: https://github.com/broadway/read-model-mongodb
I did not tried this out by myself yet.
The idea behind not including the elastic search driver in the 2.0.0 update was to allow this sort of thing to happen without updating the package, however, I've just realised this is not the case.
The read model drivers in this package solely exist to bootstrap the read model drivers in broadway. Even then, there's no way to pass through your own implementation as the namespace is hardcoded.
🤔
Requires some thinking to get a good solution in. I can either add in the driver and required config, or I can tidy up the code to allow your own implementation to be passed through, or both.
Why not adding mongodb as an option to config/broadway.php
and add a new MongoDB driver to ReadModel/Broadway/Drivers
?
News about adding MongoDb?