<?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/%E5%88%86%E5%B8%83%E5%BC%8F/</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/%E5%88%86%E5%B8%83%E5%BC%8F/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>使用Redis实现分布式锁</title>
      <link>https://blog.hankmo.com/posts/tech/distributed-lock-by-redis/</link>
      <pubDate>Thu, 17 Oct 2019 19:51:29 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/distributed-lock-by-redis/</guid>
      <description>在单体Java应用中，由于代码运行于同一个JVM，使用实现资源加锁是比较容易的，例如使用synchronized或ReentrantLock加锁来控制并发访问；但是在分布式系统中，多个分布式系统之间也需要控制并发访问，由于处于不同的JVM，此时就不能简单使用java的锁机制来进行控制。这种跨进程或者跨服务器的加锁，需要额外使用全局的获取锁的服务，就是本文探讨的分布式锁。</description>
    </item>
  </channel>
</rss>
