baseapp
baseapp copied to clipboard
Feature: move websockets connection to service worker
Idea When FE receives huge amount of websocket messages per second, we can see performance issues. The cause is that FE handles every message came via websockets (it can be 10,000 per second). The potential solution is to add Service worker and move websockets connection to it. Service worker will handle every message, collect in groups and send to the main app with defined frequency (can be based on user machine performance).
ToDo
- Add service worker to the project and build it with webpack ✅
- Move websockets connection from redux-saga to Service worker (separate class).
- Trigger redux actions on service worker events.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
7 Code Smells
No Coverage information
0.0% Duplication