Tagged articles
360 articles
Page 4 of 4
MaGe Linux Operations
MaGe Linux Operations
Dec 10, 2017 · Backend Development

Build a WeChat Public Account Backend with Python/Django: Step‑by‑Step Guide

This guide walks you through creating a WeChat public‑account subscription service using Python and Django, covering environment setup on CentOS, installing dependencies, configuring the wechat‑python‑sdk, defining URL routes and views, and handling common pitfalls such as external access, encoding issues, and port conflicts.

Backend DevelopmentDjangoPython
0 likes · 5 min read
Build a WeChat Public Account Backend with Python/Django: Step‑by‑Step Guide
21CTO
21CTO
Nov 8, 2017 · Backend Development

Why Microservices Thrive: Benefits, Challenges, and Real-World WeChat Cases

This article explains how rapid internet evolution and cloud era spurred microservice adoption, outlines its key advantages over monolithic designs, highlights operational pain points, and showcases concrete WeChat service‑layout and overload‑protection examples with illustrative diagrams.

WeChatoverload-protectionservice layout
0 likes · 7 min read
Why Microservices Thrive: Benefits, Challenges, and Real-World WeChat Cases
JavaScript
JavaScript
Nov 3, 2017 · Frontend Development

How to Embed Web Pages in Mini-Programs Using the Web-View Component

Developers can now flexibly embed web pages within mini-programs using the web-view component, which fills the entire page as a container, though it currently excludes personal and overseas mini-program types, and the guide shows the required WXML markup to set the source URL.

EmbeddingWeChatfrontend
0 likes · 1 min read
How to Embed Web Pages in Mini-Programs Using the Web-View Component
WeChat Client Technology Team
WeChat Client Technology Team
Oct 18, 2017 · Databases

How WeChat Supercharged Mobile Full‑Text Search with SQLite FTS Optimizations

This article explains the principles of SQLite’s Full‑Text Search extension, details WeChat’s architecture for mobile search, and shares practical performance‑tuning techniques—including custom tokenizers, offset function improvements, and SQL‑level ranking—to achieve sub‑50 ms query times on billions of records.

Full‑Text SearchMobile DevelopmentSQLite
0 likes · 13 min read
How WeChat Supercharged Mobile Full‑Text Search with SQLite FTS Optimizations
21CTO
21CTO
Sep 14, 2017 · Backend Development

How PhxQueue Achieves High‑Availability, High‑Throughput Distributed Queuing with Paxos

PhxQueue is a Tencent‑open‑source, Paxos‑based distributed queue that delivers at‑least‑once delivery, synchronous disk flushing, strict ordering, multi‑subscription, and high throughput, outperforming Kafka in reliability and failover scenarios while supporting massive workloads such as WeChat Pay.

KafkaPaxosWeChat
0 likes · 17 min read
How PhxQueue Achieves High‑Availability, High‑Throughput Distributed Queuing with Paxos
WeChat Client Technology Team
WeChat Client Technology Team
Jun 30, 2017 · Mobile Development

How WeChat Re‑engineered Its Android Architecture for Scalability

This article chronicles the evolution of WeChat's Android architecture from a simple layered design through multi‑process and modular restructurings, explains why a major refactor was needed, and details the new communication, module, and code‑boundary strategies that enable faster development, better isolation, and a lightweight WeChat nano demo.

AndroidGradleMobile Development
0 likes · 28 min read
How WeChat Re‑engineered Its Android Architecture for Scalability
ITPUB
ITPUB
Jun 15, 2017 · Backend Development

How to Send Logs and Alerts to WeChat Using wechat_sender

This guide explains how to install, configure, and use the wechat_sender tool—built on wxpy and Tornado—to forward logs, alerts, and scheduled messages from scripts or web services directly to personal or group WeChat chats.

AlertingAutomationWeChat
0 likes · 5 min read
How to Send Logs and Alerts to WeChat Using wechat_sender
Tencent Architect
Tencent Architect
Mar 30, 2017 · Backend Development

Progressive Image Streaming System Overview in WeChat C2C

