What types of stateful dependencies do exist?
Shared field
- read to a shared field
- => stage can be duplicated
- write to a shared field; shared field is read not until the writing stage has completely finished its work (e.g., by triggering in
onTerminating()
)
- => stage can be duplicated
- recommendation: write should be performed on a unique set to reduce synchronization
- write to a shared field; shared field is read simultanenously
- => ???
Private state field
- read and write a field without influencing the output ports, e.g., a counter
- => stage can be duplicated
- read and write a field with influencing the output ports
- => ???