Level-triggered vs Edge-triggered Programming

level-vs-edge-triggered

level-triggered edge-triggered
state event

edge-triggered programming

examples

  • producer/consumer
  • publisher/subscriber
  • observer
  • event

take away

  • work well in a single process
  • tends not to work so well in distributed systems, due to Fallacies of distributed computing
  • when bad things inevitably happen,you drop back to a level-triggered mechanism that reconcile discrepancies in state
  • it’s ok to use, but think in it

References