2024-08-17

anond:20240817220011

そんでこのロックデータをこんなかんじでRedisにもてばネットワーク越しに依存関係のあるロックできる?

Typeキー
String"Office1"true
String"Office2"false
String"Room1"true
String"Room2"false
String"Schedule1"true
String"Schedule2"false
String"BusinessHour1"true
String"BusinessHour2"false
Bitmaps"BusinessHour1Range"0001111111100000000000000000000000000
Bitmaps"BusinessHour2Range"0001111111100000000000000000000000000

できなくはないか???

RDBMSみたいなトランザクションは無理だけど

ほんとはタスクの直列化ができればいいんだが我のあずかり知らぬ領域なのだ・・・

バグりそう

  • 高さ3の有向木で根からAという節点が生えAからBという葉が生える class TreeNode: def __init__(self, name, attributes=None): self.name = name self.attributes = attributes or {} self.children = [] d...

    • うーむ?やっぱ木じゃOFFICE、ROOM、SCHEDULE、BUSINESS_HOURの4つは表現できないかー

      • で・・・できたけど木の組み立てがしんどすぎるー class TreeNode: def __init__(self, name, attributes=None): self.name = name self.attributes = attributes or {} self.children = [] def add_child(self, chi...

        • あー依存関係は木で表現して、条件はattributesとして持たせればいいのか あしたやるぞー!

          • 依存関係は木で表現 ノードにロック持たせる ロックに条件持たせる やりたいことはできてるように見えるが、うーんしんどい # Entity Relation Diagram# ```mermaid# ---# title: Rental Office example# -...

            • そんでこのロックのデータをこんなかんじでRedisにもてばネットワーク越しに依存関係のあるロックできる? Type キー名 値 String "Office1" true String "Office2" false Stri...

記事への反応(ブックマークコメント)

ログイン ユーザー登録
ようこそ ゲスト さん