event sourcing your react-flux applications
TRANSCRIPT
![Page 1: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/1.jpg)
React applications & Event Sourcing
Mauricede Beijer
Software EngineerTrainer
ABL – The Problem Solver
![Page 2: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/2.jpg)
Who am I?Maurice de BeijerThe Problem SolverMicrosoft Azure MVPFreelance developer/instructorTwitter: @mauricedb and @React_TutorialWeb:http://www.TheProblemSolver.nlE-mail: [email protected]
![Page 3: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/3.jpg)
![Page 4: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/4.jpg)
![Page 5: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/5.jpg)
![Page 6: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/6.jpg)
![Page 7: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/7.jpg)
![Page 8: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/8.jpg)
![Page 9: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/9.jpg)
![Page 10: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/10.jpg)
![Page 11: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/11.jpg)
(Semi) Structured storage
Database CRUD Server HTTP Browser
![Page 12: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/12.jpg)
![Page 13: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/13.jpg)
A React component to display data
![Page 14: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/14.jpg)
Command Query Responsibility Segregation
![Page 15: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/15.jpg)
Command Query Responsibility Segregation
Database
Query ServiceHTTP
Browser
Command Service
HTTP
Read
Update
![Page 16: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/16.jpg)
![Page 17: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/17.jpg)
A command to draft a permit
![Page 18: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/18.jpg)
The JavaScript command
![Page 19: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/19.jpg)
A Redux Action Creator
![Page 20: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/20.jpg)
![Page 21: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/21.jpg)
![Page 22: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/22.jpg)
![Page 23: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/23.jpg)
![Page 24: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/24.jpg)
![Page 25: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/25.jpg)
Event Sourcing
ProjectionsDatabase
Query Service HTTP
Browser
Command Service
HTTP
Read
UpdateEventsDatabase
Projector Service
![Page 26: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/26.jpg)
React with Redux
ViewServer
Store
Action
API
Triggers
HTTP
Use
Notifies
Updates
![Page 27: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/27.jpg)
![Page 28: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/28.jpg)
![Page 29: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/29.jpg)
The permit drafted event
![Page 30: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/30.jpg)
![Page 31: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/31.jpg)
![Page 32: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/32.jpg)
![Page 33: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/33.jpg)
Projecting a permit drafted event
![Page 34: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/34.jpg)
The permit collection reducer
![Page 35: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/35.jpg)
The single permit reducer
![Page 36: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/36.jpg)
The React application startup
![Page 37: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/37.jpg)
Connecting state to a component
![Page 38: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/38.jpg)
![Page 39: Event sourcing your React-Flux applications](https://reader036.vdocuments.net/reader036/viewer/2022062522/589ab9851a28abff4f8b66a7/html5/thumbnails/39.jpg)
@mauricedb
Question?
http://theproblemsolver.nl
MauriceDe Beijer
Software EngineerTrainer
ABL – The Problem Solver