The article explains how WeChat C2C’s backend uses progressive JPEG encoding combined with a streaming transmission approach and a dynamically adjustable minimal transport size to reduce image delivery latency and improve user experience under varying network conditions.

Backend ArchitectureWeChatimage streaming
0 likes · 7 min read
Progressive Image Streaming System Overview in WeChat C2C
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Mar 19, 2017 · Frontend Development

Mastering WePY: Complete Guide to Building Mini‑Program Apps

This article introduces the WePY framework for WeChat mini‑programs, covering its purpose, demo projects, quick‑start commands, project structure, component architecture, data binding, event communication, plugin support, and advanced configuration, providing developers with a comprehensive reference for modern mini‑program development.

Component ArchitectureJavaScriptMini Program
0 likes · 16 min read
Mastering WePY: Complete Guide to Building Mini‑Program Apps
Java Backend Technology
Java Backend Technology
Mar 5, 2017 · Operations

How to Use ElastAlert with WeChat: Python, Shell, and Java Plugins

This guide explains why WeChat is popular in China and introduces three ElastAlert plugins (shell, Python, Java) that send alerts via WeChat, compares alert channels, outlines prerequisites, and provides step‑by‑step installation and usage instructions with code examples and screenshots.

AlertingElastAlertJava
0 likes · 4 min read
How to Use ElastAlert with WeChat: Python, Shell, and Java Plugins
21CTO
21CTO
Feb 21, 2017 · Backend Development

How WeChat and Alibaba Handle Billions of Red Packets: High‑Concurrency Architecture Secrets

This article examines the high‑availability architectures behind massive online transaction systems such as Alibaba's Double 11 sales, Alipay and WeChat red packets, detailing the challenges of billions of requests and the engineering solutions that ensure performance, reliability, and security.

Distributed SystemsWeChathigh concurrency
0 likes · 20 min read
How WeChat and Alibaba Handle Billions of Red Packets: High‑Concurrency Architecture Secrets
Architects' Tech Alliance
Architects' Tech Alliance
Feb 7, 2017 · Backend Development

Technical Overview of WeChat Red Packet Distribution System

The article analyzes the massive scale of Chinese New Year red‑packet activity on WeChat, presents usage statistics, and explains the backend architecture—including distributed KV storage, cache‑layer atomic operations, and database transaction handling—that enables high‑throughput red‑packet distribution.

Backend ArchitectureCacheWeChat
0 likes · 5 min read
Technical Overview of WeChat Red Packet Distribution System
Architecture Digest
Architecture Digest
Jan 25, 2017 · Databases

Design and High‑Availability Architecture of the WeChat Red Packet Storage Layer

The article explains how WeChat’s Red Packet service scales to billions of transactions by employing front‑end traffic control, stateless CGI, caching, asynchronous processing, and a highly available MySQL‑based storage layer featuring read/write separation, sharding, hot‑cold data segregation, and multi‑active cross‑region deployment.

WeChatmysqlred packet
0 likes · 10 min read
Design and High‑Availability Architecture of the WeChat Red Packet Storage Layer
WeChat Client Technology Team
WeChat Client Technology Team
Dec 9, 2016 · Operations

How WeChat’s STN Manages Read/Write Timeouts in Mobile Networks

This article explores the design and experimentation of read/write timeout mechanisms in WeChat's STN module, detailing TCP/IP timeout behavior, mobile platform variations, and three layered application‑level strategies—total, stepwise, and dynamic—to improve reliability and user experience on unstable networks.

Mobile NetworkingSTNTCP
0 likes · 13 min read
How WeChat’s STN Manages Read/Write Timeouts in Mobile Networks
WeChat Client Technology Team
WeChat Client Technology Team
Nov 28, 2016 · Mobile Development

How WeChat’s Mars Library Powers Reliable Mobile Networks

WeChat’s Mars library, a C++‑based cross‑platform network component used across Android, iOS, macOS, Windows and more, offers optimized signaling (STN), logging (XLOG), diagnostics (SDT) and core utilities, enabling reliable mobile connections and simplifying development, and will soon be open‑sourced.

