Skip to content

How to deal with replication lag? #257

@pouya-eghbali

Description

@pouya-eghbali

My after.update hooks return the old document because of replication lag (meteor writes the update to primary, collection hooks reads the document from secondary before it gets a chance to synchronize with primary).

How to deal with this? I cannot simply add a timeout to my hooks, that won't solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions