All aboard the Service Bus

Robert Basic (15.Feb.2018 at 18:15, 30 min)
Talk at ZgPHP meetup #78 2018/02 (English - US)

Rating: 4 of 5

We deal with complicated and complex applications on a daily basis, codebases that are filled with classes that do too many things. One design pattern that can help us with this is CQRS, Command Query Responsibility Seggregation. The idea behind CQRS is to split our models in two - the Command for writing, and the Query for reading. Applying CQRS can lead us to a more maintainable code, code that follows the SOLID principles more closely.

At the heart of CQRS lies the Service Bus - a transport mechanism responsible for dispatching our command, event, and query messages to their destinations.

This talk will give an overview of the CQRS pattern and take a closer look at the different types of service buses - command, event, and query ones. Main takeaway will be practical information on why, when, and how to use them, with emphasis on their differences. We'll also take a look at some of the PHP libraries out there that help us work with service buses like Prooph Service Bus, Simple Bus, Tactician, to name a few.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

 
Comments closed.

Comments

Rating: 4 of 5

16.Feb.2018 at 14:22 by Miro Svrtan (135 comments) via Web2 LIVE

Only times I noticed Robert being nervous was when he had short brakes telling us he was nervous :) , it's so nice to see you confident on the outside just need to work on the inner confidence.

Pace was good, neither slow nor fast, slides were just right.

I have few small suggestions for the code on the slides:
- put suffixes to class names (instead of UpdatePriceAction call it UpdatePriceActionController, UpdateProductPriceCommand instead of UpdateProductPrice so it would be more clear to the audience what class represents)
- use Money instead of doubles for price hints (or at least integers) so people avoid floating point round-off errors
- I would not suggest using Entities in commands, as handler could change the values inside and controller/service sending the command would be aware of it -> they reference same instance

Rating: 4 of 5

17.Feb.2018 at 20:46 by Zvonimir Spajic (12 comments) via Web2 LIVE

Nice talk. Maybe . the intro part could be shorten a bit in favor of the "meat" of the talk though.

Rating: 3 of 5

07.Mar.2018 at 18:26 by Nino Uzelac (9 comments) via Web2 LIVE

Flawless English, but it was a bit boring for me, intro was long and examples were too simple and I just didn't catch the benefit over using some other pattern (repositories, services).

Rating: 5 of 5

08.Mar.2018 at 17:14 by Zgphp meetup (2 comments) via Web2 LIVE

First of all, thanks for coming to Zagreb to talk about this topic. I find it personally very interesting and it is always a pleasure to hear more about CQRS.

The talk was great, well rehearsed and I really enjoyed examples of bad and best practice.
I've never heard of query bus before, and the example of throttling queries by using the bus was eye-opening.

Rating: 4 of 5

15.Mar.2018 at 09:11 by Damir Andrijanic (1 comments) via Web2 LIVE

Nice talk, but the intro could be shorter with more concrete examples.

Rating: 3 of 5

15.Mar.2018 at 14:04 by Brigita Vrbanec (13 comments) via Web2 LIVE

Intro was too long and not so relevant, slides need more work, and in the end I still don't understand how or why would I use a service bus.

© Joind.in 2018