C++Mobile NetworkingNetwork Library
0 likes · 10 min read
How WeChat’s Mars Library Powers Reliable Mobile Networks
WeChat Backend Team
WeChat Backend Team
Oct 25, 2016 · Backend Development

Reinventing WeChat’s Distributed Storage with Paxos: Inside the Memory Cloud Upgrade

This article details how WeChat transformed its massive memory‑cloud storage by replacing the QuorumKV NWR protocol with a non‑lease Paxos design, optimizing PaxosLog, adopting DirectIO on HDDs, and implementing operational safeguards, resulting in dramatically lower latency, higher availability, and reduced failure rates.

ConsistencyPaxosWeChat
0 likes · 15 min read
Reinventing WeChat’s Distributed Storage with Paxos: Inside the Memory Cloud Upgrade
Java High-Performance Architecture
Java High-Performance Architecture
Sep 28, 2016 · Frontend Development

Master the Architecture of WeChat Mini Programs: A Quick Guide

This article provides a concise overview of WeChat Mini Program development, detailing the project’s directory structure, file types (js, wxml, wxss, json), core logic layer, data binding, API usage, modularization, and view components with practical code examples to help newcomers quickly grasp the overall design.

JavaScriptMiniProgramWXML
0 likes · 7 min read
Master the Architecture of WeChat Mini Programs: A Quick Guide
Architect
Architect
Jun 23, 2016 · Mobile Development

Analysis of WeChat Sync Protocol and Network Architecture

The article provides a detailed technical analysis of WeChat's communication protocol, describing its SYNC‑based state synchronization, short and long connection designs, packet structures, SyncKey handling, multi‑device login, and differences between mobile and web clients, offering insight for developers and engineers.

WeChatmobile messagingnetwork
0 likes · 18 min read
Analysis of WeChat Sync Protocol and Network Architecture
WeChat Backend Team
WeChat Backend Team
Jun 14, 2016 · Backend Development

How WeChat Generates Trillions of Sequence Numbers with Sub‑Millisecond Latency

This article explains how WeChat’s seqsvr service generates trillions of per‑user sequence numbers with sub‑millisecond latency, detailing its core architecture, pre‑allocation and section‑sharing strategies, engineering implementation with StoreSvr and AllocSvr, and the evolution of its disaster‑recovery designs from primary‑backup to embedded routing tables.

ScalabilitySequenceWeChat
0 likes · 20 min read
How WeChat Generates Trillions of Sequence Numbers with Sub‑Millisecond Latency
21CTO
21CTO
May 16, 2016 · Product Management

From Free Email to WeChat: How Zhang Xiaolong Built China’s Biggest Social App

This article chronicles Zhang Xiaolong’s journey from a modest engineering student and free‑email developer to the mastermind behind WeChat, highlighting his technical experiments, product pivots, and leadership decisions that reshaped China’s social‑media landscape.

Case StudyWeChatZhang Xiaolong
0 likes · 12 min read
From Free Email to WeChat: How Zhang Xiaolong Built China’s Biggest Social App
WeChat Client Technology Team
WeChat Client Technology Team
May 10, 2016 · Information Security

How We Built mmtls: A High‑Performance, Low‑Latency Secure Protocol for WeChat

mmtls is a custom, lightweight secure communication protocol designed for WeChat that encrypts all client‑to‑server traffic, offering confidentiality, integrity, low latency, scalability, and forward secrecy by adapting TLS 1.3 concepts with optimized handshake, key‑exchange, record, and replay‑protection mechanisms.

AuthenticationLow latencyTLS
0 likes · 32 min read
How We Built mmtls: A High‑Performance, Low‑Latency Secure Protocol for WeChat
21CTO
21CTO
Apr 23, 2016 · Backend Development

How WeChat Processed 1.4 B Red Packets per Second: Architecture & Key Lessons

