Tagged articles
44 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Feb 21, 2026 · Backend Development

10 Common Pitfalls When Streaming JSON in Node.js and Safer Patterns

This guide enumerates ten frequent traps encountered when streaming JSON in Node.js—such as assuming one chunk per object, UTF‑8 split issues, missing newline delimiters, back‑pressure overload, and handling of large numbers—and presents reliable patterns like using NDJSON framing, StringDecoder, pipeline, and proper error handling to avoid data loss and memory spikes.

JSONNDJSONNode.js
0 likes · 13 min read
10 Common Pitfalls When Streaming JSON in Node.js and Safer Patterns
DeWu Technology
DeWu Technology
Feb 9, 2026 · Big Data

How to Build a Production‑Ready Flink ClickHouse Sink with Dynamic Sharding, Batch‑by‑Size, and Robust Retry

This article presents a production‑grade Flink ClickHouse sink that solves common pain points such as lack of size‑based batching, static table schemas, and distributed‑table latency by introducing data‑size batching, dynamic table routing, local‑table writes, load‑balanced node discovery, back‑pressure queues, dual‑trigger flush, and recursive retry with node exclusion, all integrated with Flink checkpoint semantics for at‑least‑once guarantees.

BatchingCheckpointDynamic Sharding
0 likes · 25 min read
How to Build a Production‑Ready Flink ClickHouse Sink with Dynamic Sharding, Batch‑by‑Size, and Robust Retry
Architect's Must-Have
Architect's Must-Have
Sep 15, 2025 · Big Data

Mastering Spark Streaming Rate Control: A Deep Dive into Backpressure

This article explains Spark Streaming's rate control mechanisms, covering static limits, the dynamic back‑pressure feature introduced in Spark 1.5, the PID‑based estimator, RPC communication, and how Guava's token‑bucket RateLimiter enforces the calculated thresholds to ensure stability and optimal throughput.

RateControlSparkStreaming
0 likes · 13 min read
Mastering Spark Streaming Rate Control: A Deep Dive into Backpressure
Java Architect Essentials
Java Architect Essentials
Jul 12, 2025 · Backend Development

Why Reactive Programming Fails Without Backpressure and How to Fix It

During high‑traffic spikes, traditional servlet‑based services often crash due to thread‑pool exhaustion, while reactive systems using Reactor can still fail if backpressure is ignored; this article explains the pitfalls, compares models, and provides practical backpressure solutions such as dynamic rate limiting, bounded buffering, and circuit breaking.

Circuit BreakingReactorbackpressure
0 likes · 11 min read
Why Reactive Programming Fails Without Backpressure and How to Fix It
Java Architect Essentials
Java Architect Essentials
Jul 7, 2025 · Backend Development

Mastering Backpressure in Reactive Java: Prevent OOM and Crashes

During high‑traffic spikes, traditional servlet thread‑pool systems often collapse, but simply switching to Reactor isn’t enough; without proper backpressure control you’ll still face OOM and outages—this article explains why backpressure matters and offers practical dynamic rate‑limiting, bounded buffering, and circuit‑breaker solutions.

Spring Reactorbackpressurereactive-programming
0 likes · 12 min read
Mastering Backpressure in Reactive Java: Prevent OOM and Crashes
Code Mala Tang
Code Mala Tang
Jun 27, 2024 · Frontend Development

Mastering ReadableStream: A Deep Dive into Web Streams API

This article introduces the concept of streams, explains the Web Streams API and its ReadableStream component, details constructors, methods, queuing strategies, back‑pressure handling, BYOB and byte streams, and provides practical code examples and usage scenarios for modern web development.

Front-endReadableStreamStreaming
0 likes · 20 min read
Mastering ReadableStream: A Deep Dive into Web Streams API
Selected Java Interview Questions
Selected Java Interview Questions
Jul 18, 2023 · Backend Development

Understanding Reactive Streams: Data Flow, Backpressure, and Core Interfaces

This article explains the concept of data streams, compares pull and push processing models, discusses flow‑control and backpressure mechanisms, evaluates queue choices, and details the core Reactive Streams interfaces (Publisher, Subscriber, Subscription) with example code and references to popular libraries.

AsynchronousData FlowPublisher
0 likes · 7 min read
Understanding Reactive Streams: Data Flow, Backpressure, and Core Interfaces
Big Data Technology & Architecture
Big Data Technology & Architecture
Apr 4, 2023 · Big Data

