From 9896fba848a1cce31b8e83ec7f0dc5d65c900c30 Mon Sep 17 00:00:00 2001 From: emqx-ci-robot Date: Wed, 2 Oct 2024 11:03:41 +0000 Subject: [PATCH] sync blog --- README.md | 1 + en/202410/emqx-platform-durable-session.md | 74 ++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 en/202410/emqx-platform-durable-session.md diff --git a/README.md b/README.md index 21d2acc7..b29fe8f4 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,7 @@ Explore more with & via EMQ. ## [EMQX Open Source | Broker](https://www.emqx.com/en/blog/category/emqx) EMQX is the world's most scalable open-source MQTT broker with a high performance that connects 100M+ IoT devices in 1 cluster, while maintaining 1M message per second throughput and sub-millisecond latency. +- [Stay Connected with No Data Lost: Discover the Power of Durable Sessions in EMQX Platform](https://www.emqx.com/en/blog/emqx-platform-durable-session) ([Edit](https://github.com/emqx/blog/blob/main/en/202410/emqx-platform-durable-session.md)) - [Connect Locally, Communicate Globally: Cluster Linking is now available on EMQX Platform Premium](https://www.emqx.com/en/blog/cluster-linking-is-now-available-on-emqx-platform-premium) ([Edit](https://github.com/emqx/blog/blob/main/en/202409/cluster-linking-is-now-available-on-emqx-platform-premium.md)) - [Introducing EMQX Premium: Advanced MQTT Messaging for Enterprise-Grade AI and IoT Applications](https://www.emqx.com/en/blog/introducing-emqx-premium) ([Edit](https://github.com/emqx/blog/blob/main/en/202409/introducing-emqx-premium.md)) - [From Data to Insight: EMQX and GenAI in IoT](https://www.emqx.com/en/blog/emqx-platform-and-genai) ([Edit](https://github.com/emqx/blog/blob/main/en/202408/emqx-platform-and-genai.md)) diff --git a/en/202410/emqx-platform-durable-session.md b/en/202410/emqx-platform-durable-session.md new file mode 100644 index 00000000..5e8fd7e6 --- /dev/null +++ b/en/202410/emqx-platform-durable-session.md @@ -0,0 +1,74 @@ +In today’s fast-evolving IoT landscape, ensuring uninterrupted connectivity is critical for the success of connected systems. From smart cities and autonomous vehicles to healthcare devices and industrial automation, IoT applications require reliability, scalability, and data integrity. Enter **Durable Sessions**, a game-changing feature from the EMQX Platform that guarantees your IoT systems remain connected, even when network conditions are less than ideal. + +## Why Durable Sessions Matter in IoT + +The world of IoT revolves around communication between devices, servers, and applications. But what happens when a device goes offline due to a temporary network failure or a server restart? Without a durable connection mechanism, valuable data could be lost, devices might not receive important messages, and your applications could experience downtime. + +With **Durable Sessions**, you can avoid these problems. This powerful feature ensures that even when devices disconnect, their session information, undelivered messages, and state are preserved. Once the device reconnects, it picks up right where it left off. This means no lost messages, no re-subscriptions, and no headaches—just seamless IoT communication. + +## What Makes EMQX’s Durable Sessions Unique? + +The EMQX Platform takes **Durable Sessions** to a new level by offering the following key capabilities: + +- **Uninterrupted Communication:** Your IoT devices can now maintain continuous communication even during temporary disconnections. Whether it's a loss of Wi-Fi, LTE signal, or a server reboot, your IoT devices can continue their operations without skipping a beat. +- **State Preservation:** Devices no longer need to reinitialize or resubscribe after a disconnection. The broker retains the session information, allowing devices to pick up where they left off. +- **Data Continuity:** Durable Sessions prevent data loss. If your devices miss important messages while disconnected, those messages are queued and delivered when the connection is re-established. +- **Scalability & Flexibility:** Whether you're managing hundreds or millions of devices, EMQX ensures smooth, efficient session management without compromising on performance. It scales effortlessly, from small deployments to massive IoT ecosystems. + +## How Durable Sessions Work + +1. **Session Establishment:** A **Durable Session** is created when a device connects to EMQX with the "Clean Session" flag set to **false**. This tells the broker to maintain session information, such as subscriptions and undelivered messages, even after the device disconnects. +2. **State Maintenance:** During disconnection, the EMQX broker retains the client’s session state, ensuring all subscriptions and pending messages are stored. +3. **Message Queueing:** When a device is offline, the broker queues any incoming messages intended for that device. These messages are held until the device reconnects, ensuring no data is lost. +4. **Reconnection:** When the device reconnects, it resumes the session, receiving any messages that were queued while it was disconnected. This process happens without requiring any manual intervention or complex logic on the client side. +5. **Expiration Management:** To optimize resources, session expiration can be configured. This allows the system to automatically clear sessions that have been inactive for a specified period, ensuring efficient resource management across large-scale IoT deployments. + +## Key Advantages of Durable Sessions for Your IoT System + +### Elevated Reliability for Mission-Critical Applications + +For industries like automotive, healthcare, and industrial automation, even a few seconds of downtime can lead to significant disruptions. **Durable Sessions** offer unmatched reliability, ensuring continuous communication and minimizing the risk of downtime in any condition. + +### Improved Data Integrity + +Data is the lifeblood of IoT applications. **Durable Sessions** ensure that no critical information is lost due to connection issues. The broker stores any messages the device missed and delivers them once the connection is restored, protecting the integrity of your data. + +### Simplified Development and Maintenance + +Building IoT systems that manage connection states can be complex and time-consuming. **Durable Sessions** take this burden off developers by automatically handling session persistence, message delivery, and reconnections. This makes your application logic simpler and reduces development overhead. + +### Optimized Resource Utilization + +For devices that operate in intermittently connected environments, **Durable Sessions** reduce the need to resend data every time the connection drops. This optimizes bandwidth usage and device performance, especially for battery-powered devices in remote locations. + +## Use Cases: How Durable Sessions Benefit Industries + +### Automotive + +With vehicles often traveling through areas with varying network coverage, **Durable Sessions** ensure that connectivity remains uninterrupted. For connected vehicles, this means continuous telemetry data transmission and real-time updates without data loss, even when moving through low-coverage areas. + +### Industrial Automation + +In smart factories, machines often need to operate under challenging conditions where connectivity may be unstable. **Durable Sessions** maintain data flow even when connections are disrupted, ensuring operational continuity and maintaining productivity. + +### Healthcare + +In the healthcare sector, medical devices that monitor patient health need to ensure that no vital data is lost, even in the event of network issues. **Durable Sessions** guarantee that all critical data is delivered, preserving patient safety. + +## Ready to Experience Durable Sessions? + +By using EMQX's **Durable Sessions**, businesses across industries can scale their IoT applications with confidence, knowing that their systems will remain resilient and reliable. The ability to preserve session states, queue messages, and ensure seamless reconnections transforms how IoT applications operate in the real world. + +Don’t let network instability or disconnections hold back your IoT applications. With **Durable Sessions**, you can ensure that your devices stay connected, your data remains intact, and your system performs at its best. + +Explore **Durable Sessions** today with the [EMQX Platform](https://www.emqx.com/en/cloud), and see how this innovative feature can elevate your IoT operations. Get started with EMQX now and empower your IoT applications with reliable, uninterrupted communication. + + + +
+
+ Try EMQX Platform for Free +
No credit card required
+
+ Get Started → +