This article examines the massive 2015 WeChat Red Packet traffic, detailing its core functions, system challenges, cross‑region networking, lossy service design, set‑model construction, concurrency handling, and data‑consistency strategies that kept the platform stable under extreme load.

Data ConsistencyScalabilityWeChat
0 likes · 9 min read
How WeChat Processed 1.4 B Red Packets per Second: Architecture & Key Lessons
21CTO
21CTO
Apr 16, 2016 · Backend Development

How WeChat Scaled Red Packets for 80 Billion Transactions: Architecture Secrets

This article explains how WeChat redesigned its red‑packet system for the 2016 Chinese New Year, detailing north‑south data separation, multi‑layer caching, asynchronous settlement, high‑concurrency controls, sharding strategies and graceful degradation to handle billions of red‑packet requests.

CacheWeChatbackend scaling
0 likes · 13 min read
How WeChat Scaled Red Packets for 80 Billion Transactions: Architecture Secrets
Big Data and Microservices
Big Data and Microservices
Apr 12, 2016 · Backend Development

WeChat’s Backend Journey: From Zero to Billions with Scalable Architecture

This article chronicles how WeChat’s backend evolved from a simple messaging prototype to a globally distributed, multi‑data‑center system, detailing its message model, unified sync protocol, three‑layer architecture, platformization, disaster‑recovery design, performance tuning, and emerging resource‑scheduling challenges.

Backend ArchitectureScalable SystemsWeChat
0 likes · 30 min read
WeChat’s Backend Journey: From Zero to Billions with Scalable Architecture
21CTO
21CTO
Mar 31, 2016 · Frontend Development

How to Build a WeChat Enterprise App: From Account Setup to JS SDK Integration

This guide walks you through creating a WeChat Enterprise account, configuring its settings, enabling custom menus, and using the JS‑SDK with proper signature generation, providing step‑by‑step instructions and code snippets for a complete web integration.

APIEnterpriseJS SDK
0 likes · 10 min read
How to Build a WeChat Enterprise App: From Account Setup to JS SDK Integration
21CTO
21CTO
Feb 14, 2016 · Backend Development

Implementing WeChat Red Packet Random Distribution in PHP

This article explores the logic behind WeChat's red‑packet random algorithm, outlines the required constraints, and provides step‑by‑step PHP code that generates fair, varied payouts for a fixed total amount among multiple recipients.

BackendPHPWeChat
0 likes · 6 min read
Implementing WeChat Red Packet Random Distribution in PHP
Qunar Tech Salon
Qunar Tech Salon
Jan 16, 2016 · Backend Development

From Zero to One: The Evolution of WeChat’s Backend System Architecture

This article chronicles the two‑month development of WeChat’s backend from its inception, detailing the design of its message model, data‑sync protocol, three‑tier architecture, asynchronous queues, rapid scaling, platformization, multi‑data‑center deployment, disaster‑recovery strategies, performance optimizations, security hardening, and emerging resource‑scheduling challenges.

Distributed SystemsOperationsWeChat
0 likes · 28 min read
From Zero to One: The Evolution of WeChat’s Backend System Architecture
Architect
Architect
Jan 15, 2016 · Backend Development

WeChat Architecture: Strategies for Massive Scale, Agile Development, and Reliability

The article summarizes Tencent's WeChat technical director Zhou Hao's presentation on how the massive messaging platform achieves rapid growth, high availability, and agile development through a three‑pronged strategy of precise product design, flexible project management, and robust backend technologies such as modular system decomposition, extensible protocols, gray‑release deployment, and comprehensive monitoring.

Agile DevelopmentSystem ArchitectureWeChat
0 likes · 17 min read
WeChat Architecture: Strategies for Massive Scale, Agile Development, and Reliability
21CTO
21CTO
Dec 17, 2015 · Mobile Development

How to Build an Android Plugin that Auto‑Clicks WeChat Red Packets

This tutorial explains how to create an Android AccessibilityService plugin that automatically detects and clicks all WeChat red packets, detailing its stage‑based logic, screen‑content detection, node handling, queue management, and provides complete source code for educational use.

