A lightweight, high-performance monitoring solution built with .NET 10 using UDP for minimal latency.
- Telemetry.Core: Shared
TelemetryMessage. - Telemetry.Agent: Background service that pushes data every 5 seconds.
- Telemetry.Server: Asynchronous listener that processes incoming data packets.
- Performance: Uses
JsonSerializer.SerializeToUtf8Bytesto eliminate string allocations and reduce GC pressure. - Non-Blocking: The server uses
Task.Runto offload packet processing, keeping the receiver loop ready for high traffic. - Efficiency: UDP "fire and forget" logic ensures the agent doesn't slow down the main app if the network is busy.
- Server: Listens on port 6000.
- Start Agent: Broadcasts simulated CPU/RAM data.
- View Results: Real-time stats appear in the server console.