Tag

Asynchronous Programming

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Apr 23, 2025 · Backend Development

Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices

This article explains the fundamentals of Python coroutines and the asyncio library, covering basic concepts, key components, practical examples, advanced techniques such as mixing with threads, cancellation handling, performance optimizations, and common troubleshooting tips for asynchronous programming.

Asynchronous ProgrammingCoroutinePython
0 likes · 9 min read
Understanding Python Coroutines and Asyncio: Concepts, Framework, and Best Practices
FunTester
FunTester
Apr 9, 2025 · Backend Development

Understanding Future and CompletableFuture in Java for Asynchronous Programming

This article explains the concepts, differences, and practical usage of Java's Future and CompletableFuture for asynchronous programming, highlighting their blocking behavior, task composition, exception handling, and suitable scenarios in performance testing and complex test workflows, with detailed code examples.

Asynchronous ProgrammingCompletableFutureFuture
0 likes · 14 min read
Understanding Future and CompletableFuture in Java for Asynchronous Programming
Code Mala Tang
Code Mala Tang
Mar 15, 2025 · Backend Development

Master Async Python: Boost Performance with Coroutines and Event Loops

This guide introduces asynchronous Python, explaining why async improves speed, how coroutines and the event loop work, and provides practical examples and common pitfalls to help developers write faster, more efficient I/O‑bound code.

Asynchronous ProgrammingCoroutinesEvent Loop
0 likes · 14 min read
Master Async Python: Boost Performance with Coroutines and Event Loops
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 10, 2025 · Backend Development

Master Java Asynchronous Programming: 7 Powerful Techniques with Code Samples

This article explains why asynchronous programming boosts Java application performance and walks through seven practical methods—Thread, FutureTask, CompletableFuture, Guava ListenableFuture, EA‑Async, Cactoos, and Jcabi‑Aspects—each illustrated with complete, runnable code examples.

Asynchronous ProgrammingCompletableFutureJava
0 likes · 14 min read
Master Java Asynchronous Programming: 7 Powerful Techniques with Code Samples
Code Mala Tang
Code Mala Tang
Jan 26, 2025 · Fundamentals

Master Python Async: Boost Performance with asyncio, async/await, and Tasks

This guide explains Python asynchronous programming using the asyncio library, covering async functions, coroutine objects, the event loop, await syntax, task creation, and concurrent execution with asyncio.run, create_task, and gather to improve I/O‑bound performance.

Async/AwaitAsynchronous ProgrammingCoroutine
0 likes · 7 min read
Master Python Async: Boost Performance with asyncio, async/await, and Tasks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 25, 2025 · Backend Development

Mastering CompletableFuture in Java: Basics, Advanced Features, and Best Practices

This comprehensive guide introduces Java's CompletableFuture, explains its advantages over the traditional Future API, demonstrates how to create and compose asynchronous tasks, manage thread pools, handle timeouts and cancellations, and apply robust exception handling techniques for reliable concurrent programming.

Asynchronous ProgrammingCompletableFutureException Handling
0 likes · 16 min read
Mastering CompletableFuture in Java: Basics, Advanced Features, and Best Practices
Deepin Linux
Deepin Linux
Jan 13, 2025 · Backend Development

C++ Timers in Asynchronous Programming: Implementation, Optimization Techniques, and Real‑World Case Study

This article explains why C++ timers are essential for asynchronous programming, presents three implementation approaches—including a simple thread‑chrono version, a Boost.Asio based timer, and a C++11 atomic/condition‑variable design—offers practical optimization tips such as precise intervals, thread‑pool reuse, efficient callbacks, and memory management, and demonstrates their impact with a network‑server case study comparing naïve and optimized solutions.

Asynchronous ProgrammingBoost.AsioC++
0 likes · 22 min read
C++ Timers in Asynchronous Programming: Implementation, Optimization Techniques, and Real‑World Case Study
Deepin Linux
Deepin Linux
Jan 8, 2025 · Fundamentals

Deep Dive into C++20 Coroutines: Principles, Components, and Practical Applications

This article explains the fundamentals of C++20 coroutines, describing their lightweight asynchronous execution model, key language constructs such as co_await, co_yield, and co_return, the underlying components like promise objects and coroutine handles, and demonstrates real‑world usage through comprehensive code examples for networking, file I/O, generators, and task scheduling.

Asynchronous ProgrammingC++20Coroutines
0 likes · 32 min read
Deep Dive into C++20 Coroutines: Principles, Components, and Practical Applications
Test Development Learning Exchange
Test Development Learning Exchange
Jan 1, 2025 · Backend Development

Managing and Cancelling Asyncio Tasks and Sub‑coroutines in Python

This article explains how to cancel asyncio tasks, invoke sub‑coroutines, cancel sub‑coroutines, handle multiple task cancellations, and manage errors in Python's asynchronous programming, providing clear code examples for each scenario and demonstrating best practices for robust async code.

Asynchronous Programmingasynciosub-coroutine
0 likes · 7 min read
Managing and Cancelling Asyncio Tasks and Sub‑coroutines in Python
JD Tech Talk
JD Tech Talk
Dec 23, 2024 · Backend Development

Asynchronous Timeout Implementation for CompletableFuture in JDK 8

This article proposes an asynchronous timeout implementation for CompletableFuture in JDK 8, addressing the lack of built-in timeout interruption capabilities and providing a solution for precise task timeout control.

Asynchronous ProgrammingBackend DevelopmentCompletableFuture
0 likes · 10 min read
Asynchronous Timeout Implementation for CompletableFuture in JDK 8
Java Tech Enthusiast
Java Tech Enthusiast
Dec 12, 2024 · Backend Development