AccessibilityServiceAndroidWeChat
0 likes · 14 min read
How to Build an Android Plugin that Auto‑Clicks WeChat Red Packets
We-Design
We-Design
Dec 15, 2015 · Mobile Development

Build WeChat‑Style Mobile Web Interfaces in Minutes with WeUI

WeUI, the official WeChat design team's component library, offers a collection of native‑look UI elements such as buttons, cells, dialogs, and icons; by integrating its CSS and copying demo markup, developers can quickly create mobile‑friendly web pages that match WeChat’s visual experience without extensive design work.

Component LibraryWeChatWeUI
0 likes · 4 min read
Build WeChat‑Style Mobile Web Interfaces in Minutes with WeUI
21CTO
21CTO
Nov 14, 2015 · Backend Development

How WeChat’s Red Packet System Handles Millions of Claims in Real Time

This article explains the backend architecture behind WeChat’s red‑packet feature, detailing how the system stores packet data, uses cache‑level atomic operations for grabbing, separates claim and settlement steps, and ensures high‑throughput, fault‑tolerant processing during peak usage.

BackendCacheDistributed Systems
0 likes · 6 min read
How WeChat’s Red Packet System Handles Millions of Claims in Real Time
21CTO
21CTO
Nov 13, 2015 · Backend Development

How WeChat Handles Red Packet Grabs: Backend Secrets Revealed

This article explains the backend workflow of WeChat's red packet feature, detailing how the system stores packet data, uses cache and atomic CAS operations for high‑concurrency grabbing, and processes the final settlement in the database.

WeChat
0 likes · 6 min read
How WeChat Handles Red Packet Grabs: Backend Secrets Revealed
21CTO
21CTO
Nov 2, 2015 · Backend Development

How WeChat Scales: Backend Architecture for Ultra‑Low Latency Messaging

The article outlines WeChat’s backend design that achieves seamless, low‑latency messaging through a minimalist sync protocol, efficient notification mechanisms, a three‑tier RPC framework, user‑level thread concurrency, and globally distributed IDC architecture ensuring high availability and eventual consistency.

Backend ArchitectureDistributed SystemsRPC
0 likes · 7 min read
How WeChat Scales: Backend Architecture for Ultra‑Low Latency Messaging
Architect
Architect
Oct 21, 2015 · Backend Development

WeChat Backend Architecture: Synchronization Protocol, RPC Framework, and Multi-IDC Design

The article outlines WeChat’s backend architecture, detailing extreme business requirements such as low latency and power efficiency, challenges of synchronizing diverse data across terminals, and solutions including a minimal sync protocol, high‑efficiency notification mechanisms, a three‑tier backend, unified RPC framework, coroutine‑based high‑concurrency RPC, and multi‑IDC distribution with strong consistency and disaster‑recovery strategies.

Distributed SystemsRPCSynchronization
0 likes · 7 min read
WeChat Backend Architecture: Synchronization Protocol, RPC Framework, and Multi-IDC Design
21CTO
21CTO
Oct 1, 2015 · Backend Development

Inside WeChat Red Packets: User Motives, UI Flow, and Backend Architecture

This article dissects the entire WeChat red‑packet ecosystem, exploring why users send and grab packets, the entry points, detailed UI screens, database schema, random‑distribution algorithms, caching strategies, and the full front‑end/back‑end interaction sequence.

Backend ArchitectureDatabase designUI flow
0 likes · 25 min read
Inside WeChat Red Packets: User Motives, UI Flow, and Backend Architecture
WeChat Client Technology Team
WeChat Client Technology Team
Sep 10, 2015 · Mobile Development

How We Detect and Diagnose Main‑Thread Lag in WeChat iOS

This article explains the causes of UI stutters on iOS, outlines a thread‑stack‑dump monitoring approach, describes detection thresholds, classification methods, sampling strategies, and shares the practical results of deploying the solution in WeChat.

Main ThreadPerformance MonitoringWeChat
0 likes · 10 min read
How We Detect and Diagnose Main‑Thread Lag in WeChat iOS
21CTO
21CTO
Sep 8, 2015 · Product Management

