Tagged articles
26 articles
Page 1 of 1
FunTester
FunTester
Nov 6, 2025 · Frontend Development

Mastering Event Bus: Decoupled Communication in Frontend Development

This article explains the concept of an Event Bus, when to apply it in frontend projects, provides a full JavaScript implementation, demonstrates its use with a login scenario, and outlines best practices and pitfalls for maintaining clean, decoupled code.

DecouplingJavaScriptPublish-Subscribe
0 likes · 11 min read
Mastering Event Bus: Decoupled Communication in Frontend Development
Ops Community
Ops Community
Jun 20, 2025 · Fundamentals

Master MQTT: From Protocol Basics to Powerful Client Tools

This article explains the lightweight publish/subscribe MQTT protocol, its origin, key features, usage scenarios, differences from traditional message queues, topic structures and wildcards, as well as practical client tools like Mosquitto and MQTTX with configuration examples.

IoTMQTTPublish-Subscribe
0 likes · 15 min read
Master MQTT: From Protocol Basics to Powerful Client Tools
macrozheng
macrozheng
Jan 17, 2025 · Backend Development

Mastering Spring Event: Avoid Pitfalls and Ensure Reliable Publish‑Subscribe

This article shares hard‑won lessons from production incidents and provides practical guidelines—graceful shutdown, proper startup timing, suitable business scenarios, reliability patterns, and idempotent handling—to use Spring Event safely and effectively in Java backend systems.

BackendEventIdempotence
0 likes · 12 min read
Mastering Spring Event: Avoid Pitfalls and Ensure Reliable Publish‑Subscribe
Open Source Linux
Open Source Linux
May 7, 2024 · Fundamentals

What Is MQTT and Why It Powers Modern IoT Solutions

This article explains MQTT’s lightweight publish‑subscribe protocol, its architecture, key features, QoS levels, typical IoT use cases, and why it’s preferred over HTTP for low‑bandwidth, low‑power applications, including examples from agriculture, industrial automation, transportation, and even social messaging platforms like Facebook Messenger.

IoTMQTTMessaging Protocol
0 likes · 12 min read
What Is MQTT and Why It Powers Modern IoT Solutions
Test Development Learning Exchange
Test Development Learning Exchange
Sep 28, 2023 · Fundamentals

Observer Pattern and Publish‑Subscribe Pattern in Python with Practical Examples

This article explains the Observer and Publish‑Subscribe design patterns, compares their concepts and implementations, and provides ten practical Python code examples ranging from simple event notification to distributed messaging with libraries such as pubsub, redis, asyncio, Flask, threading, ZeroMQ, and PySide2.

Observer PatternPublish-Subscribeevent-handling
0 likes · 11 min read
Observer Pattern and Publish‑Subscribe Pattern in Python with Practical Examples
php Courses
php Courses
Jul 8, 2023 · Backend Development

Introduction to MQTT and PHP Implementation Example

MQTT is a lightweight, publish/subscribe messaging protocol ideal for IoT and mobile environments, offering low bandwidth usage, reliability, and TLS/SSL security, and the article provides a detailed PHP example demonstrating connection, subscription, publishing, message processing, and graceful disconnection.

IoTMQTTMessaging
0 likes · 4 min read
Introduction to MQTT and PHP Implementation Example
Inke Technology
Inke Technology
May 25, 2023 · Backend Development

How to Build a Scalable Task System with Kafka and Pub/Sub

This article explains how to design and implement a basic task system—covering task configuration, display, progress tracking, and reward collection—while using Kafka for decoupling services and a publish/subscribe event layer to keep task logic independent of event sources.

Event-drivenKafkaPublish-Subscribe
0 likes · 8 min read
How to Build a Scalable Task System with Kafka and Pub/Sub
Huolala Tech
Huolala Tech
Mar 28, 2023 · Frontend Development

How to Optimize React Context to Prevent Unnecessary Re‑renders

Learn how to effectively use React Context for state management, avoid props drilling, and eliminate redundant re‑renders by implementing a custom publish‑subscribe store, selector hooks, and performance optimizations similar to libraries like zustand.

Performance OptimizationPublish-SubscribeReact
0 likes · 11 min read
How to Optimize React Context to Prevent Unnecessary Re‑renders
Sohu Tech Products
Sohu Tech Products
Oct 19, 2022 · Fundamentals

