by shigemk2

当面は技術的なことしか書かない

uuid specification

This specification defines a Uniform Resource Name namespace for UUIDs (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDentifier). A UUID is 128 bits long, and can guarantee uniqueness across space and time. UUIDs were originally used in the Apollo Network Computing System and later in the Open Software Foundation's (OSF) Distributed Computing Environment (DCE), and then in Microsoft Windows platforms.

https://www.ietf.org/rfc/rfc4122.txt

reactive messaging patterns ch01 english

English Japanese
plenty たくさん
pet peeves 独自のイライラ
irritant 刺激性
repel はじく
fearful intimidation 恐ろしい脅迫
utter confusion 全くの混乱
intent 意図
complexity stack 複雑スタック
simplicity stack シンプルスタック
slyly ちゃめっけたっぷりに
anticipates 予想する
scalability 可能性
downplays 軽視する
employ 雇う
computation 計算
relativity 関連性
addresses 話しかける
extensive 広大な
distribution 配分
practical 現実的な
Thus 上に述べた
entity 存在
finite 有限の
Designate 指名する
indirection 回り道
analogous 類似した
Nondeterministic 非決定的な
reinforce 補強する
Parenthood 親であること
Endowment 基本財

Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka

Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka

Reactive Messaging Patterns with the Actor Model と そのサンプルコード

Reactive Messaging Patterns with the Actor Model

Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka

Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka

サンプルコード。

github.com

ノンブロッキング・フレームワークでのスレッドプールの使い方 メモ #reactive_shinjuku

  • 同期処理と非同期処理
    • 取得を待つ 逐次的に処理
    • 取得を待たない
      • 処理が複雑になる
  • スレッドの枯渇
    • Request-Response
  • 遅延の伝搬

  • サブシステムの障害をシステム全体に波及させない

  • 障害が発生しても応答を早く返す

  • bulkhead-pattern

    • 道路が1つしかないと事故ですべての車両が待たされる
    • 道路を複数用意しておくと事故の起きている経路を通らない車両は待たされない
    • スレッドプールは障害ドメインによって分ける
      • データベースや外部サービスとの接続
      • スレッドの枯渇による影響を最小限に
      • バルクヘッド 船の隔壁
  • little's law
    • L = λW
    • L スレッド数 λ 到着率 W1リクエストあたりのk処理事案
    • スレッドを効率的に使えるように適切なプールサイズを見積もる
  • curcuit-breaker
    • 経路を通らせないのでどの車両も待たせない
    • 応答性を保つ
    • 障害が起きた経路はフェイルオーバーする