SlideShare uma empresa Scribd logo
1 de 43
Baixar para ler offline
Creat r s Night
                               2012/03/16
                             事業創造室 加藤寛之




Wednesday, March 21, 12
本日のお題


           10年後のデータベース
             アーキテクチャ
              と青春の日々
Wednesday, March 21, 12
10年後のデータベース
              アーキテクチャ?


Wednesday, March 21, 12
Datomic
Wednesday, March 21, 12
なにそれ美味しいの?



Wednesday, March 21, 12
Hacker Newsのコメントより


         Datomic is a UFO
        filled with advanced
          alian technology
Wednesday, March 21, 12
ひっじょ∼に興味深いね

Wednesday, March 21, 12
ということで
       アーキテクチャをご紹介


Wednesday, March 21, 12
これまで

                            Web Server


                INSERT / UPDATE    SELECT




                             DB Server

Wednesday, March 21, 12
これまで

                            Web Server


                INSERT / UPDATE    SELECT


                                         増えたらだめぇ!
                                         パンクしちゃう!
                             DB Server

Wednesday, March 21, 12
これまで

                            Web Server


                INSERT / UPDATE              SELECT

                                         データ同期


                             DB Server           DB Server
                              (master)            (slave)
Wednesday, March 21, 12
これまで

                                      Web Server
 INSERT / UPDATE

                                                      SELECT

                                  同期              データ同期


                          DB Server   DB Server           DB Server
                           (master)    (master)            (slave)
Wednesday, March 21, 12
これまで

                                      Web Server
 INSERT / UPDATE

                                                      SELECT

                                  同期              データ同期


                          DB Server   DB Server           DB Server
                           (master)    (master)            (slave)
Wednesday, March 21, 12
これまで

                                      Web Server
 INSERT / UPDATE
                                                            cache
                                              SELECT


                                  同期              データ同期


                          DB Server   DB Server           DB Server
                           (master)    (master)            (slave)
Wednesday, March 21, 12
頭を悩ませることがいっぱい
    ・INSERT / UPDATEがScaleしにくい
    ・データの復旧が面倒
    ・キャッシュのTTLをコンテンツ毎に管理
    ・レプリケーションサーバーが増える
     => マスタへの負荷が増大
    ・なによりDBがいつもボトルネック
    ・などなど
   どんどん物事が複雑になっていく。
Wednesday, March 21, 12
そこでDatomic



Wednesday, March 21, 12
特徴その1

                   保存されているデータは更新不可能
                       (Append-Only)

   ・Lockされない(だって更新しないもん)
   ・更新処理は後述するTransactorに新しいデータの作成
    として実行キューに登録/処理される。



Wednesday, March 21, 12
特徴その2

                          アプリケーションプロセスにて
                            クエリ処理が行われる

   ・発行されるクエリの解析はアプリ側で行う。
   ・クエリの解析結果と、ローカルに存在するインデックス
    から対応する固有ID(のリスト)を取得。


Wednesday, March 21, 12
特徴その2

                           自プロセス内のキャッシュから
                          固有IDに対応するデータを検索。

   ・キャッシュ上に存在すれば通信さえ発生しない。
   ・キャッシュ上になければ元データの保存場所から取得。




Wednesday, March 21, 12
特徴その3

                          データの追加 / 更新処理はすべて
                           Transactor経由で行われる。

   ・元データの保存場所に対してアプリケーションが
    直接更新処理を行う訳ではない。
   ・全ての更新履歴を保存しているので、データの復旧とか
    楽勝すぎワロタ。

Wednesday, March 21, 12
Datomic
           cache             Live Index      cache   Live Index    cache    Live Index

                                             Web Server
  INSERT / UPDATE

                                                       GET ENTITY
                                                       (request only data segments,
                                                       not query)
         Data Index
    Transactor
                          (data segments)



                                            Storage Service
Wednesday, March 21, 12
Datomic(更新時)
           cache             Live Index      cache   Live Index   cache   Live Index

                                             Web Server



                                                     INSERT / UPDATE
         Data Index
    Transactor
                          (data segments)



                                            Storage Service
