Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第八章:Synchronize Clocks - Jay Chen #91

Open
Jay0328 opened this issue Jul 31, 2022 · 1 comment
Open

第八章:Synchronize Clocks - Jay Chen #91

Jay0328 opened this issue Jul 31, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Jay0328
Copy link

Jay0328 commented Jul 31, 2022

我以往的經驗在做 distributed system 時會將 get unix timestamp 這個 method 做成 interface
而 implement 的部分則會 30s - 60s 左右去跟 master database 取 unix timestamp 來同步

想問問有沒有人在開發上有使用過其他的方法做同步的 ?

@kylemocode kylemocode added the question Further information is requested label Aug 2, 2022
@0x171-0
Copy link

0x171-0 commented Aug 3, 2022

  • 系統內建 UNIX NTP 指令可以做 NTP 校正
  • 設 cron-job 去定期校正
  • 每一個 micro-service 在一定時間內定期往主要 DB 去校準時間

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants