Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Considerations of Materialized View Pattern

Pragya Keshap answered on February 3, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Drawbacks of materialized view pattern
  • materialized view pattern
  • When should the materialized view pattern be used in microservices ?

  • Considerations of Materialized View Pattern

    0

    With appying Materialized View Pattern, we have duplicated data into our system.

    ▪ Duplicating data is not a anti-pattern, have strategically duplicating our data for microservice communications.

    ▪ Only one service can be a data ownership.

    ▪ How and when the denormalized data will be updated ?

    ▪ When the original data changes it should update into sc microservices.

    ▪ Need to synchronize the read models when the main service of data is updated.

    ▪ Solve with using asynchronous messaging and publish/subscribe pattern.

    ▪ Publish an event and consumes from the subscriber service to update its denormalized table.

    ▪ Using a scheduled task, an external trigger, or a manual action to regenerate the table

    https://medium.com/design-microservices-architecture-with-patterns/materialized-view-pattern-f29ea249f8f8

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 03 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.