Java CompletableFuture: Asynchronous Programming Guide

Java's CompletableFuture, introduced in Java 8, replaces the blocking Future with a rich, non‑blocking API that supports asynchronous task creation, result retrieval via get/join, chaining callbacks, exception handling, task combination (AND/OR, allOf/anyOf), and recommends custom executors, timeouts, and proper saturation policies.

Asynchronous ProgrammingBackend DevelopmentCompletableFuture
0 likes · 16 min read
Java CompletableFuture: Asynchronous Programming Guide
Tencent Cloud Developer
Tencent Cloud Developer
Nov 19, 2024 · Backend Development

Ten Common Interface Performance Optimization Techniques

Ten practical techniques—early validation, batch queries, asynchronous processing, parallel execution, caching, connection pooling, response compression, message‑queue decoupling, security best practices, and reusable design patterns—collectively reduce latency, boost throughput, and improve scalability of high‑concurrency interfaces.

Asynchronous ProgrammingBackend DevelopmentCaching
0 likes · 29 min read
Ten Common Interface Performance Optimization Techniques
JD Tech Talk
JD Tech Talk
Aug 12, 2024 · Backend Development

Designing High‑Concurrency Systems: From Single‑Machine Optimizations to Distributed Architecture

This article explains how to build high‑concurrency systems by analyzing single‑machine hardware and code optimizations, clarifying multithreading versus asynchronous methods, and then scaling horizontally and vertically with caching, partitioning, and distributed inventory management to achieve stable, performant services for large‑scale e‑commerce workloads.

Asynchronous ProgrammingDistributed SystemsRedis
0 likes · 18 min read
Designing High‑Concurrency Systems: From Single‑Machine Optimizations to Distributed Architecture
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 28, 2024 · Fundamentals

Handcrafting a Minimal Kotlin Coroutine Implementation

This article analyzes the shortcomings of existing Kotlin coroutine tutorials and presents a step‑by‑step guide to building a lightweight coroutine framework from scratch, covering thread basics, CoroutineScope, launch, delay, resume, state‑machine logic, withContext, async, and Deferred with complete code examples.

Asynchronous ProgrammingCoroutinesCustom Implementation
0 likes · 15 min read
Handcrafting a Minimal Kotlin Coroutine Implementation
37 Interactive Technology Team
37 Interactive Technology Team
Feb 21, 2024 · Fundamentals

Deconstructing Asynchronous Programming

The article breaks down modern asynchronous programming by examining four core models—callbacks, Promises, reactive observer patterns, and message‑driven architectures—explaining their mechanics, pros and cons, and providing JavaScript/Dart examples and system diagrams to help developers master non‑blocking concurrency.

Async/AwaitAsynchronous ProgrammingCallbacks
0 likes · 26 min read
Deconstructing Asynchronous Programming
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 19, 2023 · Frontend Development

7 Advanced JavaScript async/await Techniques

This article explains seven advanced JavaScript async/await patterns—including higher‑order functions, concurrency control, recursive processing, asynchronous class initialization, method chaining, event‑loop integration, and streamlined error handling—to help developers write clearer, more maintainable asynchronous code.

Advanced TechniquesAsync/AwaitAsynchronous Programming
0 likes · 15 min read
7 Advanced JavaScript async/await Techniques
Python Programming Learning Circle
Python Programming Learning Circle
Dec 15, 2023 · Backend Development

Comprehensive List of Python Libraries for Web Crawling, Web Development, and Related Technologies

This article provides an extensive overview of Python libraries and frameworks for web crawling, HTTP handling, HTML parsing, text processing, asynchronous programming, queue management, cloud execution, WebSocket communication, DNS resolution, computer vision, proxy servers, and popular web frameworks such as Django, Flask, Web2py, Tornado, and CherryPy, helping developers choose appropriate tools for backend development.

Asynchronous ProgrammingBackend DevelopmentLibraries
0 likes · 10 min read
Comprehensive List of Python Libraries for Web Crawling, Web Development, and Related Technologies
Test Development Learning Exchange
Test Development Learning Exchange
Nov 28, 2023 · Backend Development

Python Asyncio: Coroutines and Asynchronous Programming with Practical Code Examples

This article introduces Python coroutines and asynchronous programming using the asyncio module, explains key concepts such as event loops and non‑blocking I/O, and provides ten detailed code examples that demonstrate creating, managing, and synchronizing async tasks for improved performance.

Asynchronous ProgrammingCoroutinesasyncio
0 likes · 7 min read
Python Asyncio: Coroutines and Asynchronous Programming with Practical Code Examples
Sanyou's Java Diary
Sanyou's Java Diary
Oct 26, 2023 · Backend Development

Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async

Explore the fundamentals and advanced techniques of asynchronous programming in Java, from basic thread creation and thread pools to Future, FutureTask, CompletableFuture, and Spring Boot’s @Async annotation, including practical code examples, event handling, and message queue integration for high‑throughput systems.

Asynchronous ProgrammingCompletableFutureFuture
0 likes · 17 min read
Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async
Test Development Learning Exchange
Test Development Learning Exchange
Oct 12, 2023 · Backend Development

Practical Examples of Python Coroutine Libraries: asyncio, gevent, and trio

This article introduces Python coroutines as a lightweight concurrency model and provides ten practical code examples demonstrating how to use the asyncio, gevent, and trio libraries for asynchronous I/O, concurrent network requests, file operations, task scheduling, and more.

Asynchronous ProgrammingCoroutinePython
0 likes · 7 min read
Practical Examples of Python Coroutine Libraries: asyncio, gevent, and trio