Database design where state is a function of mutations.

itsarnavb

Arnav Bansal

Posted on January 9, 2019

Database design where state is a function of mutations.

I'm thinking along the lines of redux, where the state is a function of an initial state, and mutations carried out by reducers.

The benefit is that mutations can capture a large amount of information, and as requirements change, the reducers can be modified to produce a new state.

Also, we have a history built in.

Is this a common pattern in database design?

Specifically, I'm considering implementing this on Firestore. What should I know?

πŸ’– πŸ’ͺ πŸ™… 🚩
itsarnavb
Arnav Bansal

Posted on January 9, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related