DEV Community

Cover image for Reactive Architecture with AWS

Reactive Architecture with AWS

Meidi Airouche on October 19, 2023

My idea of a "developer" is not the ability of tackling complex algorithms but to be able to implement systems that are observable, loosely coupled...
Collapse
 
sdeby profile image
Serge Eby

Nice article, however, I would argue that comparing pub/sub to DI is a little flawed: Class A is still aware of its dependencies. The main difference is that they are now injected, and not implemented by class A.

Collapse
 
mairouche profile image
Meidi Airouche • Edited

I took a too big shortcut here. The purpose was to explain that, as injected components, subscribers act like plug-ins. That's why I would argue that DI and Pub/Sub are two different implementations of IoC.

I'll rewrite this part since it's not cristal clear. Thank very much for your feedback !