Understanding the Observer Pattern with Go Code Examples

This article explains the Observer (publish‑subscribe) pattern, illustrates it with a humorous dialogue, provides complete Go interface and struct implementations for subjects and observers, shows sample client code and output, and discusses practical refactoring using the pattern for configuration changes.

GoObserver PatternPublish-Subscribe
0 likes · 8 min read
Understanding the Observer Pattern with Go Code Examples
Alibaba Terminal Technology
Alibaba Terminal Technology
Apr 25, 2022 · Backend Development

How RTMS Revolutionizes Real‑Time Messaging for Massive Interactive Apps

RTMS (Real Time Message Service) is a frame‑synchronization‑based real‑time communication solution that offloads logic from the server, uses in‑memory processing, and employs decentralized, non‑persistent, publish‑subscribe routing to dramatically improve latency, scalability, and interactivity for high‑frequency multi‑user scenarios.

Backend ArchitectureDecentralizationDistributed Systems
0 likes · 10 min read
How RTMS Revolutionizes Real‑Time Messaging for Massive Interactive Apps
macrozheng
macrozheng
Apr 13, 2021 · Fundamentals

Master the Observer Pattern in Java: Theory, Code, and Real‑World Example

This article explains the Observer pattern, compares it with the Publish‑Subscribe model, showcases Java's built‑in Observable and Observer classes, provides complete code examples, and discusses practical considerations such as memory leaks and performance optimizations.

Design PatternsEvent-drivenJDK
0 likes · 10 min read
Master the Observer Pattern in Java: Theory, Code, and Real‑World Example
Big Data Technology & Architecture
Big Data Technology & Architecture
Jun 4, 2020 · Big Data

Kafka for Data Ingestion and Event Distribution: Production‑Consumer and Publish‑Subscribe Patterns

This article explains how Kafka can be used for data ingestion and event distribution by illustrating production‑consumer and publish‑subscribe models, describing core concepts such as topics, partitions and consumer groups, and offering practical design options for handling different event scenarios.

Big DataEvent DistributionKafka
0 likes · 9 min read
Kafka for Data Ingestion and Event Distribution: Production‑Consumer and Publish‑Subscribe Patterns
MaGe Linux Operations
MaGe Linux Operations
May 30, 2020 · Big Data

What Is Kafka? A Deep Dive into Distributed Streaming and Messaging

Kafka is an Apache‑hosted distributed streaming platform that provides high‑throughput, durable, publish‑subscribe messaging, originally developed by LinkedIn; this article explains its core concepts, message system classifications, architecture components, APIs, replication, consumer groups, and guarantees, comparing it with other messaging solutions.

Big DataDistributed StreamingKafka
0 likes · 17 min read
What Is Kafka? A Deep Dive into Distributed Streaming and Messaging
Architects Research Society
Architects Research Society
Apr 26, 2020 · Fundamentals

Understanding MQTT and CoAP: When to Use Each IoT Protocol

MQTT and CoAP are lightweight IoT communication protocols with distinct architectures—MQTT uses a publish/subscribe model ideal for WAN scenarios and bandwidth‑constrained devices, while CoAP follows a request/response pattern suited for local networks and HTTP compatibility, and the article explains their differences and appropriate use cases.

CoAPIoT protocolsMQTT
0 likes · 6 min read
Understanding MQTT and CoAP: When to Use Each IoT Protocol
Programmer DD
Programmer DD
Mar 26, 2020 · Backend Development

How Zhihu Built a Scalable Long‑Connection Gateway for Real‑Time Messaging

Zhihu’s infrastructure team designed a high‑performance, scalable long‑connection gateway that decouples business logic via publish‑subscribe, leverages OpenResty, Kafka, and Redis, implements fine‑grained ACL, sliding‑window flow control, and ensures message reliability and horizontal scalability for millions of concurrent devices.

KafkaMessage ReliabilityOpenResty
0 likes · 15 min read
How Zhihu Built a Scalable Long‑Connection Gateway for Real‑Time Messaging
360 Tech Engineering
360 Tech Engineering
Feb 21, 2020 · Backend Development

Understanding Message Middleware: Queue and Publish‑Subscribe Styles

