Skip to content

[Optimization] Reduce API Polling Frequency & Relayer Request Management #18

@usmanshahid86

Description

@usmanshahid86

Description:
To ensure stability and prevent unnecessary load on the relayer ("spamming"), the front-end must move away from aggressive polling and instead implement a more efficient, event-driven or structured request sequence.

Requirements:

Sequential Request Logic: Instead of continuous polling to check state changes, implement an event based relayer query mechanism.

Utilize Local Storage: Reduce data-fetching requests by leveraging the order details already stored in the user's local storage to prepopulate and update requests locally before sending them to the relayer.

Status-Based Updates: Ensure the UI updates based on the direct response of these "hot" requests rather than waiting for the next polling cycle to refresh the state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions