<?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/%E9%94%81/</link>
    <description>Recent content in 锁 on 极客老墨</description>
    <generator>Hugo -- 0.138.0</generator>
    <language>zh-cn</language>
    <lastBuildDate>Thu, 17 Oct 2019 19:51:29 +0000</lastBuildDate>
    <atom:link href="https://blog.hankmo.com/tags/%E9%94%81/index.xml" rel="self" type="application/rss+xml" />
    <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>
