3 ms·
Very cool. I tried something similar once. Have you gone down the differential/compressed update rabbit hole yet?
by anderspitman 5y ago
Very cool. I tried something similar once. Have you gone down the differential/compressed update rabbit hole yet?
- swagasaurus-rex 5y agoRight now jsynchronous message passes using custom encoding in JSON which keeps simple changes as small as an HTTP header, but with byte level encoding I think this could be halved. Some compression on top would probably do wonders for huge volumes of changes, though more browsers are supporting compression on the websocket level. I'm not familiar with the name differential update. Instead of passing potentially large states back and forth, Jsynchronous numbers each change to your synchronized data and shares these changes with all connected clients. This is called Event Sourcing, and it enables jsynchronous to rewind to previous states by running the changes from start to any intermediate state.