Wednesday, March 21, 12
Datomic(更新時)
           cache             Live Index      cache   Live Index   cache   Live Index

                                             Web Server



                                                     INSERT / UPDATE
         Data Index
    Transactor
                          (data segments)



                                            Storage Service
Wednesday, March 21, 12
何が嬉しいの?
    ・そもそもキャッシュHITしたら
     Storage Serviceにアクセスさえない。
    ・UPDATEがないのでlockしない。
     => 他のクエリに迷惑をかけない。
    ・Storage Serviceは単純にデータを
     提供するだけ!クエリ解析とか
     キャッシュとか考えなくていい。
Wednesday, March 21, 12
個人的に各サーバーの
             役割分担がより明確に
              なってると思ったり

Wednesday, March 21, 12
でもサービスはリリース
        前でした(́・ω・`)


Wednesday, March 21, 12
でもアプリケーションに
       組み込むライブラリの
        参照実装(Java)
       は公開されている。。

Wednesday, March 21, 12
なぜRubyがないのか?



Wednesday, March 21, 12
ないなら作っちゃえ!
                 (^O^)


Wednesday, March 21, 12
ごめんなさい
              間に合いませんでした
Wednesday, March 21, 12
日本語でおk



Wednesday, March 21, 12
時間まで、しばしご鑑賞ください




Wednesday, March 21, 12
というのもアレなので
              別の策を考えてみた


Wednesday, March 21, 12
アプリケーション内
         キャッシュって
       どこまで有効なんだろ?

Wednesday, March 21, 12
とある社内ツールで
                      試してみた


Wednesday, March 21, 12
その名も
                          Katomic


Wednesday, March 21, 12
Katomic
                      = in-memory KVS
                      written with Ruby

Wednesday, March 21, 12
Katomicの有効/無効で
          処理速度の変化を比較
               してみたよ

Wednesday, March 21, 12
結果
      Katomic              合計       ビュー     DB       その他

             無効           1,608.6   735.5   8.3      864.8

             有効           327.1     323.7   0.6       2.8

          速度比             490%      230%    138%    3,086%

                                                   単位: ミリ秒



Wednesday, March 21, 12
圧倒的じゃないか、
                      我が軍は!


Wednesday, March 21, 12
アプリ内キャッシュ
                     っていいかもー


Wednesday, March 21, 12
ということでDatomicを
   もっと調査/検証します!


Wednesday, March 21, 12
Thanks!



Wednesday, March 21, 12

Mais conteúdo relacionado

Último

業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)Hiroshi Tomioka
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?akihisamiyanaga1
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineerYuki Kikuchi
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...博三 太田
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)UEHARA, Tetsutaro
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfFumieNakayama
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NTT DATA Technology & Innovation
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfFumieNakayama
 

Último (8)

業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
 

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

10年後のデータベース アーキテクチャ と青春の日々

  • 1. Creat r s Night 2012/03/16 事業創造室 加藤寛之 Wednesday, March 21, 12
  • 2. 本日のお題 10年後のデータベース アーキテクチャ と青春の日々 Wednesday, March 21, 12
  • 3. 10年後のデータベース アーキテクチャ? Wednesday, March 21, 12
  • 6. Hacker Newsのコメントより Datomic is a UFO filled with advanced alian technology Wednesday, March 21, 12
  • 8. ということで アーキテクチャをご紹介 Wednesday, March 21, 12
  • 9. これまで Web Server INSERT / UPDATE SELECT DB Server Wednesday, March 21, 12
  • 10. これまで Web Server INSERT / UPDATE SELECT 増えたらだめぇ! パンクしちゃう! DB Server Wednesday, March 21, 12
  • 11. これまで Web Server INSERT / UPDATE SELECT データ同期 DB Server DB Server (master) (slave) Wednesday, March 21, 12
  • 12. これまで Web Server INSERT / UPDATE SELECT 同期 データ同期 DB Server DB Server DB Server (master) (master) (slave) Wednesday, March 21, 12
  • 13. これまで Web Server INSERT / UPDATE SELECT 同期 データ同期 DB Server DB Server DB Server (master) (master) (slave) Wednesday, March 21, 12
  • 14. これまで Web Server INSERT / UPDATE cache SELECT 同期 データ同期 DB Server DB Server DB Server (master) (master) (slave) Wednesday, March 21, 12
  • 15. 頭を悩ませることがいっぱい  ・INSERT / UPDATEがScaleしにくい  ・データの復旧が面倒  ・キャッシュのTTLをコンテンツ毎に管理  ・レプリケーションサーバーが増える   => マスタへの負荷が増大  ・なによりDBがいつもボトルネック  ・などなど どんどん物事が複雑になっていく。 Wednesday, March 21, 12
  • 17. 特徴その1 保存されているデータは更新不可能 (Append-Only) ・Lockされない(だって更新しないもん) ・更新処理は後述するTransactorに新しいデータの作成  として実行キューに登録/処理される。 Wednesday, March 21, 12
  • 18. 特徴その2 アプリケーションプロセスにて クエリ処理が行われる ・発行されるクエリの解析はアプリ側で行う。 ・クエリの解析結果と、ローカルに存在するインデックス  から対応する固有ID(のリスト)を取得。 Wednesday, March 21, 12
  • 19. 特徴その2 自プロセス内のキャッシュから 固有IDに対応するデータを検索。 ・キャッシュ上に存在すれば通信さえ発生しない。 ・キャッシュ上になければ元データの保存場所から取得。 Wednesday, March 21, 12
  • 20. 特徴その3 データの追加 / 更新処理はすべて Transactor経由で行われる。 ・元データの保存場所に対してアプリケーションが  直接更新処理を行う訳ではない。 ・全ての更新履歴を保存しているので、データの復旧とか  楽勝すぎワロタ。 Wednesday, March 21, 12
  • 21. Datomic cache Live Index cache Live Index cache Live Index Web Server INSERT / UPDATE GET ENTITY (request only data segments, not query) Data Index Transactor (data segments) Storage Service Wednesday, March 21, 12
  • 22. Datomic(更新時) cache Live Index cache Live Index cache Live Index Web Server INSERT / UPDATE Data Index Transactor (data segments) Storage Service Wednesday, March 21, 12
  • 23. Datomic(更新時) cache Live Index cache Live Index cache Live Index Web Server INSERT / UPDATE Data Index Transactor (data segments) Storage Service Wednesday, March 21, 12
  • 24. 何が嬉しいの?  ・そもそもキャッシュHITしたら   Storage Serviceにアクセスさえない。  ・UPDATEがないのでlockしない。   => 他のクエリに迷惑をかけない。  ・Storage Serviceは単純にデータを   提供するだけ!クエリ解析とか   キャッシュとか考えなくていい。 Wednesday, March 21, 12
  • 25. 個人的に各サーバーの 役割分担がより明確に なってると思ったり Wednesday, March 21, 12
  • 26. でもサービスはリリース 前でした(́・ω・`) Wednesday, March 21, 12
  • 27. でもアプリケーションに 組み込むライブラリの 参照実装(Java) は公開されている。。 Wednesday, March 21, 12
  • 29. ないなら作っちゃえ! (^O^) Wednesday, March 21, 12
  • 30. ごめんなさい 間に合いませんでした Wednesday, March 21, 12
  • 33. というのもアレなので 別の策を考えてみた Wednesday, March 21, 12
  • 34. アプリケーション内 キャッシュって どこまで有効なんだろ? Wednesday, March 21, 12
  • 35. とある社内ツールで 試してみた Wednesday, March 21, 12
  • 36. その名も Katomic Wednesday, March 21, 12
  • 37. Katomic = in-memory KVS written with Ruby Wednesday, March 21, 12
  • 38. Katomicの有効/無効で 処理速度の変化を比較 してみたよ Wednesday, March 21, 12
  • 39. 結果 Katomic 合計 ビュー DB その他 無効 1,608.6 735.5 8.3 864.8 有効 327.1 323.7 0.6 2.8 速度比 490% 230% 138% 3,086% 単位: ミリ秒 Wednesday, March 21, 12
  • 40. 圧倒的じゃないか、 我が軍は! Wednesday, March 21, 12
  • 41. アプリ内キャッシュ っていいかもー Wednesday, March 21, 12
  • 42. ということでDatomicを もっと調査/検証します! Wednesday, March 21, 12