All Articles

141290 articles · Page 6865 of 7065
Tencent Music Tech Team
Tencent Music Tech Team
Apr 27, 2016 · Mobile Development

Cross-Process Singleton Implementation in Android Using AIDL

The article explains how to turn a traditional Android singleton into a cross‑process object by having the singleton implement an AIDL interface, exposing it through a bound Service, and using Parcelable‑based Binder serialization so multiple processes share the same instance while handling IPC, threading, and data‑type constraints.

AIDLAndroidCross-Process
0 likes · 17 min read
Cross-Process Singleton Implementation in Android Using AIDL
Architecture Digest
Architecture Digest
Apr 27, 2016 · Databases

Database Sharding Strategies: Vertical and Horizontal Partitioning, ID Generation, and Migration Phases

The article outlines a comprehensive database sharding solution for a massive order system, describing vertical and horizontal partitioning, various sharding strategies, a custom ID scheme, transaction handling, complex query constraints, and a three‑stage data migration plan to achieve long‑term scalability.

Data MigrationHorizontal PartitioningID Generation
0 likes · 10 min read
Database Sharding Strategies: Vertical and Horizontal Partitioning, ID Generation, and Migration Phases
Weidian Tech Team
Weidian Tech Team
Apr 27, 2016 · Mobile Development

How to Load H5 Pages in iOS Apps at Native Speed Using NSURLProtocol

This article explains how to achieve native‑like instant loading of H5 pages in mobile apps by pre‑packaging resources, dynamically downloading resource bundles at runtime, and intercepting requests with NSURLProtocol to serve local files, complete with design flow, code examples, and performance comparison.

Dynamic UpdateNSURLProtocolResource Packaging
0 likes · 9 min read
How to Load H5 Pages in iOS Apps at Native Speed Using NSURLProtocol
21CTO
21CTO
Apr 27, 2016 · Mobile Development

Run Your First Swift “Hello, World” on Android: Step‑by‑Step Guide

This tutorial explains how to compile the Swift standard library for Android armv7, build required dependencies, create a simple Swift program, deploy the binaries via ADB, and successfully run a "Hello, Android" application on an Android device.

AndroidSwiftcross‑platform
0 likes · 9 min read
Run Your First Swift “Hello, World” on Android: Step‑by‑Step Guide
21CTO
21CTO
Apr 27, 2016 · Mobile Development

Mastering Android Unit Testing: Practical Tips, Tools, and Real-World Cases

This article shares practical experiences and best practices for Android unit testing, covering why testing matters, simple test structures, mocking with Mockito, dependency injection via Dagger2, using Robolectric, CI integration, common pitfalls, and a detailed checkout flow example.

AndroidCIDagger2
0 likes · 25 min read
Mastering Android Unit Testing: Practical Tips, Tools, and Real-World Cases
Qunar Tech Salon
Qunar Tech Salon
Apr 27, 2016 · Fundamentals

Understanding the Essence of Software Architecture: Principles, Service Objects, and the Architect’s Capability Model

The article explores the philosophical and practical aspects of software architecture, describing its essence as reducing system entropy through modular decomposition and recombination, outlining architecture classifications, the architect’s skill set, and the four stages of architectural mastery, all illustrated with real‑world examples.

Entropy Reductionarchitect capability modelarchitectural principles
0 likes · 11 min read
Understanding the Essence of Software Architecture: Principles, Service Objects, and the Architect’s Capability Model
High Availability Architecture
High Availability Architecture
Apr 27, 2016 · Operations

Mesos Architecture and Its Deployment at Qunar: Framework Unification and Operational Strategies

This article explains the Mesos distributed system kernel, its master‑slave architecture, fine‑grained resource scheduling, and how Qunar leverages Mesos and Marathon for log processing, Spark, Alluxio, and multi‑tenant services while addressing framework unification, HA, service discovery, and operational challenges.

MarathonResource Schedulingcluster management
0 likes · 14 min read
Mesos Architecture and Its Deployment at Qunar: Framework Unification and Operational Strategies
Java High-Performance Architecture
Java High-Performance Architecture
Apr 26, 2016 · Backend Development

Avoid the Top 2 Performance Pitfalls: Logging and API Design

This article highlights the two most critical performance mistakes identified by Martin Thompson—excessive logging and poorly designed APIs—illustrating how logging threads can linearly increase latency and proposing better API signatures such as returning iterators or using caller‑provided collections to boost efficiency.

API designBackendJava
0 likes · 3 min read
Avoid the Top 2 Performance Pitfalls: Logging and API Design
ITPUB
ITPUB
Apr 26, 2016 · Databases

