mohsenasm / swarm-dashboard

A Simple Monitoring Dashboard for Docker Swarm Cluster
MIT License
162 stars 26 forks source link

Better networking #7

Closed charypar closed 7 years ago

charypar commented 7 years ago

Change the server architecture to a more traditional pub-sub mechanism, keep track of changes in the Docker API response and only publish new changes when the response changes.

This should avoid excessive data transfers between the dashboard server and the client app, also avoiding unnecessary re-renders when nothing is happening.

charypar commented 7 years ago

Turns out docker API 1.30 supports swarm events in the stream API, which means we can get rid of the server-side polling too.

I'll do that in a separate PR though.