| Start |
|---|
| The Publish/Subscribe (Pub/Sub) Pattern When a Bash project turns into a library, it can become difficult to add new functionality. Function names, variables and parameters usually need to be changed in the scripts that utilize them. In scenarios like this, it is helpful to decouple the code and use an event driven design pattern. In said pattern, an external script can subscribe to an event. When that event is triggered (published) the script can execute the code that it registered with the event. pubsub.sh: Run: |
Read Article
https://develop.horje.com/learn/1434/reference