René's URL Explorer Experiment


Title: JavaGuide/docs/distributed-system/distributed-lock.md at main · MeLikeJava/JavaGuide · GitHub

Open Graph Title: JavaGuide/docs/distributed-system/distributed-lock.md at main · MeLikeJava/JavaGuide

X Title: JavaGuide/docs/distributed-system/distributed-lock.md at main · MeLikeJava/JavaGuide

Description: 「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - JavaGuide/docs/distributed-system/distributed-lock.md at main · MeLikeJava/JavaGuide

Open Graph Description: 「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - MeLikeJava/JavaGuide

X Description: 「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - MeLikeJava/JavaGuide

Opengraph URL: https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:f5879ef8-adbe-8cb0-897a-8e177f03b8bf
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idCAB0:12D388:6C818D:9B1863:6A63751E
html-safe-noncef9e11c8bab7d71ad7993f412efb110b701f3c04a8dda2eef10bb6b87823925c6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUIwOjEyRDM4ODo2QzgxOEQ6OUIxODYzOjZBNjM3NTFFIiwidmlzaXRvcl9pZCI6IjgxNTI3Mzg1OTg0MzU5MTA5NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac142580dec63490af92f265f48ee54e228380613f1656e5d5b9f672c3cb1d7d7a
hovercard-subject-tagrepository:642280956
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///blob/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md
twitter:imagehttps://opengraph.githubassets.com/0796a1799fa3b571e4fe1c08e246b2581b31fb4e0f7f1756ec31a2dff9d847f8/MeLikeJava/JavaGuide
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0796a1799fa3b571e4fe1c08e246b2581b31fb4e0f7f1756ec31a2dff9d847f8/MeLikeJava/JavaGuide
og:image:alt「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - MeLikeJava/JavaGuide
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None15e78334bb345f3864e70c5a376ed0383374123629b9e3022398d9431f6cd8bf
turbo-cache-controlno-cache
go-importgithub.com/MeLikeJava/JavaGuide git https://github.com/MeLikeJava/JavaGuide.git
octolytics-dimension-user_id50959795
octolytics-dimension-user_loginMeLikeJava
octolytics-dimension-repository_id642280956
octolytics-dimension-repository_nwoMeLikeJava/JavaGuide
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id132464395
octolytics-dimension-repository_parent_nwoSnailclimb/JavaGuide
octolytics-dimension-repository_network_root_id132464395
octolytics-dimension-repository_network_root_nwoSnailclimb/JavaGuide
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release51da2d8d0a841a1393b806a6559fa9ad757e1666
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMeLikeJava%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fdistributed-system%2Fdistributed-lock.md
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMeLikeJava%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fdistributed-system%2Fdistributed-lock.md
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=MeLikeJava%2FJavaGuide
Reloadhttps://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md
Reloadhttps://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md
Reloadhttps://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md
MeLikeJava https://github.com/MeLikeJava
JavaGuidehttps://github.com/MeLikeJava/JavaGuide
Snailclimb/JavaGuidehttps://github.com/Snailclimb/JavaGuide
Notifications https://github.com/login?return_to=%2FMeLikeJava%2FJavaGuide
Fork 0 https://github.com/login?return_to=%2FMeLikeJava%2FJavaGuide
Star 1 https://github.com/login?return_to=%2FMeLikeJava%2FJavaGuide
Code https://github.com/MeLikeJava/JavaGuide
Pull requests 0 https://github.com/MeLikeJava/JavaGuide/pulls
Actions https://github.com/MeLikeJava/JavaGuide/actions
Projects https://github.com/MeLikeJava/JavaGuide/projects
Security and quality 0 https://github.com/MeLikeJava/JavaGuide/security
Insights https://github.com/MeLikeJava/JavaGuide/pulse
Code https://github.com/MeLikeJava/JavaGuide
Pull requests https://github.com/MeLikeJava/JavaGuide/pulls
Actions https://github.com/MeLikeJava/JavaGuide/actions
Projects https://github.com/MeLikeJava/JavaGuide/projects
Security and quality https://github.com/MeLikeJava/JavaGuide/security
Insights https://github.com/MeLikeJava/JavaGuide/pulse
https://github.com/MeLikeJava/JavaGuide
JavaGuidehttps://github.com/MeLikeJava/JavaGuide/tree/main
docshttps://github.com/MeLikeJava/JavaGuide/tree/main/docs
distributed-systemhttps://github.com/MeLikeJava/JavaGuide/tree/main/docs/distributed-system
Historyhttps://github.com/MeLikeJava/JavaGuide/commits/main/docs/distributed-system/distributed-lock.md
https://github.com/MeLikeJava/JavaGuide/commits/main/docs/distributed-system/distributed-lock.md
JavaGuidehttps://github.com/MeLikeJava/JavaGuide/tree/main
docshttps://github.com/MeLikeJava/JavaGuide/tree/main/docs
distributed-systemhttps://github.com/MeLikeJava/JavaGuide/tree/main/docs/distributed-system
Rawhttps://github.com/MeLikeJava/JavaGuide/raw/refs/heads/main/docs/distributed-system/distributed-lock.md
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#分布式锁介绍
https://camo.githubusercontent.com/53e843325b2657caa05670f21e047a62e840cabbb99f85ae4ac608f14995ba88/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f6a766d2d6c6f63616c2d6c6f636b2e706e67
https://camo.githubusercontent.com/23182d9223642fdae5ea406020072b749ee6a4ca39961080dba37a6d895854e5/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f64697374726962757465642d6c6f636b2e706e67
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#基于-redis-实现分布式锁
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#如何基于-redis-实现一个最简易的分布式锁
https://camo.githubusercontent.com/f2c0323d3c09a3fed40d2221f9c2a1504d67eee253ee838cf5fa8015b55481ae/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f64697374726962757465642d6c6f636b2d7365746e782e706e67
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#为什么要给锁设置一个过期时间
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#如何实现锁的优雅续期
Redissonhttps://github.com/redisson/redisson
https://redis.io/topics/distlockhttps://redis.io/topics/distlock
https://camo.githubusercontent.com/2f41dc710631a7a9231cade7034adef99bd0485be36be2c72d5663f376dcea44/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f72656469732d64697374726962757465642d6c6f636b2e706e67
https://camo.githubusercontent.com/99b860e43e725493f88a13f24453b35814d068790799c72b7d9b58792b066b9c/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f64697374726962757465642d6c6f636b2d7265646973736f6e2d72656e65772d65787069726174696f6e2e706e67
redisson-3.17.6https://github.com/redisson/redisson/releases/tag/redisson-3.17.6
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#如何实现可重入锁
https://camo.githubusercontent.com/96967be008e836eb5b53e45dbe264c711c49104f62c4572d6e111582df8a071e/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f7265646973736f6e2d726561646d652d6c6f636b732e706e67
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#redis-如何解决集群情况下分布式锁的可靠性
https://camo.githubusercontent.com/3a9a70d1917917691ea3a7a4bdf62fb83ad96e03b5920747dd1257eb96a743ca/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f72656469732d6d61737465722d736c6176652d64697374726962757465642d6c6f636b2e706e67
Redlock 算法https://redis.io/topics/distlock
https://camo.githubusercontent.com/cd3e87971a9ff74a776940469996df8f9df24d146a8d97dae2b8dd7a33526048/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f64697374726962757465642d6c6f636b2d72656469732e696f2d7265616c6f636b2e706e67
How to do distributed locking - Martin Kleppmann - 2016https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html
Redis 锁从面试连环炮聊到神仙打架https://mp.weixin.qq.com/s?__biz=Mzg3NjU3NTkwMQ==&mid=2247505097&idx=1&sn=5c03cb769c4458350f4d4a321ad51f5a&source=41#wechat_redirect
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#基于-zookeeper-实现分布式锁
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#如何基于-zookeeper-实现分布式锁
https://camo.githubusercontent.com/7571d0eea3aa67efe52f828773a453072347d791a2bae25d8367c99acbf1a021/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f64697374726962757465642d73797374656d2f64697374726962757465642d6c6f636b2f64697374726962757465642d6c6f636b2d7a6f6f6b65657065722e706e67
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#为什么要用临时顺序节点
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#为什么要设置对前一个节点的监听
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#如何实现可重入锁-1
InterProcessMutex.javahttps://github.com/apache/curator/blob/master/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/InterProcessMutex.java
https://github.com/MeLikeJava/JavaGuide/blob/main/docs/distributed-system/distributed-lock.md#总结
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.