Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/x.md Secret

Created October 24, 2012 01:39
Show Gist options
  • Save Raynos/30be506c82379753aafb to your computer and use it in GitHub Desktop.
Save Raynos/30be506c82379753aafb to your computer and use it in GitHub Desktop.

Reflex

Reflex has a few core components

  • State
  • Reader
  • Writer
  • Forks

Diagram

 ________     ________     ________
|        |   |        |   |        |
| reader |   | reader |   | reader |
|   A    |   |   B    |   |   C    |
|________|   |________|   |________|
    |            |            |
    ↓            ↓            ↓
 _______________________________
|                               |
|                               |
|             State             |
|                               |
|_______________________________|
    |            |            |
    ↓            ↓            ↓
 ________     ________     ________
|        |   |        |   |        |
| fork A |   | fork B |   | fork C |
|________|   |________|   |________|
    |            |            |
    ↓            ↓            ↓
 ________     ________     ________
|        |   |        |   |        |
| writer |   | writer |   | writer |
|   A    |   |   B    |   |   C    |
|________|   |________|   |________|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment