<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>事务 on 极客老墨</title>
    <link>https://blog.hankmo.com/tags/%E4%BA%8B%E5%8A%A1/</link>
    <description>Recent content in 事务 on 极客老墨</description>
    <generator>Hugo -- 0.138.0</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 15 Apr 2020 21:29:04 +0000</lastBuildDate>
    <atom:link href="https://blog.hankmo.com/tags/%E4%BA%8B%E5%8A%A1/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>分布式事务的几种解决方案</title>
      <link>https://blog.hankmo.com/posts/tech/solutions-of-distributed-transaction/</link>
      <pubDate>Wed, 15 Apr 2020 21:29:04 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/solutions-of-distributed-transaction/</guid>
      <description>分布式系统，与传统单体架构系统相比，其结构复杂的多，系统间靠网络传输数据，系统存在诸多不确定因素，如硬件故障、网络波动等，都会影响整个系统的稳定性。而分布式事务更是分布式系统的一大难题。分布式事务常用的解决方案包括：两阶段提交(2PC)、TCC补偿性事务、本地消息表，也可以使用RocketMQ事务消息、阿里云全局事务服务GTS、Seata框架等。</description>
    </item>
    <item>
      <title>Spring事务管理四：声明式事务</title>
      <link>https://blog.hankmo.com/posts/tech/spring-declarative-transaction/</link>
      <pubDate>Thu, 08 Mar 2018 17:34:51 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-declarative-transaction/</guid>
      <description>可以从传播机制、隔离级别、是否只读、事务超时、回滚规则等方面来描述事务。Spring提供了xml和注解两者事务声明方式：采用xml：需要使用tx命名空间，好处是在xml中完成事务定义，代码中不需要做任何事务相关的编码；但是，事务控制的方法名称需要遵循一定的规则，一遍Spring能够匹配到并为其加入事务通知。采用注解：xml仅需一行配置，其他的事务控制都可以通过编码加上注解实现，而且对方法名称没有要求；如果整个应用不需要事务控制，取消xml配置即可。</description>
    </item>
    <item>
      <title>Spring事务管理三：编程式事务</title>
      <link>https://blog.hankmo.com/posts/tech/spring-programming-transaction/</link>
      <pubDate>Thu, 08 Mar 2018 15:50:47 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-programming-transaction/</guid>
      <description>Spring提供了TransactionTemplate工具类，可以方便地让开发人员手动的编程实现事务控制。编程式事务虽然可以精确控制事务，但是事务控制代码必须侵入业务逻辑代码中，耦合度高，后期难以维护。一般而言，不需要精确控制事务，所以采用的更多的是Spring的声明式事务。</description>
    </item>
    <item>
      <title>Spring事务管理二：Spring事务管理器</title>
      <link>https://blog.hankmo.com/posts/tech/spring-transaction-manage/</link>
      <pubDate>Wed, 07 Mar 2018 21:33:52 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-transaction-manage/</guid>
      <description>Spring并不支持管理事务，而是委托给第三方事务管理机制来完成事务控制，Spring顶层提供事务管理核心接口PlatformTransactionManager，事务管理器均是该接口的实现。如果没有合适的事务管理器或者需要支持分布式事务控制，则可以使用全局事务管理器：JTA事务管理器。</description>
    </item>
    <item>
      <title>Spring事务管理一：Spring事务简介</title>
      <link>https://blog.hankmo.com/posts/tech/spring-transaction-intro/</link>
      <pubDate>Wed, 07 Mar 2018 21:20:39 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-transaction-intro/</guid>
      <description>在软件开发领域，全有或全无的操作被称为事务（transaction）。事物允许将几个操作组合成一个要么全部发生要么全部不发生的工作单元。发生和不发生两者只能选择其一，而不可能两者都选择。事务确保了数据和资源免于处在不一致的状态。事务必须具备ACID特性，在Spring中，除了编程来精确控制事务，还可以使用AOP来配置低耦合度的声明式事务控制。</description>
    </item>
  </channel>
</rss>
