Laravel-broadway icon indicating copy to clipboard operation
Laravel-broadway copied to clipboard

Support mongodb for ReadModel

Open Konafets opened this issue 7 years ago • 3 comments

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.

Konafets avatar Oct 30 '17 07:10 Konafets

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.

LavaToaster avatar Oct 30 '17 14:10 LavaToaster

Why not adding mongodb as an option to config/broadway.php and add a new MongoDB driver to ReadModel/Broadway/Drivers?

Konafets avatar Oct 30 '17 16:10 Konafets

News about adding MongoDb?

AlessandroMinoccheri avatar Nov 22 '18 15:11 AlessandroMinoccheri