What is the role of the database in a redux application?

I am new to redux and I just walked around the architecture.

If we store all of our data in a giant store, and that store is updated with actions that are all external, what is the role of background and database in the same app to shrink pages?

Are you pulling data from your store from a database for example?

+3


source to share


1 answer


Typically, redux store is only meant to store temporary state in memory in the browser. The underlying database is used to populate this Redux state. DB can also preserve the consistent state of your application when the Redux store cannot store the complete state of your application due to memory constraints on the computer the browser is running on. DB is also needed to fill the same state across different browsers / users of your application.



It is said that there may be esoteric uses of Redux, for example. on the back-end or in a browser using WebRTC, where a database database might not be needed.

+2


source







All Articles