Tagged articles
Watchdog
44 articles · Page 1 of 1
This article analyzes distributed locking in Spring Boot using Redis and Redisson, covering atomic locking with SET NX EX, watchdog lease renewal, reentrant Hash-based design, pub/sub wait notification, the RedLock algorithm debate including Martin Kleppmann's GC pause and clock jump critiques, and production pitfalls with annotation-based AOP encapsulation.
Distributed LockIdempotencyLua Script
0 likes · 23 min read

DeepSeek's Super Agent architecture uses a dual-layer Router/Worker design, event-driven triggers with two-level filtering, asynchronous multi-channel interaction, compute-state-environment separation, and an external watchdog to enable persistent, proactive multi-task AI agents that maintain context across sessions and reduce human monitoring overhead.
Agent ArchitectureAsynchronous ProcessingCompute-State Separation
0 likes · 22 min read

The article analyzes DeepSeek's Super-agent architecture, showing how it maps operating system concepts—process scheduling, page caching, compute-storage separation, and watchdog mechanisms—to build a dual-layer Router-Worker agent system that enables continuous, efficient, proactive, and persistent autonomous agents, with source code insights from the open-source prototype.
Agent ArchitectureBYOMDeepSeek Super-agent
0 likes · 42 min read

This article analyzes DeepSeek Harness's Super-agent architecture, dissecting its dual-layer Router-Worker design, event-driven routing, context caching, speculative execution, and compute-storage separation, while highlighting trade-offs like cross-layer communication overhead, async complexity, and security risks in BYOM deployments.
Agent ArchitectureContext ManagementDeepSeek Harness
0 likes · 22 min read

This article provides a comprehensive guide to distributed locks in microservices, covering why local locks fail, four fatal flaws of basic implementations, advanced manual locks with Lua scripts, watchdog auto-renewal, Redisson production usage, Redlock for high availability, and a real-world seckill overselling case study.
Distributed LocksLua ScriptRedLock
0 likes · 10 min read

This article presents a systematic approach to building reliable AI agents by classifying faults into API, tool, context, and control-flow layers, detailing detection mechanisms like repeat-call fingerprints and watchdogs, and outlining recovery strategies including exponential backoff, model cascade degradation, tool-error virtualization, and idempotent pre-check-confirm patterns to prevent death spirals and ensure safe retries.
AI agentsCircuit BreakerError Recovery
0 likes · 10 min read

The article explains why a braking controller that computes the right result but delivers it two seconds late is considered a failure, outlines the unique constraints of embedded systems, describes the five‑layer architecture, distinguishes strong versus weak real‑time, and details the roles of RTOS, HAL/BSP, soft‑hardware co‑design, and watchdog timers.
BSPHALRTOS
0 likes · 19 min read

This article dissects Multica's agent task lifecycle, explaining how a state‑machine model, three‑level watchdog timeouts, a string‑based failure classifier, and precise cache‑invalidation rules together ensure agents run reliably, distinguish between long‑running and stuck tasks, and report progress without overwhelming the network.
Watchdogbackend developmentcache invalidation
0 likes · 10 min read

The article presents eight practical Python techniques—from using python -m to avoid import errors, leveraging rich for better debugging output, pathlib for path handling, dataclasses to reduce boilerplate, enumerate, proper __main__ guard, perf_counter for benchmarking, and watchdog for hot-reloading—each with code examples, showing how they cut down repetitive tasks and improve productivity.
DebuggingPythonWatchdog
0 likes · 13 min read

This article presents eight practical Python techniques—from using python -m to avoid import errors, to pathlib for path handling, dataclasses for boilerplate reduction, rich for pretty debugging, enumerate, proper __main__ guards, perf_counter for accurate timing, and watchdog for hot‑reloading—each designed to eliminate daily friction and boost development efficiency.
PythonWatchdogdataclasses
0 likes · 14 min read

In high‑concurrency Java services, a Redis lock can appear to expire before its TTL because JVM Stop‑The‑World pauses freeze the application clock while Redis continues counting down, leading to lock loss and data races unless mitigated with watchdogs or optimistic locking at the database level.
BackendDistributed LockJVM GC
0 likes · 9 min read

In high‑concurrency Java services, a Redis lock that appears to have a valid TTL can still be taken by another thread when a long Stop‑The‑World pause freezes the JVM clock, causing the lock to expire on Redis while the original holder remains paused, leading to data races.
Distributed LockFull GCJVM
0 likes · 8 min read

The article explains what occurs when a Redis distributed lock expires before a business operation completes, and details how Redisson’s watch‑dog mechanism automatically renews the lock, covering the underlying principles, configuration, code examples, and comparisons with alternative renewal approaches.
BackendConcurrencyDistributed Lock
0 likes · 34 min read

