skip to Main Content

I’m starting a new project and have an idea on functionality I would like to implement however I am not sure how it would be done architectually.

I would like to have a React based web application which displays information generated and updated regulary on a sepereate NodeJS server. I’d like to have it so that when the data is updated on the NodeJS server that my web app will automatically update the data view with this new information.

My first thought would be to use a REST API however that doesn’t feel like it would be a great solution.

What tools and architectures should I look at using to do this?

Thanks

2

Answers


  1. Maybe try taking a look at https://developer.mozilla.org/en-US/docs/Web/API/WebSocket

    That is what realtime applications use

    Login or Signup to reply.
  2. You can implement real time communication between frontend and backend through a web socket. If you asked me, I’d probably suggest you socket.io, since it’s very performant and easy to learn. You can find more information at the links below.

    https://socket.io/

    https://www.npmjs.com/package/socket.io

    https://en.wikipedia.org/wiki/WebSocket

    https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search