google / shenzhen-go

Experimental visual Go environment
Apache License 2.0
464 stars 44 forks source link

Choreography #28

Open ghost opened 6 years ago

ghost commented 6 years ago

This is a bit out of left field but you know how you link the mini executing programmes, well I reckon it's begging for a event bus with topics.

At design time you have to wire your pins together. That's orchestration pattern and is a dead end. Better to use a choreography pattern and at design time just have a file to describe the things pins subscribe to, and those things are topics. This way no components know about each other and the design scales out at design time. You can then change the wiring at runtime also.

Happy to discuss these ideas. I use them for all other projects and it's well know enterprise pattern so you don't end up in a architectural design cul-de-sac.

Google orchestration versus choreography..