I'm building a Laravel 5 eCommerce site with a custom shopping cart and admin, and I'm thinking that using commands will be a good idea as opposed to using general services. I like the idea of segmenting the code out so that each command has a single responsibility, and that each command will be closed for modification so that the code won't easily get broken when adding new features. Plus, it's a new challenge!
My only concern about commands is server load. Does using the command bus dramatically decrease performance? If so, does the maintainability that it offers outweigh the performance losses?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire