This removes a third party dependency (datadog-metrics) which added ~2.5MB of code to the server.
Install
npm install @rocicorp/[email protected]
Summary
(as compared to [email protected])
🎁 Features
🧰 Fixes
- Use
fetch and a small amount of hand written code instead of depending on the datadog-metrics npm package. The large dependency caused timeouts in code deployments.
⚠️ Breaking Changes
⚡️ Performance
Reduced overhead of connectivity checks
Reduces the overhead and interference from connectivity checks.
- Previously connectivity checks were done in parallel with every WebSocket connection attempt.
- This created more overhead/interference than necessary for connecting clients, the reflect worker and Rocicorp’s canary-render web service.
- Now they are done:
- after the first successful connection
- after a successful connect that was proceeded by 1 or more connect errors
- on the first connect error, and ever 6th connect error there after