How Zhang Xiaolong Turned WeChat into a Product Empire – Lessons from the Lonely Artist

The article chronicles Zhang Xiaolong’s evolution from a solitary programmer behind Foxmail to the visionary product leader who shaped WeChat, highlighting his artistic mindset, relentless focus on user experience, and the delicate balance between product purity and commercial pressures.

CommercializationWeChatZhang Xiaolong
0 likes · 17 min read
How Zhang Xiaolong Turned WeChat into a Product Empire – Lessons from the Lonely Artist
Qunar Tech Salon
Qunar Tech Salon
Apr 15, 2015 · Mobile Development

The Future of Mobile Messaging Platforms: Insights from Benedict Evans

Benedict Evans analyses how smartphones turned into social platforms, comparing WeChat's app‑as‑platform strategy with Facebook Messenger's message‑as‑app approach, and explores the structural challenges, user‑behavior dynamics, and potential future evolutions of mobile messaging ecosystems.

Facebook MessengerWeChatapp ecosystems
0 likes · 13 min read
The Future of Mobile Messaging Platforms: Insights from Benedict Evans
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
Feb 27, 2015 · Backend Development

How WeChat Processed Over 1 Billion Red Packets: Backend Architecture and High‑Concurrency Strategies

The article explains how WeChat’s backend handled the massive surge of red‑packet traffic during the 2015 New Year by employing loss‑tolerant services, flexible availability, modular design, asynchronous processing, and overload protection to ensure fast, accurate, and stable user experiences.

Backend ArchitectureLossy ServiceScalability
0 likes · 9 min read
How WeChat Processed Over 1 Billion Red Packets: Backend Architecture and High‑Concurrency Strategies
Qunar Tech Salon
Qunar Tech Salon
Feb 5, 2015 · Backend Development

WeChat Architecture: Scaling to Hundreds of Millions Users with Agile Development and Robust Operations

The talk reveals how WeChat achieved rapid growth to over 100 million users by combining precise product timing, an aggressive agile mindset, and a resilient technical backbone built on modular large‑system design, extensible protocols, gray‑release deployment, comprehensive monitoring, and fault‑tolerant disaster‑recovery strategies.

Agile DevelopmentBackendWeChat
0 likes · 17 min read
WeChat Architecture: Scaling to Hundreds of Millions Users with Agile Development and Robust Operations
We-Design
We-Design
Nov 3, 2014 · Frontend Development

How We Revamped the WeChat Open Platform’s Visual Design for Better Developer Experience

This article details the visual redesign of the WeChat Open Platform, explaining the problems of over‑layered navigation and inconsistent branding, the design decisions made to simplify hierarchy, unify style with other WeChat sites, improve typography, and the ongoing work needed for responsiveness and retina support.

Open PlatformUI/UXVisual Redesign
0 likes · 7 min read
How We Revamped the WeChat Open Platform’s Visual Design for Better Developer Experience
Baidu Tech Salon
Baidu Tech Salon
Oct 23, 2014 · Information Security

Designing Two-Factor Authentication Using WeChat: Balancing Security and User Experience

The article outlines a WeChat‑based two‑factor authentication design that binds user accounts via QR codes, leverages WeChat push messages to avoid SMS reliability issues, addresses daily‑message limits and mobile scanning constraints, and demonstrates how this approach can enhance security while preserving a seamless user experience.

Two-Factor AuthenticationUser experienceWeChat
0 likes · 13 min read
Designing Two-Factor Authentication Using WeChat: Balancing Security and User Experience
MaGe Linux Operations
MaGe Linux Operations
Oct 9, 2014 · Operations

Integrate WeChat Alerts into Nagios Using Node.js

This guide walks you through registering a WeChat public account, setting up a Node.js simulator for login and friend retrieval, installing Node.js, configuring Nagios commands and contacts, and finally enabling WeChat notifications for monitoring alerts.

AlertingNagiosNode.js
0 likes · 6 min read
Integrate WeChat Alerts into Nagios Using Node.js