This article walks through the evolution of Redis distributed locks—from basic SETNX mutual exclusion to atomic SET with expiration, Lua‑based safe unlocking, Redisson's WatchDog auto‑renewal, and the RedLock algorithm—highlighting pitfalls, best‑practice implementations, and interview‑style Q&A for robust production use.
Distributed LockJavaRedLock
0 likes · 15 min read

This guide introduces nine Python libraries—including smart_open, filelock, watchdog, zstandard, dataclasses-json, polars, fsspec, pandas, and tracemalloc—that together enable fast, memory‑efficient, and reliable handling of large files, remote storage, and concurrent workflows.
Large FilesPythonWatchdog
0 likes · 11 min read

Learn why a Linux watchdog is essential for Spring Boot services, how to install and configure the watchdog daemon on various Linux distributions, load the appropriate kernel driver, set up systemd, and integrate a Java-based feeding task to ensure automatic recovery from hangs or crashes.
LinuxOperationsWatchdog
0 likes · 10 min read

This article explains the challenges of thread synchronization in distributed systems, introduces the concept of distributed locks, compares common implementations such as Redis, Zookeeper, and databases, and provides robust Java and Lua solutions to ensure atomicity, avoid deadlocks, and support lock renewal.
ConcurrencyDistributed LockJava
0 likes · 14 min read

This article explains how Redisson leverages Redis to implement distributed locks, detailing the underlying Lua scripts, lock acquisition and release processes, the watch‑dog mechanism for automatic lease renewal, and provides Java code examples for integrating and testing the lock functionality.
ConcurrencyDistributedLockJava
0 likes · 19 min read

A customer reported that on an STM32F103VDT6, disconnecting the external 8 MHz crystal did not trigger the external watchdog reset because the MCU’s PLL continued to generate a low‑frequency clock, but enabling the Clock Security System (CSS) and handling the NMI correctly resolves the issue.
CSSEmbeddedHSE
0 likes · 6 min read

This article presents seven practical, long‑term strategies—such as ROM filling, CRC checks, RAM validation, stack monitoring, MPU usage, robust watchdog design, and avoiding volatile memory allocation—to help embedded engineers build more reliable firmware and catch abnormal behavior early.
MPUWatchdogembedded systems
0 likes · 9 min read

This guide introduces Watchdog, an upgraded, web-based security platform derived from Bayonet, and provides step-by-step instructions for installing, configuring, and deploying it across multiple Ubuntu nodes, including database setup, Flask service launch, and activation of sub-domain, port, URL, and Xray scanning modules.
Watchdogasset managementdeployment
0 likes · 7 min read


政采云技术Oct 12, 2023 · Backend Development
This article introduces Redisson, a high‑performance Java Redis client built on Netty, explains its key advantages, and provides a detailed walkthrough of the RedissonLock implementation—including tryLock, blocking lock, unlock logic, associated Lua scripts, and the automatic watchdog renewal mechanism.
Distributed LockJavaNetty
0 likes · 12 min read

This article details Tongcheng Travel's cloud‑native migration journey, describing the challenges of resource quota management, component versioning, and operational automation, and explains how a Kubernetes Operator platform built with Go, kubebuilder, and a watch‑broadcast mechanism addresses these issues while outlining future expansion plans.
Configuration ManagementGoKubernetes
0 likes · 9 min read

This article explains how Redisson extends Redis to provide a rich set of distributed Java objects and services, walks through integrating Redisson into a Spring Boot project, demonstrates various lock types (reentrant, read‑write, semaphore, latch) with code examples, and details the internal watchdog mechanism that guarantees atomic lock acquisition and automatic renewal.
Distributed LockJavaRedis
0 likes · 19 min read

This article explains why distributed locks are needed, outlines their five essential properties, compares common implementation methods such as database, ZooKeeper, and Redis locks, and provides Java code examples for acquiring, releasing, re‑entering, and safely extending locks with watchdog mechanisms.
JavaRedisReentrancy
0 likes · 20 min read


JD TechMay 4, 2023 · Backend Development
This article explains why distributed locks are needed, describes the five essential characteristics of Redis locks, compares three common implementation methods, and provides detailed Java code examples with watchdog, re‑entrancy, and expiration handling to guide developers in building reliable distributed locking solutions.
ConcurrencyDistributed LockLua
0 likes · 21 min read

This article explains the concept of distributed locks, compares them with local JVM locks, outlines essential properties, demonstrates simple Redis-based lock implementations using SETNX and Lua scripts, discusses lock expiration and renewal, and introduces Redisson's advanced features such as automatic watchdog renewal and the Redlock algorithm.
Distributed LockJavaRedLock
0 likes · 13 min read

This article explains how Redisson implements distributed locks on Redis, covering basic concepts, a simple lock with Lua scripts, reentrancy handling, automatic lock renewal via WatchDog, and the advanced fair lock mechanism that ensures FIFO ordering using Redis lists and sorted sets.
Distributed LockFair LockJava
0 likes · 31 min read

