Beyond PSR-7: Design Your Own Middleware Using The Instruction Bus

Stuart Herbert (08.Apr.2017 at 09:30, 50 min)
Talk at PHP Yorkshire 2017 (English - UK)

Rating: 5 of 5

PSR-7 Middleware gives us a standard for writing modules that deal with HTTP requests. Using something like Slim or Zend Expressive, you can quickly and easily chain these modules together to save you time and effort. That’s all well and good, but what happens when you’re not working with HTTP requests? What if you’re working with message queues? Or data going to and from a database? Or pretty much anything that isn’t a HTTP request?

Wouldn’t it be great if we could take the concept of building pluggable pipelines, and apply it to any kind of situation that we have?

In this talk, Stuart will introduce you to the Instruction Bus - what it is, how to install it, and how to use it to create the pipelines that you need for your application. He’ll show you how to make it type-safe (a long-standing criticism of PSR-7), and how to go about testing and debugging code that runs inside these pipelines. By the end of the talk, you’ll have a worked example that you can download and start using straight away: an open-source library that encrypts and signs messages for messaging systems such as Amazon SQS.

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

08.Apr.2017 at 13:04 by Simon R Jones (46 comments) via Web2 LIVE

Very interesting, good to see a talk on pipelines/middleware that isn't HTTP focussed. Certainly helps me understand the concepts better.

Rating: 5 of 5

09.Apr.2017 at 09:02 by Elliot Ward (71 comments) via Web2 LIVE

I've seen many middleware talks before without really getting it. After watching this talk everything clicked. The slides were legible and focussed to the specific point being made at all times. The delivery was relaxed and clear, well paced and the emphasis on quality and maintability actually helped illustrate the middleware concepts rather than distract from them. I can't think of a single suggestion to improve this talk.

Rating: 5 of 5

09.Apr.2017 at 09:35 by Alex Pott (3 comments) via Web2 LIVE

Really liked this talk and like all the best I immediately want to start applying the examples to my our code. The way the concept was explain through a real life but simple to understand example was really great.

Rating: 4 of 5

09.Apr.2017 at 12:31 by Drew McLellan (15 comments) via Web2 LIVE

Super talk. I did lose track of the terminology at one point, but that might just be my inexperience with the subject and so many new concepts to take on board.

Rating: 5 of 5

09.Apr.2017 at 15:02 by Dave Liddament (72 comments) via Web2 LIVE

Great talk. I'll definitely move a pipeline implemented using Symfony events to an instruction bus - much simpler.

Thanks for answering all my questions after the talk too.

Rating: 4 of 5

10.Apr.2017 at 10:48 by Shaun Walker (20 comments) via Web2 LIVE

Brilliant talk giving some great practical examples on what makes up a pipeline and how to actually implement one.
Personally it felt a little too classroom/workshop-like to me with the speaker frequently posing questions for the audience to answer.
The talk seemed to spend a little too much time trying to teach/re-inforce DRY principles which just personally as a senior felt a bit out of place/redundant, and I would think if you're going to a talk about middleware and instruction busses you likely have a grasp on those DRY principles. But I enjoyed the talk and learned, having never implemented a pipeline from scratch before, only used existing ones.

Rating: 5 of 5

11.Apr.2017 at 09:28 by Pete Samways (9 comments) via Web2 LIVE

Great talk, very informative, and well presented. I came away with a much improved understanding of the principles involved

Rating: 4 of 5

11.Apr.2017 at 09:33 by Sean Nessworthy (14 comments) via Web2 LIVE

Fantastic talk, Stuart was clear and the talk was incredibly informative. My only critique was that the code slides were sometimes a little difficult to understand at the speed and order they were presented.

© Joind.in 2019