Tag

Publish-Subscribe

0 views collected around this technical thread.

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.

JavaPublish-SubscribeReliability
0 likes · 12 min read
Mastering Spring Event: Avoid Pitfalls and Ensure Reliable Publish‑Subscribe
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.

Event HandlingObserver PatternPublish-Subscribe
0 likes · 11 min read
Observer Pattern and Publish‑Subscribe Pattern in Python with Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
Aug 2, 2023 · Fundamentals

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

This article explains the concepts, differences, and implementation approaches of the Observer and Publish‑Subscribe design patterns, and provides ten practical Python code examples covering GUI, networking, asynchronous, and distributed scenarios.

Asynchronous ProgrammingEvent HandlingObserver Pattern
0 likes · 11 min read
Observer Pattern and Publish‑Subscribe Pattern in Python with Practical Code 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.

KafkaPublish-SubscribeTask System
0 likes · 8 min read
How to Build a Scalable Task System with Kafka and Pub/Sub
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
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.

JDKJavaObserver Pattern
0 likes · 10 min read
Master the Observer Pattern in Java: Theory, Code, and Real‑World Example
360 Tech Engineering
360 Tech Engineering
Nov 27, 2020 · Fundamentals

Understanding MQTT Publish and Subscribe: Message Formats, QoS Levels, Retain Flags, and Acknowledgments

This article explains how MQTT handles message publishing and subscribing, covering topic structures, QoS levels, retain flags, payload details, duplicate fields, subscription formats, packet identifiers, subscription acknowledgments, and unsubscribe procedures, providing a comprehensive overview of the protocol's messaging workflow.

IoTMQTTMessage Queuing
0 likes · 6 min read
Understanding MQTT Publish and Subscribe: Message Formats, QoS Levels, Retain Flags, and Acknowledgments
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
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.

Message BrokerMessage 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.

DecouplingKafkaMessage Queue
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
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.

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