Understanding Flink’s Data Flow: Buffer Pools, Network Transfer, and Credit‑Based Flow Control

This article explains Flink’s internal data abstraction and transfer mechanisms, detailing how data moves between operators via network buffers, the role of ByteBuffer and NetworkBufferPool, the serialization process, Netty integration, and credit‑based flow control to handle backpressure.

Big DataCredit-based Flow ControlData Flow
0 likes · 10 min read
Understanding Flink’s Data Flow: Buffer Pools, Network Transfer, and Credit‑Based Flow Control
ByteDance SYS Tech
ByteDance SYS Tech
Mar 23, 2023 · Backend Development

From Token Buckets to Carousel: Solving Rate Limiter Challenges in High‑Performance Networks

This article reviews the fundamentals of token‑bucket rate limiters, identifies precision, cascading compensation, and TCP‑loss sensitivity issues, and details two major improvements—port‑loan backpressure and the Carousel algorithm—while outlining future directions for more reliable network traffic shaping.

DPDKToken Bucketbackpressure
0 likes · 14 min read
From Token Buckets to Carousel: Solving Rate Limiter Challenges in High‑Performance Networks
New Oriental Technology
New Oriental Technology
Apr 27, 2022 · Backend Development

Introduction to RxJava: Concepts, Operators, and Backpressure

This article introduces RxJava as a reactive functional programming framework based on the observer pattern, explains its core concepts, stream types, a wide range of operators, backpressure strategies, and demonstrates its practical use for data migration between MongoDB and MySQL.

RxJavabackpressurejava
0 likes · 22 min read
Introduction to RxJava: Concepts, Operators, and Backpressure
Big Data Technology & Architecture
Big Data Technology & Architecture
Jan 12, 2022 · Big Data

Common Production Issues and Troubleshooting Guide for Apache Flink

This article compiles a comprehensive list of common production problems encountered with Apache Flink, covering cluster sizing, checkpoint failures, backpressure analysis, resource allocation, deployment errors, UDF definitions, data skew, Kafka configurations, and provides detailed troubleshooting steps and best‑practice recommendations.

Apache FlinkCheckpointKafka
0 likes · 39 min read
Common Production Issues and Troubleshooting Guide for Apache Flink
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 20, 2021 · Big Data

Comprehensive Overview of Apache Flink Concepts, Mechanisms, and Interview Questions

This article provides an extensive technical guide to Apache Flink, covering its exactly‑once consumption guarantees, checkpoint and two‑phase commit mechanisms, differences from Spark, state backends, watermark handling, time semantics, window joins, CEP, backpressure, architecture layers, deployment, resource management, and common operational issues.

Big DataCEPCheckpoint
0 likes · 77 min read
Comprehensive Overview of Apache Flink Concepts, Mechanisms, and Interview Questions
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 16, 2021 · Big Data

Flink Checkpoint, Backpressure, and Memory Tuning Guide

This article provides a comprehensive guide on optimizing Flink checkpoints, diagnosing and alleviating backpressure, and fine‑tuning memory configurations—including process, heap, off‑heap, managed, and network memory—to improve job stability and performance in large‑scale streaming applications.

CheckpointFlinkMemory Tuning
0 likes · 25 min read
Flink Checkpoint, Backpressure, and Memory Tuning Guide
360 Tech Engineering
360 Tech Engineering
Oct 15, 2021 · Operations

Log Collection Architecture Using Filebeat, Logstash, and Kafka

This article describes a lightweight, resource‑efficient log collection solution that combines Filebeat agents, optional Logstash aggregation, and Kafka transport, detailing configuration choices, meta‑persistence, back‑pressure mechanisms, monitoring setup, and deployment architecture for reliable at‑least‑once delivery.

FilebeatLogstashOperations
0 likes · 14 min read
Log Collection Architecture Using Filebeat, Logstash, and Kafka
Big Data Technology & Architecture
Big Data Technology & Architecture
Sep 2, 2021 · Big Data

Understanding Network Flow Control and Flink's Backpressure Mechanisms

This article explains the concepts and background of network flow control, compares static rate limiting with dynamic feedback backpressure, describes TCP's sliding‑window mechanism, and details how Flink implements both TCP‑based and credit‑based backpressure to handle mismatched upstream‑downstream speeds in streaming applications.

