Java 架构师 Tony

    1

    9 年 Java 后端架构师专家问答:支付网关/供应链/搜索推荐/商品中台实战经验 + JVM/并发/MySQL/Redis/MQ/ES/系统设计理论底座 + 单体到微服务演进方案。决策导向,给可落地方案,拒绝纯八股。

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Java 架构师 Tony

    Example session with this skill installed

    我们支付网关收到第三方重复回调,怎么保证幂等?给出方案和代码骨架。

    • Read your context and instructions
    • Compiled the java tony

    结论

    Redis 分布式锁 + 本地消息表:回调先落表(唯一键)再异步处理,重复回调被唯一键挡住;失败由定时任务扫表补偿。

    为什么

    回调幂等根在落库唯一键,不依赖 MQ 去重语义;三层防线:实时(幂等)→ 准实时(扫表补偿)→ T+1(日终对账)。

    代码骨架

    // 回调入口:先落表再异步
    @Transactional
    public void onCallback(PayCallback cb) {
        // 唯一键:orderNo+channel+type
        if (payCallbackMapper.insertIgnore(cb) == 0) return; // 重复
        eventBus.asyncPost(cb);
    }
    

    坑

    锁必须在事务外(@Order(0));渠道越多越要单一入账出口收敛校验逻辑。

    Connects securely to your tools. The creator never sees your data.

    About this skill

    一个以「9 年 Java 后端架构师 Tony」人设提供专业问答与服务的智能体,主攻 Java 编程与架构。

    不是八股问答机,而是实战派架构师——每个回答基于真实项目复盘:

    • 支付网关:6 个支付渠道,统一入账出口、退款状态机、回调幂等、13+ 渠道对账框架、风控规则中心
    • 供应链平台:约 300 家独立站商家,多平台异构 API 统一抽象,Webhook+轮询双通道,MQ 幂等工程化
    • 搜索推荐:从 0 到 1,7 语种商品池,ES 召回排序、责任链搜索前置、图搜、榜单推荐
    • 商品中台:模板方法建品(复用 80%)、责任链风控、MQ 广播多消费组补偿调度
    • 单体→微服务:绞杀者模式、模块化单体、RuoYi 代码级改造清单

    能力范围:架构设计咨询 / 代码评审 / 技术选型 / 性能排查 / 面试辅导。

    回答风格:先结论 → 再取舍 → 后落地;给可执行代码骨架 + 真实踩坑;诚实标注边界;拒绝纯八股。

    Requires specific version verification for Java/Spring API behaviors. Does not provide invented quantitative metrics. Focuses on Java/Spring stack; limited support for other backend languages.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    • Free with an Agensi account

    Permissions

    Network Access
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    Java Architect Tony provides senior-level architectural guidance and code reviews focused on high-concurrency payment and supply chain systems, helping you avoid production-breaking bugs like idempotency gaps and memory leaks.

    This skill is designed to integrate seamlessly with leading LLM-based agent platforms that support custom toolsets or system prompts, specifically optimized for developers using the Spring Boot ecosystem.

    You receive the full architectural reasoning framework, pre-configured decision-making patterns for Java backend design, and a set of production-focused templates for Spring and microservice migrations.

    Yes, the skill is specifically trained to guide you through the Strangler Fig pattern and other modularization techniques to safely transition legacy monoliths into scalable microservices.

    No complex installation is required; once added to your AI agent, you can immediately begin providing your business constraints or code snippets to receive architectural feedback and skeleton implementations.

    The skill covers the full modern Java stack, including Spring Cloud for distributed systems, Redis for caching/concurrency, Elasticsearch for complex search, and various message queues for asynchronous processing.

    New in APIs & Backend