Tagged articles
watch
26 articles · Page 1 of 1
This article demonstrates using Arthas to diagnose a Spring Boot service with 100% CPU, memory leaks, and latency spikes, showing step-by-step commands like dashboard, thread, heapdump, trace, and watch to pinpoint dead loops, unbounded caches, and missing SQL indexes, plus emergency hot-patching with redefine.
ArthasCPU profilingJVM troubleshooting
0 likes · 17 min read

While simple logging suffices early on, growing Go projects become too complex for logs alone, so this article explains how the official Go debugger Delve can reveal concurrent execution, reconstruct call chains, and validate refactoring by using conditional breakpoints, watches, goroutine inspection, and IDE integration.
DelveGoIDE integration
0 likes · 9 min read

This article explains why Zookeeper's watch mechanism triggers only once, outlines the performance, reliability, and design reasons behind it, describes its asynchronous eventual consistency, and provides Java code examples for basic watches, manual re‑registration, and using the Curator framework for persistent listeners.
CuratorJavaOne-time Trigger
0 likes · 7 min read

This article provides a comprehensive overview of ZooKeeper, covering its purpose as a distributed coordination service, design objectives such as consistency and reliability, hierarchical data model, session and watch mechanisms, consistency guarantees, leader election and Zab protocol, as well as practical deployment details.
ConsensusLeader ElectionZAB Protocol
0 likes · 20 min read

Redis is ubiquitous in Java development for caching, ranking, and distributed locks, but its transaction model differs from traditional databases; this article explains Redis transaction fundamentals, core commands (MULTI, EXEC, DISCARD, WATCH), common pitfalls, best practices, and interview FAQs to help developers avoid mistakes.
MULTIRedisTransactions
0 likes · 11 min read

This article presents the Vue 3 custom hook useWatchFields, which lets developers monitor specific fields of a large reactive state object with flexible, lightweight, and optionally debounced change detection, simplifying code compared to traditional watch and computed APIs.
Custom HookState Managementwatch
0 likes · 7 min read

Redis, a non‑relational database, implements transaction-like behavior using commands such as MULTI, EXEC, DISCARD, and WATCH, allowing queued execution, optimistic locking, and various rollback granularities, though its semantics differ from traditional relational database transactions.
MULTINoSQLRedis
0 likes · 5 min read

This article analyzes common misuse of Vue 3's watch for handling both synchronous and asynchronous updates, demonstrates how excessive watchers create spaghetti code, and shows how refactoring with computed can streamline logic, improve maintainability, and help new team members onboard faster.
Vuecode qualitycomputed
0 likes · 7 min read

This article explains the purpose and internal implementation of Vue 3’s ref, computed, and reactive APIs, compares their behaviours in script and template contexts, discusses watch strategies, and offers practical guidelines for choosing and modularising these reactive primitives in large‑scale frontend projects.
RefVue3computed
0 likes · 16 min read

The article explains how to use Linux’s watch command to automatically repeat commands at set intervals, customize refresh rates, highlight changes, suppress headers, trigger beeps on errors, and exit on output changes, providing practical examples for monitoring processes, files, and user logins.
System Monitoringautomationcommand-line
0 likes · 6 min read


ITPUBMay 26, 2023 · Databases
This article explains why Redis offers transactions, introduces the five core transaction commands, demonstrates practical examples including WATCH and CAS optimistic locking, and discusses error handling and the reasons Redis does not support rollback.
CASRedisTransactions
0 likes · 9 min read

Learn how to use the Linux watch command to run any command at regular intervals, customize its behavior with options like -n, -d, and -t, and see practical examples such as monitoring memory usage and tracking file changes.
LinuxSystem Monitoringbash
0 likes · 2 min read

This article explains how Vue 3’s reactivity system works—covering the creation of reactive proxies, the role of Ref, the mechanics of computed properties, and the behavior of watch and watchEffect APIs—while illustrating common pitfalls and optimization techniques with code examples and diagrams.
Vue3frontendwatch
0 likes · 21 min read

This article provides a comprehensive Vue 3 composition‑API tutorial covering project initialization, the setup function, reactive and ref utilities, computed properties, watch, provide/inject, template refs, and nextTick, with detailed code examples and explanations.
Composition APIProvide/InjectRef
0 likes · 18 min read

This article introduces Zookeeper's role in high‑concurrency distributed environments, explains its core concepts, installation steps on Linux, key features such as ordered updates and replication, and details its session, znode structures, node types, and watch mechanisms to help developers and ops engineers master its use.
Coordination Serviceinstallationwatch
0 likes · 12 min read

This article introduces k1s, a minimalist Bash‑based Kubernetes dashboard that watches any resource type across namespaces, explains how to install it via Homebrew or a raw script, details its command‑line syntax, walks through the full source code line by line, and discusses its limitations and potential extensions.
DashboardKubernetesbash
0 likes · 15 min read

This article provides a comprehensive guide to using Arthas for Java backend debugging, covering installation, core trace and watch commands, OGNL expression syntax, practical examples for inspecting method calls, accessing static fields, and integrating with Spring context via advanced command techniques.
ArthasBackendDebugging
0 likes · 11 min read

This article uses school‑class analogies to explain ZooKeeper’s role as a third‑party coordinator, describes its tree‑based data model, and details essential features such as watches, session handling, and ephemeral nodes for building reliable backend services.
ZooKeeperbackend developmentdata model
0 likes · 12 min read

This article provides a comprehensive overview of Zookeeper, covering its role in high‑concurrency distributed systems, installation steps on Linux, core features such as ordered updates, replication, fast coordination, as well as detailed explanations of sessions, znodes, node types, and watch mechanisms.
BackendZooKeeperdistributed coordination
0 likes · 13 min read

This article explains Vue.js computed properties and watchers, detailing their definitions, usage scenarios, code examples, differences, deep and immediate options, and when to prefer one over the other for reactive front‑end development.
JavaScriptTutorialVue.js
0 likes · 8 min read

This guide explains how to use Linux commands such as watch, top, and ac to continuously monitor server performance, track user activity, view process resource consumption, and analyze login times, providing practical examples and command options for effective system administration.
acserver monitoringtop
0 likes · 7 min read

This guide explains how to use Linux’s watch command to repeatedly execute a program, customize the interval, highlight output changes, exit on updates, react to non‑zero exit codes, and suppress the header, providing practical examples for each option.
System Monitoringcommand-lineshell
0 likes · 4 min read

This article explains how etcd stores and retrieves multiple revisions of a key using a B‑tree index, details the read and write paths, describes index restoration on startup, and shows how the watch subsystem delivers change events to clients, all illustrated with Go code snippets.
Goetcdkey-value store
0 likes · 20 min read

The article analyzes a reported Kubernetes bug where watch events return non‑monotonic resourceVersion values after deleting early objects, details experiments that failed to reproduce it in version 1.6, explains the underlying code change in 1.7+, and outlines the community fixes introduced in PR #58547.
BackendKubernetesbug
0 likes · 5 min read

The article explains how Baidu Waimai’s CMDB adopts Kubernetes APIServer as a core component to model machine resources as objects, manage their five‑stage lifecycle, and leverage the Watch mechanism for efficient, consistent operations such as hostname changes and fault handling.
CMDBKubernetesLifecycle
0 likes · 9 min read

This article analyzes Etcd's distributed architecture, Raft‑based consistency, storage implementation, watch and lease mechanisms, differences between v2 and v3, and compares it with Zookeeper and Consul, providing practical usage tips and surrounding tooling for developers of distributed systems.
consuldistributed systemsetcd
0 likes · 18 min read