Credit-basedFlinkNetwork Flow Control
0 likes · 16 min read
Understanding Network Flow Control and Flink's Backpressure Mechanisms
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 16, 2020 · Big Data

Understanding Spark Streaming Backpressure Mechanism and Source Code Analysis

This article explains why Spark Streaming introduced backpressure, how the dynamic rate‑control mechanism works, and provides a detailed walkthrough of the relevant source code, including the RateController class, its registration, and the execution flow that adjusts ingestion rates to match processing capacity.

RateControllerRateLimiterSpark
0 likes · 14 min read
Understanding Spark Streaming Backpressure Mechanism and Source Code Analysis
Programmer DD
Programmer DD
Oct 30, 2020 · Backend Development

Why Reactive Programming Is the Future of High-Concurrency Java Development

This article explains how reactive programming, introduced by Microsoft in 2009 and adopted by Java through frameworks like RxJava and Spring Reactor, addresses high‑concurrency server‑side challenges, clarifies concepts such as backpressure, and compares Reactor with RxJava for modern backend engineers.

RxJavaSpring Reactorbackpressure
0 likes · 13 min read
Why Reactive Programming Is the Future of High-Concurrency Java Development
Programmer DD
Programmer DD
Oct 29, 2020 · Backend Development

Why Reactive Programming Is the Future of High‑Concurrency Java Development

This article explains how reactive programming, introduced by Microsoft in 2009 and adopted by Java through Spring Reactor and RxJava, addresses high‑concurrency server‑side challenges by using event‑driven, back‑pressure‑aware streams, and compares the key differences between Reactor and RxJava.

Java concurrencyRxJavaSpring Reactor
0 likes · 12 min read
Why Reactive Programming Is the Future of High‑Concurrency Java Development
Alibaba Cloud Developer
Alibaba Cloud Developer
May 21, 2020 · Backend Development

Why Reactive Programming Matters: Principles, Benefits & Getting Started

This article explains what reactive programming is, outlines the Reactive Manifesto's four core principles, describes the Reactive Streams standard and its key interfaces, showcases Java code examples with Reactor, and provides practical guidance for adopting reactive architectures in backend systems.

AsynchronousReactive StreamsReactor
0 likes · 13 min read
Why Reactive Programming Matters: Principles, Benefits & Getting Started
Big Data Technology & Architecture
Big Data Technology & Architecture
Apr 19, 2020 · Big Data

Understanding the Backpressure Mechanism in Spark Streaming

This article explains Spark Streaming's backpressure mechanism, detailing how batch intervals can cause data accumulation, the role of Receivers versus DirectKafkaInputDStream, configuration to enable backpressure, and the internal workings of RateController, ReceiverRateController, ReceiverSupervisor, BlockGenerator, and rate calculations for Kafka streams.

Big DataKafkaRateController
0 likes · 12 min read
Understanding the Backpressure Mechanism in Spark Streaming
Python Programming Learning Circle
Python Programming Learning Circle
Feb 20, 2020 · Backend Development

Understanding Backpressure in Asynchronous Systems

Backpressure, the resistance to data flow in overloaded systems, is crucial for reliable asynchronous programming; this article explains its concepts, illustrates pitfalls in Python asyncio and other languages, and presents strategies such as buffering, draining, semaphores, and protocol-level flow control to manage overload.

AsyncFlow ControlPython
0 likes · 16 min read
Understanding Backpressure in Asynchronous Systems
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 14, 2019 · Big Data

Comparison of Flink and Spark Structured Streaming: Joins, State Management, Fault Tolerance, and Backpressure

This article compares Flink and Spark Structured Streaming, detailing their differences in join capabilities, state management, fault‑tolerance mechanisms, exactly‑once semantics, back‑pressure handling, and table registration, while providing code examples and practical insights for real‑time big‑data processing.

Big DataFlinkJOIN
0 likes · 13 min read
Comparison of Flink and Spark Structured Streaming: Joins, State Management, Fault Tolerance, and Backpressure
Sohu Tech Products
Sohu Tech Products
Jun 5, 2019 · Backend Development

Understanding RxJava2 Backpressure Strategies and Flowable Implementation

