Design Patterns · Senior · Question 37 of 75

Why is normalizing data in a frontend store an architectural pattern rather than a micro-optimization?

Explanation

If a user appears both in a list and in comments, denormalized copies drift apart. An { ids, entities } table gives a single source of truth and fast updates by id. The cost is assembling data with selectors.

Further reading

Problem with a question

Design Patterns · Senior · question 37

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz