Xinboo
Xinboo

.NET Developer

IoT


浅聊一下时序数据库 InfluxDB,以及 .NET 怎么操作它

Imagine a world where every sensor in a water pump room whispers its secrets to a database, creating a symphony of real-time data that traditional systems struggle to hear. This narrative explores the transition from conventional storage solutions like PostgreSQL and MongoDB to the specialized realm of Time Series Databases, specifically InfluxDB. Why do we need such a shift? Because time-stamped data behaves differently than standard relational records; it demands high write throughput, chronological querying, and immutable history. The core mystery lies in how InfluxDB organizes this chaotic influx of information through elegant abstractions like Buckets, Measurements, Tags, and Fields. Tags act as indexed dimensions for fast filtering, while Fields hold the actual metric values without indexing overhead—a distinction that can make or break performance at scale. For .NET developers, this isn't just theory; it is a practical journey from installing the InfluxDB.Client NuGet package to...--AI Generated

.NET IoT InfluxDB TimeSeries Flux TagDB

用 MQTTnet 的 ManagedMqttClient 创建带自动重连的 MQTT 客户端

Imagine building an IoT system where the network is as unreliable as a dial-up connection in the 90s. How do you ensure your sensors talk to each other without constant manual intervention? The answer lies in shifting from basic MQTT clients to intelligent, managed architectures like ManagedMqttClient. This approach automates the tedious work of reconnection and message queuing, allowing developers to focus on logic rather than infrastructure maintenance. But beyond convenience, it forces us to confront the core mechanics of message delivery: Quality of Service (QoS), CleanSession flags, and Retain messages. These are not just technical settings; they are philosophical choices about reliability versus efficiency. QoS 0 offers speed at the cost of certainty, while QoS 2 guarantees perfection but demands a heavy performance toll. Where is the sweet spot for your application? Is it worth sacrificing latency to ensure that every single command is executed exactly once? The CleanSession par...--AI Generated

.NET C# MQTTnet ManagedMqttClient MQTT IoT

  • 1