This article explains RxJava2's backpressure mechanisms, compares the five Flowable strategies (MISSING, ERROR, BUFFER, DROP, LATEST), demonstrates their behavior with practical experiments, and shows how to use Subscription and FlowableEmitter to build a demand‑driven, memory‑safe data pipeline.

FlowableRxJavabackpressure
0 likes · 20 min read
Understanding RxJava2 Backpressure Strategies and Flowable Implementation
Sohu Tech Products
Sohu Tech Products
Jun 5, 2019 · Mobile Development

Understanding RxJava2: Core Concepts, Thread Scheduling, Backpressure, Transformers, and Hot vs Cold Observables

This article provides a comprehensive overview of RxJava2 for Android, covering its observer types, backpressure strategies, thread‑scheduling transformers, the compose() operator, differences between compose and flatMap, and the distinction between hot and cold observables with practical code examples.

AndroidObservablesRxJava2
0 likes · 6 min read
Understanding RxJava2: Core Concepts, Thread Scheduling, Backpressure, Transformers, and Hot vs Cold Observables
Big Data Technology & Architecture
Big Data Technology & Architecture
Jan 2, 2019 · Big Data

Understanding Spark Streaming Backpressure Mechanism

The article explains how Spark Streaming backpressure, introduced in version 1.5, automatically adjusts data ingestion rates based on processing delays, replaces manual rate limits, and details its architecture, configuration parameters, and usage for preventing data backlog and executor OOM.

Big DataRate ControlSpark
0 likes · 6 min read
Understanding Spark Streaming Backpressure Mechanism
Meitu Technology
Meitu Technology
Aug 2, 2018 · Big Data

Spark Streaming vs Flink – Architecture, Scheduling & Fault Tolerance

This article compares Spark Streaming and Flink across runtime models, component roles, programming APIs, task scheduling, time semantics, dynamic Kafka partition detection, fault‑tolerance mechanisms, exactly‑once guarantees, and back‑pressure handling, providing code examples and practical insights for real‑time data processing.

Dynamic Partition DetectionExactly-OnceFlink
0 likes · 23 min read
Spark Streaming vs Flink – Architecture, Scheduling & Fault Tolerance
Meituan Technology Team
Meituan Technology Team
Jul 15, 2016 · Backend Development

Understanding Node.js Stream API: Types, Back‑Pressure, and Object Mode

The article explains Node.js’s Stream API by detailing the four core stream classes—Readable, Writable, Duplex, and Transform—showing how to implement them, manage back‑pressure, enable objectMode, and apply these concepts in real‑world tools like Gulp, Browserify, and a Git‑changelog generator.

DuplexNode.jsObjectMode
0 likes · 6 min read
Understanding Node.js Stream API: Types, Back‑Pressure, and Object Mode
Meituan Technology Team
Meituan Technology Team
Jul 15, 2016 · Backend Development

Node.js Stream Internals: Data Production, Consumption, and Back‑pressure

The article explains Node.js stream internals, showing how readable, writable, and transform streams manage data production and consumption, the roles of _read, read, push, and doRead, the two operating modes, and how pipe implements back‑pressure via high‑water marks to ensure memory‑safe, efficient processing.

Node.jsPipeStream
0 likes · 22 min read
Node.js Stream Internals: Data Production, Consumption, and Back‑pressure
Node Underground
Node Underground
Dec 31, 2015 · Backend Development

When Does Node.js’s drain Event Fire? A Deep Dive into Stream Backpressure

This article investigates the conditions under which Node.js’s drain event is emitted, explores its relationship with socket.write’s return value and highWaterMark, demonstrates experiments with TCP and HTTP streams, and shows how to implement proper back‑pressure handling using pause/resume or pipe.

Node.jsbackend-developmentbackpressure
0 likes · 13 min read
When Does Node.js’s drain Event Fire? A Deep Dive into Stream Backpressure
Qunar Tech Salon
Qunar Tech Salon
Apr 21, 2015 · Backend Development

Understanding Netty Pitfalls: Autoread, isWritable, and Serialization

This article explains Netty's autoread switch, isWritable back‑pressure mechanism, and serialization strategies, showing how to control read/write rates, avoid thread‑pool overload, and reduce memory copies when handling TCP byte streams in high‑performance Java network applications.

Networkingbackpressureconcurrency
0 likes · 14 min read
Understanding Netty Pitfalls: Autoread, isWritable, and Serialization