Fix SQL Server Availability Group Listener IP Errors and Configure Network Ports

Learn how to verify network connectivity, open required ports, add a listener IP in SQL Server Management Studio, configure subnet settings, adjust failover cluster properties, and resolve the SQL Server error 19456 that prevents an availability group listener from binding to an IP address.

Availability GroupError 19456Listener IP
0 likes · 4 min read
Fix SQL Server Availability Group Listener IP Errors and Configure Network Ports
ITPUB
ITPUB
Apr 26, 2016 · Databases

Why Deleting a Single Row by Unique Index Can Still Cause MySQL Deadlocks

This article analyzes a puzzling MySQL deadlock scenario where concurrent DELETE statements on a uniquely indexed row lead to a deadlock, explaining the lock modes, InnoDB's deadlock‑prevention strategy, and the conditions that make such deadlocks possible.

ConcurrencyDeadlockInnoDB
0 likes · 13 min read
Why Deleting a Single Row by Unique Index Can Still Cause MySQL Deadlocks
ITPUB
ITPUB
Apr 26, 2016 · Backend Development

Integrating Twisted with Stackless Python: A Practical Guide

This article explains how to combine Twisted's event‑driven reactor with Stackless Python's micro‑threads by setting up a reactor tasklet, creating filtering and wrapper decorators, and providing deferred_tasklet and blocking_tasklet utilities to run asynchronous code synchronously.

DecoratorStacklessTasklet
0 likes · 7 min read
Integrating Twisted with Stackless Python: A Practical Guide
Alibaba Cloud Infrastructure
Alibaba Cloud Infrastructure
Apr 26, 2016 · Backend Development

14 Common System Design Mistakes and Lessons Learned from Eight Years of Service Framework Development

Over eight years of building and evolving a service framework, the author reflects on fourteen critical design mistakes—from intrusive XML configurations and poor technology choices to insufficient versioning, load‑balancing flaws, and inadequate monitoring—highlighting the importance of comprehensive, forward‑looking architecture for backend engineers.

Backend Developmentarchitecture mistakesservice framework
0 likes · 16 min read
14 Common System Design Mistakes and Lessons Learned from Eight Years of Service Framework Development
Qunar Tech Salon
Qunar Tech Salon
Apr 26, 2016 · Databases

Distributed Transaction and Data Consistency Solutions for E‑commerce Systems

The article examines the challenges of maintaining data consistency across distributed services in e‑commerce, explains strong, weak and eventual consistency models, and presents six practical solutions—including business integration, the eBay BASE pattern, Qunar, Mogujie, Alipay DTS, and Nongxin—highlighting how local transactions, idempotent messaging, and eventual consistency can replace heavyweight distributed‑transaction frameworks.

BASEData Consistencydistributed transactions
0 likes · 16 min read
Distributed Transaction and Data Consistency Solutions for E‑commerce Systems
MaGe Linux Operations
MaGe Linux Operations
Apr 25, 2016 · Fundamentals

When to Use exec, source, or fork in Bash? A Practical Guide

This article explains the differences between exec, source, and fork in Bash, covering process creation, environment variable inheritance, command groups, variable substitution, positional parameters, logical operators, and provides example scripts to illustrate each concept for effective shell scripting.

Fork_sourcecommand substitution
0 likes · 26 min read
When to Use exec, source, or fork in Bash? A Practical Guide
21CTO
21CTO
Apr 25, 2016 · R&D Management

Why Chen Tianqiao’s ‘Network Disney’ Dream Failed: Shanda’s Rise and Fall

Chen Tianqiao, the former Chinese internet tycoon, built Shanda into a gaming and entertainment empire with the pioneering ‘Network Disney’ vision, but his over‑ambitious hardware‑content strategy, mis‑timed market entry, and management style led to costly failures, divestments, and the eventual dismantling of the empire.

Chen TianqiaoGaming IndustryShanda
0 likes · 33 min read
Why Chen Tianqiao’s ‘Network Disney’ Dream Failed: Shanda’s Rise and Fall
21CTO
21CTO
Apr 25, 2016 · Backend Development

How to Proactively Refresh Memcached Before Expiration and Avoid DB Thundering Herd

This article explores why Memcached expiration can cause sudden DB overload and presents five practical strategies—including periodic DB refresh, lock‑based queries, dual‑key schemes, and time‑embedded values—to proactively update caches and keep backend performance stable.

BackendJavaMemcached
0 likes · 8 min read
How to Proactively Refresh Memcached Before Expiration and Avoid DB Thundering Herd