This article explains how modern message middleware works by describing the two primary communication styles—message queuing and publish‑subscribe—illustrating each with examples, comparing their characteristics, and listing common middleware products to help developers choose the appropriate solution for their backend systems.

Distributed SystemsMessage QueuePublish-Subscribe
0 likes · 5 min read
Understanding Message Middleware: Queue and Publish‑Subscribe Styles
Java Captain
Java Captain
Jun 15, 2019 · Backend Development

Why Message Queues Are Needed and an Introduction to Kafka

This article explains the motivations behind using message‑queue middleware, outlines its benefits such as decoupling, asynchronous processing and peak‑shaving, describes point‑to‑point and publish‑subscribe communication models, and provides a detailed overview of Kafka’s architecture, terminology, data flow, storage strategy, and consumer group mechanics.

BackendKafkaPublish-Subscribe
0 likes · 15 min read
Why Message Queues Are Needed and an Introduction to Kafka
Tencent Cloud Developer
Tencent Cloud Developer
Sep 18, 2018 · Backend Development

MQTT: The Nervous System of IoT – Overview and Key Features

MQTT is a lightweight, open‑source publish/subscribe protocol that powers the IoT’s global nervous system by delivering small‑header messages over TCP/IP with configurable QoS, low bandwidth, and optional TLS security, making it ideal for battery‑constrained devices, scalable deployments, and real‑time applications such as home monitoring.

IoTMQTTMessaging Protocol
0 likes · 10 min read
MQTT: The Nervous System of IoT – Overview and Key Features
JD Tech
JD Tech
Apr 2, 2018 · Backend Development

Introduction to MQTT and JMQ’s MQTT Support Architecture

This article introduces the MQTT protocol, outlines its key characteristics, explains the challenges it poses for IoT messaging, and details how JMQ addresses these challenges through a layered proxy‑broker architecture, subscription management, quality‑of‑service handling, and real‑world JD deployment.

BrokerIoTJMQ
0 likes · 8 min read
Introduction to MQTT and JMQ’s MQTT Support Architecture
Programmer DD
Programmer DD
Aug 19, 2017 · Backend Development

Decoupling Business Logic with Domain Events Using Guava EventBus

This article explains how to apply Domain‑Driven Design's domain events to separate reply handling from push notification logic, discusses the shortcomings of embedding side‑effects directly, compares Spring and Guava event mechanisms, and provides a custom Guava‑based publisher implementation with synchronous and asynchronous buses.

Domain EventsDomain-Driven DesignEventBus
0 likes · 8 min read
Decoupling Business Logic with Domain Events Using Guava EventBus
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 21, 2017 · Backend Development

Mastering Producer‑Consumer and Pub/Sub with RabbitMQ: Real‑World Patterns Explained

This article explains the producer‑consumer and publish‑subscribe messaging patterns, introduces RabbitMQ’s core concepts such as exchanges, queues, routing keys, and reliability mechanisms, and demonstrates how to apply these patterns to data ingestion and event distribution scenarios with practical diagrams.

Backend ArchitectureMessage QueueMessaging Patterns
0 likes · 9 min read
Mastering Producer‑Consumer and Pub/Sub with RabbitMQ: Real‑World Patterns Explained
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 21, 2017 · Backend Development

Mastering Kafka: Producer‑Consumer vs Pub/Sub Patterns for Scalable Backend Design

This article explains Kafka's core concepts and compares producer‑consumer and publish‑subscribe models, illustrating how to apply each pattern for data ingestion and event distribution in distributed backend systems, and offers practical design alternatives when Kafka’s native capabilities fall short.

Backend ArchitectureKafkaMessage Queue
0 likes · 10 min read
Mastering Kafka: Producer‑Consumer vs Pub/Sub Patterns for Scalable Backend Design
Qunar Tech Salon
Qunar Tech Salon
Dec 2, 2014 · Backend Development

Understanding EventBus for In‑Process Event Dispatch in Java

This article explains how EventBus replaces explicit publisher‑subscriber registration for in‑process event dispatch in Java, provides a concise code example, a one‑minute migration guide, details on listeners and producers, a terminology table, and a comprehensive FAQ covering usage, design decisions, and testing considerations.

EventBusIn-ProcessJava
0 likes · 11 min read
Understanding EventBus for In‑Process Event Dispatch in Java