Skip to content

[dev-react] IPC Communication  #8

@LeonardoFerrisi

Description

@LeonardoFerrisi

Currently BDR communicates information using Flask from the python backend and axios on the frontend.
Components such as the banner in the footer of the application, run from the frontend, receives update message from the backend and has to query every couple of seconds to request an update.
It feels like there is a better way to do this, as it currently achieves this by repeatedly sending new GET requests:

Example:
127.0.0.1 - - [DATE TIME] "GET /banner-message HTTP/1.1" 200 -

This returns the current status of information. If an error occurs for example, an error message should immediately show up in the banner.

If there is a way in which messages are only sent when the status updates on the backend and then relayed to the frontend, that would be a more efficient use of resources.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions