apache / apache/openwhisk

Do we want Rules to be anonymous always, with no possibility to name them?

Open
#833 16 comments 1 reaction 0 assignees View on GitHub
programming model question
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

As part of the work on nuking the Activator and thus refactoring the way we fire triggers and match rules to them it became quite obvious that rules as they currently are implemented are just a name for the connection between a trigger and an action.
- They don't provide much value as they are 1:1 bindings anyway, which might as well be implemented as a connection between trigger and action, just without giving it a name
- They are activatable/deactivatable, but imho it makes more sense to have triggers activatable/deactivatable, as that would actually pause the stream of events to that trigger. To replace rules deactivating behaviour one might just remove the connection between triggers and actions.

Without rules, the steps to take on the CLI will roughly stay the same, but you don't need to name the connection and as we all know, "Naming things" is one of the hardest problems in IT.

**Edit:** The discussion has drifted away a bit from my initial thoughts. Title has been renamed by @rabbah for that purpose. Some of the comments might not fit the title anymore.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.