In this post, I will build a minimal ping-pong server and client in Rust using tokio-tungstenite, and use the client to measure real round-trip times across 100 exchanges (collecting min, avg, and max latency) using a Cloudflare Tunnel between them. I want to use this test for a future blog post where I will try to encapsulate other protocols in it.

Continue reading

While building a TCP server (TcpListener) in Rust, I needed to process connections one at a time. I kept noticing that new connections were being accepted but never actually processed, they just hung in standby until the client gave up and disconnected. In this post, I will walk through a minimal TCP server that uses a Semaphore to force max concurrent connections.

Continue reading

Today I will share my journey of preparing a working environment to develop Rust for Espressif boards. Discover how I made the decision to work with Rust for embedded systems, a language known for its safety, speed, and reliability. I’ll also guide you through the process of preparing your development environment, like installing necessary tools, and configuring your workspace to program Rust in VS Code using Docker Dev Containers.

Continue reading

Author's picture

David Melo

engineer and a techie

Telco Engineer

Portugal