This article explains how Redisson provides Redis‑based distributed locks, covering atomic lock acquisition via Lua scripts, lease time handling, watchdog auto‑extension, re‑entrant and fair locks, read‑write locks, multi‑lock batching, and the RedLock algorithm for high‑availability scenarios.
Fair LockLua ScriptRedis
0 likes · 24 min read

This article explains the Redisson library’s distributed lock implementation in Java, covering its basic concepts, custom lock creation with Lua scripts, reentrant and fair lock mechanisms, the watchdog renewal process, and practical usage examples with code snippets.
Distributed LockFair LockLua
0 likes · 30 min read

This article explains how Redisson implements distributed locks on Redis, covering basic lock concepts, custom Lua scripts for lock acquisition and release, re‑entrant behavior, the automatic lock‑renewal watchdog, and the design of a fair lock using Redis lists and sorted sets.
Distributed LockFair LockJava
0 likes · 29 min read

This article provides a comprehensive guide to Redisson's distributed lock implementation in Java, covering its architecture, basic and reentrant lock mechanisms, fair lock using Redis lists and sorted sets, lock renewal via watchdog, and detailed code examples with Lua scripts.
Fair LockJavaRedis
0 likes · 36 min read

This article explains how Redisson implements distributed locks on Redis, covering basic concepts, differences from Jedis and Lettuce, the Lua scripts for lock acquisition, reentrancy handling, automatic lease renewal via a watchdog, Pub/Sub based unlock notifications, and the design of a fair lock using Redis lists and sorted sets.
Distributed LockFair LockRedis
0 likes · 30 min read

Redis can be used to create a distributed lock by storing a unique key-value pair with an expiration time, and Redisson enhances this with a watchdog mechanism that automatically renews the lock, handling lock acquisition, expiration, and release through Lua scripts and subscription-based waiting.
ConcurrencyDistributed LockJava
0 likes · 11 min read

The article dissects Android black-screen and freeze problems by explaining the VSync/Choreographer rendering pipeline, ANR timeout rules, System Server Watchdog monitoring, Handler‑Looper messaging, input event flow, and Window Management Service focus handling, offering developers systematic debugging techniques for these UI stalls.
ANRAndroidBlack Screen
0 likes · 13 min read

This article explains the definitions, causes, and monitoring strategies for iOS app freezes and lags, describes the Heimdallr solution based on Runloop event callbacks, discusses ANR and WatchDog handling, and presents practical optimizations and lessons learned for reliable performance monitoring.
ANRHeimdallrRunLoop
0 likes · 13 min read

This article explains how to implement a distributed lock using Redis by setting a unique key-value pair, handling expiration, addressing lock timeout issues, and leveraging Redisson's watchdog mechanism with automatic renewal, including detailed code examples for tryLock, subscription, and renewal processes.
Distributed LockJavaRedis
0 likes · 9 min read

Redis distributed locks rely on a key-value marker with unique client IDs, expiration times, and careful release checks; the article explores lock timeout challenges, automatic renewal via watchdog mechanisms, Redisson's tryLock implementation, Lua‑based renewal scripts, and best practices to avoid deadlocks and resource waste.
ConcurrencyDistributed LockJava
0 likes · 11 min read

This article explains how to implement a distributed lock using Redis, discusses challenges with lock expiration, describes automatic renewal techniques such as watchdog mechanisms, and provides detailed Java code examples of Redisson's tryLock and renewal processes.
ConcurrencyDistributed LockJava
0 likes · 12 min read

This article explains how to implement a Redis-based distributed lock, discusses the challenges of lock expiration, introduces automatic renewal strategies such as watchdogs, and provides detailed Redisson tryLock and renewal code examples for reliable concurrency control.
JavaRedisRedisson
0 likes · 12 min read

This article explains the relationship between UI stutter and ANR, critiques common monitoring tools, and presents three robust Android lag‑detection methods—WatchDog polling, Looper Printer replacement, and specialized handlers for IdleHandler, TouchEvent, and SyncBarrier leaks—complete with probability analysis and sample code.
ANRAndroidIdleHandler
0 likes · 17 min read

This article explains the concept of deadlocks, illustrates classic scenarios such as the dining philosophers problem, shows common lock‑order and multi‑object deadlocks with Java code examples, and details Android's WatchDog mechanism and practical techniques for detecting and avoiding deadlocks in mobile applications.
ConcurrencyJavaWatchdog
0 likes · 21 min read

This article explains the principles, design considerations, and code implementation of Redisson's distributed lock, covering mutual exclusion, deadlock prevention, performance, reentrancy, watchdog auto‑extension, Lua scripting, and potential pitfalls in Redis sentinel setups.
JavaRedisRedisson
0 likes · 8 min read

This article explains what ANR is, outlines its three trigger conditions, describes the system's ANR execution flow, compares FileObserver and WatchDog monitoring techniques, shows how to analyze ANR logs and main‑thread stack traces, and provides practical guidelines to avoid ANR in Android applications.
ANRAndroidFileObserver
0 likes · 9 min read
