展开菜单
首页 精品内容 本月促销 装机必备 Windows PDF教程 macOS软件 IOS软件 Android AI 专题
全部分类

当前位置:

首页 > 编程开发 > JavaCompletableFuture异步编程最佳实践指南

JavaCompletableFuture异步编程最佳实践指南

CompletableFuture是JDK8异步编程方案,克服Future阻塞与组合缺陷,支持非阻塞链式调用、多任务编排及异常处理。核心API包括supplyAsync/runAsync创建任务,thenApply/thenCompose链式转换,thenCombine/allOf/anyOf组合多任务,exceptionally/handle异常处理。

本文目录

    一、为什么需要 CompletableFuture?

    Ja va 并发编程的演进,活脱脱就是一部异步任务处理方式的升级史。不妨回想一下各个阶段的核心痛点:

    Ja vaCompletableFuture异步编程最佳实践指南

    Thread / Runnable(JDK 1.0)
        ↓ 痛点:无返回值、难以管理
    Future + Callable(JDK 5)
        ↓ 痛点:get() 阻塞、无法链式组合
    CompletableFuture(JDK 8)✅
        ↓ 优势:非阻塞、链式调用、函数式编排

    可以说,CompletableFuture 是 JDK 8 为异步编程给出的终极方案。它精准地击碎了传统 Future 的几大软肋:

    • ✅ 非阻塞:告别 future.get() 死等结果的尴尬
    • ✅ 链式调用:thenApply → thenAccept → thenRun,流水线一样组织代码
    • ✅ 多任务编排:用 allOf / anyOf 就能搞定多个异步任务的协同
    • ✅ 异常处理:exceptionally / handle 让异常捕获变得优雅

    二、核心 API 一览图

    先看一眼整体结构图,心里有个谱。

                        ┌─────────────────────────────┐
                        │     创建 CompletableFuture    │
                        └──────────┬──────────────────┘
                                   │
                  ┌────────────────┼────────────────┐
                  ▼                ▼                ▼
         supplyAsync(U)      runAsync()       completedFuture(U)
         (有返回值)        (无返回值)       (立即完成)
                                   │
              ┌────────────────────┼────────────────────┐
              ▼                    ▼                     ▼
       ┌─────────────┐    ┌──────────────┐    ┌────────────────┐
       │ 转换类方法   │    │ 消费类方法    │    │  组合类方法     │
       ├─────────────┤    ├──────────────┤    ├────────────────┤
       │thenApply    │    │thenAccept    │    │thenCombine     │
       │thenCompose  │    │thenRun       │    │thenAcceptBoth  │
       │applyToEither│    │acceptEither  │    │runAfterBoth    │
       │handle       │    │whenComplete  │    │runAfterEither  │
       └─────────────┘    └──────────────┘    └────────────────┘
              │                                      │
              ▼                                      ▼
       ┌─────────────┐                    ┌────────────────┐
       │ 异常处理     │    ┌──────────────►│ 多任务组合      │
       ├─────────────┤    │               ├────────────────┤
       │exceptionally│    │               │allOf(全部完成)  │
       │handle       │    │               │anyOf(任一完成)  │
       │whenComplete │    │               └────────────────┘
       └─────────────┘    │
                          ▼
                   ┌─────────────┐
                   │ 获取结果     │
                   ├─────────────┤
                   │get()        │
                   │get(timeout) │
                   │join()       │
                   │orTimeout()  │
                   │completeOnTimeout()
                   └─────────────┘

    三、创建异步任务

    3.1 supplyAsync — 有返回值的异步任务

    // 基础用法:使用默认 ForkJoinPool
    CompletableFuture future = CompletableFuture.supplyAsync(() -> {
        // 模拟耗时操作,比如远程 API 调用
        try { Thread.sleep(1000); } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
        return "Hello, CompletableFuture!";
    });
    // 非阻塞获取结果
    String result = future.join();  // join() 不抛检查异常
    System.out.println(result);     // Hello, CompletableFuture!

    3.2 runAsync — 无返回值的异步任务

    // 执行一个不需要返回值的异步操作
    CompletableFuture future = CompletableFuture.runAsync(() -> {
        System.out.println("执行异步任务: " + Thread.currentThread().getName());
        // 发邮件、写日志,诸如此类
    });
    future.join();  // 等它跑完

    3.3 指定自定义线程池(⚠️ 生产环境必须)

    // ⚠️ 默认用的是 ForkJoinPool.commonPool(),生产环境真心建议指定线程池
    ExecutorService executor = Executors.newFixedThreadPool(4);
    CompletableFuture future = CompletableFuture.supplyAsync(() -> {
        System.out.println("线程: " + Thread.currentThread().getName());
        return "使用自定义线程池";
    }, executor);
    // 别忘关线程池
    executor.shutdown();

    ⚠️ 重要提醒:默认的 ForkJoinPool.commonPool() 是全局共享的。一旦某个任务阻塞或耗时过长,其他组件也会跟着遭殃。生产环境务必传入自定义 Executor。

    四、链式回调(核心用法)

    这才是最能体现 CompletableFuture 魅力的地方,一段流水线下来,代码干净利落。

    4.1 thenApply — 转换结果(相当于 map)

    CompletableFuture result = CompletableFuture.supplyAsync(() -> 10)
        .thenApply(x -> x * 2)           // 20:结果翻倍
        .thenApply(x -> x + 5);          // 25:再加 5
    System.out.println(result.join());  // 25

    4.2 thenAccept — 消费结果(无返回值)

    CompletableFuture.supplyAsync(() -> "World")
        .thenAccept(s -> System.out.println("Hello, " + s));
        // 输出: Hello, World
    

    4.3 thenRun — 完成后执行操作(不关心结果)

    CompletableFuture.supplyAsync(() -> {
        // 复杂计算过后...
        return "done";
    }).thenRun(() -> {
        System.out.println("任务已完成!清理资源...");
    });
    

    4.4 thenCompose — 扁平映射(相当于 flatMap)

    // 典型的场景:第一个异步任务的结果,是第二个异步任务的输入
    CompletableFuture userId = CompletableFuture.supplyAsync(() -> "user_123");
    CompletableFuture userInfo = userId.thenCompose(id ->
        CompletableFuture.supplyAsync(() -> {
            // 拿 id 去查用户详情,模拟 RPC 调用
            return "用户" + id + ": 张三, age=28";
        })
    );
    System.out.println(userInfo.join()); // 用户user_123: 张三, age=28

    thenApply vs thenCompose 的区别:

    方法返回值适用场景
    thenApplyCompletableFuture同步转换,类似 Stream.map
    thenComposeCompletableFuture> → 扁平化异步嵌套,类似 Stream.flatMap

    五、多任务组合

    5.1 thenCombine — 两个任务都完成后合并结果

    CompletableFuture priceFuture = CompletableFuture.supplyAsync(() -> 99.9);
    CompletableFuture quantityFuture = CompletableFuture.supplyAsync(() -> 3);
    // 两个都跑完,算总价
    CompletableFuture totalFuture = priceFuture.thenCombine(
        quantityFuture,
        (price, qty) -> price * qty
    );
    System.out.printf("总价: %.2f 元%n", totalFuture.join()); // 总价: 299.70 元

    5.2 allOf — 所有任务全部完成

    CompletableFuture task1 = CompletableFuture.supplyAsync(() -> {
        sleep(500); return "任务1完成";
    });
    CompletableFuture task2 = CompletableFuture.supplyAsync(() -> {
        sleep(300); return "任务2完成";
    });
    CompletableFuture task3 = CompletableFuture.supplyAsync(() -> {
        sleep(700); return "任务3完成";
    });
    // 等所有都搞定了再触发
    CompletableFuture allDone = CompletableFuture.allOf(task1, task2, task3);
    allDone.thenRun(() -> {
        System.out.println(task1.join());  // 任务1完成
        System.out.println(task2.join());  // 任务2完成
        System.out.println(task3.join());  // 任务3完成
        System.out.println("✅ 全部任务执行完毕!");
    }).join();

    5.3 anyOf — 任一任务完成即返回

    CompletableFuture fastTask = CompletableFuture.supplyAsync(() -> {
        sleep(200); return "快速任务";
    });
    CompletableFuture slowTask = CompletableFuture.supplyAsync(() -> {
        sleep(2000); return "慢速任务"
    });
    // 谁先完成就拿谁的结果
    Object firstResult = CompletableFuture.anyOf(fastTask, slowTask).join();
    System.out.println("最快完成的: " + firstResult); // 快速任务

    六、异常处理

    代码里的异常迟早要来,与其被动等待,不如主动规划。

    6.1 exceptionally — 恢复异常(类似 catch)

    CompletableFuture future = CompletableFuture.supplyAsync(() -> {
        if (true) throw new RuntimeException("模拟异常!");
        return "正常结果";
    }).exceptionally(ex -> {
        System.err.println("捕获到异常: " + ex.getMessage());
        return "降级默认值";  // 给一个兜底数据
    });
    System.out.println(future.join()); // 降级默认值

    6.2 handle — 统一处理正常和异常(类似 finally)

    CompletableFuture.supplyAsync(() -> {
        // 可能抛异常的操作
        int result = 10 / 0;
        return "成功: " + result;
    }).handle((result, ex) -> {
        if (ex != null) {
            System.err.println("发生错误: " + ex.getMessage());
            return "错误处理后的默认响应";
        }
        return "处理成功: " + result;
    }).thenAccept(System.out::println);

    6.3 whenComplete — 类似 finally(不改变结果)

    CompletableFuture.supplyAsync(() -> "重要数据")
        .whenComplete((result, ex) -> {
            // 无论成功失败都会执行,适合日志记录、指标上报
            if (ex != null) {
                System.err.println("任务失败,记录日志");
            } else {
                System.out.println("任务成功,耗时统计...");
            }
            // 注意:不返回新值,不会改变原始结果
        });

    三种异常处理方式对比

    方法触发时机能否恢复能否改变结果
    exceptionally仅异常时✅ 返回替代值✅
    handle正常+异常时✅ 返回新值✅
    whenComplete正常+异常时❌ 仅副作用❌

    七、超时控制

    // JDK 9+ 引入的 orTimeout
    CompletableFuture futureWithTimeout = CompletableFuture.supplyAsync(() -> {
        sleep(5000);  // 模拟一个耗时 5 秒的任务
        return "结果";
    }).orTimeout(2, TimeUnit.SECONDS)  // 最多等 2 秒
      .exceptionally(ex -> {
          if (ex instanceof TimeoutException) {
              return "超时降级结果";
          }
          return "其他异常";
      });
    // 而 completeOnTimeout 更温和,超时不抛异常,直接返回默认值
    CompletableFuture safeFuture = CompletableFuture.supplyAsync(() -> {
        sleep(5000);
        return "真实结果";
    }).completeOnTimeout("默认超时值", 2, TimeUnit.SECONDS);

    八、实战案例:电商商品详情页聚合

    先看一个活生生的例子:电商商品详情页的数据聚合,相信不少同行对此深有体会。从多个微服务并行拉取数据再组装成响应,这正是 CompletableFuture 的拿手好戏。

    import ja va.util.*;
    import ja va.util.concurrent.*;
    public class EcommerceDetailAggregator {
        // 模拟各个微服务
        private static CompletableFuture fetchProduct(String productId) {
            return CompletableFuture.supplyAsync(() -> {
                sleep(300);
                return new ProductInfo(productId, "MacBook Pro 16寸", 18999.00);
            });
        }
        private static CompletableFuture> fetchReviews(String productId) {
            return CompletableFuture.supplyAsync(() -> {
                sleep(400);
                return Arrays.asList(
                    new Review("用户A", "性能强劲,开发利器!", 5),
                    new Review("用户B", "屏幕素质顶级", 5),
                    new Review("用户C", "略重但可以接受", 4)
                );
            });
        }
        private static CompletableFuture fetchInventory(String productId) {
            return CompletableFuture.supplyAsync(() -> {
                sleep(200);
                return new Inventory(productId, 128, "北京仓");
            });
        }
        private static CompletableFuture> fetchRecommendations(String productId) {
            return CompletableFuture.supplyAsync(() -> {
                sleep(350);
                return Arrays.asList(
                    new Recommendation("Magic Mouse", 699),
                    new Recommendation("USB-C Hub", 259)
                );
            });
        }
        public static void main(String[] args) {
            String productId = "P20240614";
            long startTime = System.currentTimeMillis();
            // 1. 并行发起 4 个异步请求
            CompletableFuture productFuture = fetchProduct(productId);
            CompletableFuture> reviewsFuture = fetchReviews(productId);
            CompletableFuture inventoryFuture = fetchInventory(productId);
            CompletableFuture> recsFuture = fetchRecommendations(productId);
            // 2. 组装最终结果
            CompletableFuture pageData = productFuture
                .thenCombine(reviewsFuture, (product, reviews) -> {
                    PageResponse resp = new PageResponse();
                    resp.product = product;
                    resp.reviews = reviews;
                    return resp;
                })
                .thenCombine(inventoryFuture, (resp, inventory) -> {
                    resp.inventory = inventory;
                    return resp;
                })
                .thenCombine(recsFuture, (resp, recs) -> {
                    resp.recommendations = recs;
                    return resp;
                });
            // 3. 设置超时 + 异常处理
            pageData = pageData.orTimeout(3, TimeUnit.SECONDS)
                .exceptionally(ex -> {
                    System.err.println("聚合超时或异常: " + ex.getMessage());
                    return PageResponse.fallback();
                });
            // 4. 输出结果
            PageResponse response = pageData.join();
            long elapsed = System.currentTimeMillis() - startTime;
            System.out.println("n========== 商品详情页响应 ==========");
            System.out.println("? 商品: " + response.product.name);
            System.out.println("? 价格: ¥" + response.product.price);
            System.out.println("? 库存: " + response.inventory.stock + "件 (" + response.inventory.warehouse + ")");
            System.out.println("⭐ 评分: " + a vgRating(response.reviews));
            System.out.println("? 推荐: " + formatRecs(response.recommendations));
            System.out.println("⏱️  总耗时: " + elapsed + "ms(串行需~1250ms)");
            System.out.println("======================================n");
        }
        // ========== 辅助方法 ==========
        private static void sleep(long ms) {
            try { Thread.sleep(ms); } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
        }
        private static double a vgRating(List reviews) {
            return reviews.stream().mapToInt(r -> r.rating).a verage().orElse(0);
        }
        private static String formatRecs(List recs) {
            StringBuilder sb = new StringBuilder();
            for (Recommendation r : recs) sb.append(r.name).append("(¥").append(r.price).append(") ");
            return sb.toString().trim();
        }
        // ========== 数据模型 ==========
        static class ProductInfo { String id, name; double price;
            ProductInfo(String id, String name, double price) { this.id=id; this.name=name; this.price=price; } }
        static class Review { String user, comment; int rating;
            Review(String user, String comment, int rating) { this.user=user; this.comment=comment; this.rating=rating; } }
        static class Inventory { String productId, warehouse; int stock;
            Inventory(String pid, int stock, String wh) { this.productId=pid; this.stock=stock; this.warehouse=wh; } }
        static class Recommendation { String name; double price;
            Recommendation(String name, double price) { this.name=name; this.price=price; } }
        static class PageResponse {
            ProductInfo product; List reviews; Inventory inventory; List recommendations;
            static PageResponse fallback() { PageResponse r = new PageResponse(); r.product = new ProductInfo("", "暂不可用", 0); return r; }
        }
    }

    预期输出:

    ========== 商品详情页响应 ==========

    ? 商品: MacBook Pro 16寸

    ? 价格: ¥18999.0

    ? 库存: 128件 (北京仓)

    ⭐ 评分: 4.67

    ? 推荐: Magic Mouse(¥699.0) USB-C Hub(¥259.0)

    ⏱️ 总耗时: ~420ms(串行需~1250ms)

    ======================================

    ? 性能提升约 3 倍! 这恰恰就是 CompletableFuture 在实际项目中的核心价值所在。

    九、CompletableFuture vs 传统 Future 对比

    特性Future(JDK 5)CompletableFuture(JDK 8)
    手动完成❌ 不支持✅ complete()
    链式调用❌ 不支持✅ thenApply/thenAccept...
    多任务组合❌ 不支持✅ allOf/anyOf/thenCombine
    异常处理❌ 只能 get() 时捕获✅ exceptionally/handle
    非阻塞获取❌ get() 阻塞✅ thenAccept 回调
    超时控制✅ get(timeout)✅ orTimeout(JDK9+)

    十、最佳实践清单

    • 始终为 supplyAsync/runAsync 指定自定义线程池
    • 用 join() 取代 get(),省去检查异常的烦恼
    • 链式调用中尽早处理异常,别让异常悄悄传播导致整条链断裂
    • IO 密集型任务用独立线程池,别去占用 ForkJoinPool
    • 合理设置超时(orTimeout 或 completeOnTimeout)
    • 避免在 thenApply 里塞耗时操作,那会阻塞后面的链条
    • 用 allOf 批量等待多个任务,别一个一个去 join
    • 日志记录关键节点的耗时和状态

    十一、总结

    要点内容
    核心价值非阻塞异步编程,告别 callback hell
    创建方式supplyAsync(有返回值) / runAsync(无返回值)
    链式调用thenApply(转换) → thenAccept(消费) → thenRun(收尾)
    组合编排thenCombine(双任务) / allOf(全完成) / anyOf(任一完成)
    异常处理exceptionally(恢复) / handle(统一) / whenComplete(日志)
    生产要点自定义线程池 + 超时控制 + 早期异常处理

    ? 延伸阅读:

    • 《Ja va Concurrency in Practice》— Brian Goetz
    • JDK 源码 ja va.util.concurrent.CompletableFuture
    • 本系列上一篇:《Ja va线程池完全指南》

    本文基于 JDK 8+ 编写,部分 API(比如 orTimeout)需要 JDK 9+。如果有任何疑问,欢迎交流讨论!

    本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系bd@zhengruan.com
    作者最新文章
    编程开发
    相关文章 更多
    精品专题 更多
    装机必备

    正软商城装机必备专区,精选办公、浏览器、安全防护、影音播放、压缩解压、设计创作和系统工具等电脑常用正版软件,帮助用户快速完成新电脑软件配置。

    Windows

    正软商城Windows软件专区,汇集适用于Windows电脑的办公、设计、安全防护、影音播放、开发工具和系统优化软件,提供软件介绍、系统要求、正版授权及购买下载服务。

    PDF教程

    正软商城PDF教程频道提供PDF编辑、转换、合并、拆分、压缩及格式处理方法,同时介绍常用PDF软件和工具的使用技巧。

    macOS软件

    正软商城macOS软件专区,精选适用于Mac电脑的办公、设计、影音、效率、开发和系统工具,提供软件功能介绍、macOS兼容版本、正版授权及购买下载服务。

    IOS软件

    正软商城iOS软件专区,精选适用于iPhone和iPad的办公、学习、影音、设计、效率及AI应用,提供功能介绍、适用设备、系统要求和正版获取方式等信息。

    AI

    正软商城AI软件专区,汇集AI写作、AI绘画、AI视频、AI办公、AI编程、AI翻译、智能客服和数据分析等人工智能工具,提供功能介绍、适用平台、收费方式及正版购买信息。

    Mac软件 更多
    Postman macOS版
    Postman macOS版

    Postman是一套面向API全生命周期的开发与测试平台,可在Mac上发送和调试多种协议请求,管理集合、环境及认证信息,并完成脚本测试、模拟服务、监控、文档发布和团队协作。它适合开发、测试及运维人员使用,提供个人免费方案。

    Docker Desktop macOS版
    Docker Desktop macOS版

    Docker Desktop 是 Docker 官方为 Mac 提供的容器开发环境,集成 Docker Engine、命令行工具、Compose、Build、Kubernetes 与图形化管理界面。

    Android Studio macOS版
    Android Studio macOS版

    Android Studio 是 Google 面向安卓应用开发提供的官方集成开发环境,基于 IntelliJ IDEA 构建。它整合智能代码编辑、Gradle 构建、界面预览、设备模拟、性能分析、调试测试及 APK 分析等工具。

    Xcode macOS版
    Xcode macOS版

    Xcode 是苹果面向 Mac 提供的官方集成开发环境,将代码编辑、项目构建、SwiftUI 实时预览、设备模拟、自动化测试、断点调试、性能分析和应用分发整合在同一套工作流中,适合开发与维护 iPhone、iPad、Mac、Apple Wa

    JetBrains WebStorm macOS版
    JetBrains WebStorm macOS版

    JetBrains WebStorm 是面向 JavaScript、TypeScript 和现代 Web 技术的专业集成开发环境,可智能理解项目结构,提供代码补全、重构、错误检查、运行调试、测试及 Git 工具。

    PhpStorm macOS版
    PhpStorm macOS版

    PhpStorm 是 JetBrains 推出的专业 PHP 集成开发环境,可在 Mac 上完成代码编写、智能检查、重构、调试、测试和数据库管理。它支持主流 PHP 框架、Composer、Git、Docker 与远程解释器。

    JetBrains PyCharm macOS版
    JetBrains PyCharm macOS版

    JetBrains PyCharm 是面向 Python 开发者的集成开发环境,提供智能补全、代码检查、重构、调试、测试、版本控制及虚拟环境管理功能。Mac 版兼容 Intel 与 Apple 芯片,核心功能可免费使用。

    JetBrains IntelliJ IDEA macOS版
    JetBrains IntelliJ IDEA macOS版

    IntelliJ IDEA 是 JetBrains 推出的专业集成开发环境,重点服务于 Java、Kotlin 与 JVM 项目开发。软件集成代码补全、静态检查、重构、调试、测试、版本控制及构建工具,并可借助插件扩展语言和框架支持。

    Visual Studio Code macOS版
    Visual Studio Code macOS版

    Visual Studio Code 是微软提供的免费代码编辑器,支持 macOS,并为 Intel 与 Apple 芯片 Mac 提供适配版本。软件集代码编辑、调试、Git 源代码管理、集成终端和扩展市场于一体。

    REAPER macOS版
    REAPER macOS版

    REAPER是Cockos开发的数字音频工作站,提供多轨音频与MIDI录制、剪辑、处理、混音和母带制作工具。Mac版兼容Intel与Apple芯片,支持AU、VST、VST3、CLAP等插件格式,并提供高度可定制的工作流程。

    Adobe Audition macOS版
    Adobe Audition macOS版

    Adobe Audition 是面向播客、影视后期、音乐制作及内容创作者的专业音频工作站,提供波形精修、多轨录制与混音、频谱编辑、降噪修复、响度匹配和效果处理工具,并可与 Adobe Premiere 协同完成视频声音制作。

    Pro Tools macOS版
    Pro Tools macOS版

    Pro Tools 是 Avid 推出的专业数字音频工作站,覆盖多轨录音、无损剪辑、MIDI 编曲、插件处理、自动化混音及声音与画面同步等工作。它拥有 Intro、Artist、Studio 和 Ultimate 等方案。

    WINDOWS 更多
    Postman Windows版
    Postman Windows版

    Postman 是面向 API 全生命周期的开发与协作平台。Windows 桌面版可用于构建和发送 HTTP、GraphQL、gRPC、WebSocket、MQTT 等请求,并提供环境变量、集合、脚本测试、模拟服务、监控、文档及团队工作区等

    Docker Desktop Windows版
    Docker Desktop Windows版

    Docker Desktop 为 Windows 开发者提供集成式容器环境,内置 Docker Engine、命令行工具、Compose、Build 与 Kubernetes 等组件,可在本机完成镜像构建、容器运行、日志查看和资源管理。

    Android Studio Windows版
    Android Studio Windows版

    Android Studio 是 Google 面向 Android 应用开发提供的官方集成开发环境,以 IntelliJ IDEA 为基础,集成智能代码编辑、Gradle 构建、设备模拟、界面预览、调试测试及性能分析工具,

    JetBrains WebStorm Windows版
    JetBrains WebStorm Windows版

    WebStorm 是 JetBrains 面向 JavaScript、TypeScript 和现代 Web 技术打造的集成开发环境。它提供项目级代码分析、智能补全、安全重构、导航搜索,并集成调试、测试、终端、Git 与常用前端工具,

    JetBrains PhpStorm Windows版
    JetBrains PhpStorm Windows版

    PhpStorm 是 JetBrains 面向 PHP 与现代 Web 开发打造的专业集成开发环境,提供代码补全、静态检查、重构、调试、测试、数据库、版本控制及前端语言支持。Windows 用户可直接下载安装程序,

    JetBrains PyCharm Windows版
    JetBrains PyCharm Windows版

    PyCharm 是 JetBrains 推出的 Python 集成开发环境,提供智能代码补全、错误检查、重构、调试、测试、Git、终端及 Jupyter Notebook 支持。统一版安装后可体验 30 天 Pro 功能,

    JetBrains IntelliJ IDEA Windows版
    JetBrains IntelliJ IDEA Windows版

    JetBrains IntelliJ IDEA 是以 Java、Kotlin 和 JVM 项目为核心的专业集成开发环境,提供智能补全、代码检查、安全重构、调试、测试、版本控制及构建工具集成。统一发行版的核心功能可免费用于商业和非商业项目,

    Visual Studio Code Windows版
    Visual Studio Code Windows版

    Visual Studio Code 是微软推出的免费代码编辑器,Windows 版集成智能补全、代码导航、调试、终端和版本控制,并可通过扩展添加语言、格式化及远程开发能力。它启动较快、配置灵活,

    REAPER Windows版
    REAPER Windows版

    REAPER 是 Cockos 推出的数字音频工作站,适用于录音、MIDI 编曲、音频编辑、混音、母带制作及声音设计。软件安装包小巧,支持多轨录制、灵活路由、自动化、第三方插件和脚本扩展,并提供完整功能的 60 天免费评估期。

    Adobe Audition Windows版
    Adobe Audition Windows版

    Adobe Audition 是面向播客、影视后期、广播与音乐制作的专业音频工作站,提供波形编辑、多轨混音、频谱分析、录音、降噪修复和效果处理等功能。Windows 版通过 Adobe Creative Cloud 安装和管理,

    Pro Tools Windows版
    Pro Tools Windows版

    Pro Tools 是 Avid 推出的专业数字音频工作站,提供多轨录音、音频剪辑、MIDI编曲、插件处理、自动化混音及影视声音制作能力。它适合音乐人、录音师、制作人和音频后期团队使用,并提供免费入门版、订阅方案及永久授权选择。

    Cubase Windows版
    Cubase Windows版

    Cubase 是 Steinberg 推出的数字音频工作站,提供 MIDI 编曲、多轨录音、音频编辑、虚拟乐器、效果处理、自动化、混音和母带输出工具。其 Pro、Artist 与 Elements 版本面向不同预算和制作规模,