Skip to Content
CockroachDB: The Definitive Guide, 2nd Edition
book

CockroachDB: The Definitive Guide, 2nd Edition

by Guy Harrison, Jesse Seldess, Ben Darnell, Rob Reid
March 2025
Intermediate to advanced
542 pages
8h 50m
Japanese
O'Reilly Media, Inc.
Content preview from CockroachDB: The Definitive Guide, 2nd Edition

第7章 アプリケーションの移行と統合 アプリケーションの移行と統合

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

徹底的にモダンなデータベースシステムであるCockroachDBは、新しいアプリケーション開発に最適な選択肢である。しかし、既存のアプリケーションの近代化にも適している。前世代のリレーショナルデータベースシステムで構築された多くのアプリケーションは、分散アーキテクチャへの移行によってのみ賢明な対処が可能な制限に直面している。多くの場合、CockroachDBのような分散SQLベースシステムは、分散NoSQLシステムとは異なり、アプリケーションのデータモデルやコードベースを完全に作り直す必要がないため、最も魅力的な移行対象である。この章では、既存のデータベースからCockroachDBにデータを移行する方法を説明する。

CockroachDBへのデータ移動は、ストーリーのほんの一部に過ぎない。CockroachDBは一般化データベースシステムであるが、そのスイートスポットは間違いなくオペレーショナルなトランザクション処理である。多くの環境では、CockroachDB内で処理されるデータは、他のオペレーティングシステムのデータと組み合わせて、ビジネスインテリジェンスやデータサイエンスの目的で活用される。このような場合、データを外部システムに移動する仕組みが必要になる。CockroachDBの変更データキャプチャ(CDC)機能、この目的には非常に有用である。CDCを使ってSnowflakeやKafkaなどの外部システムにデータを移動する方法を見ていく。また、CockroachDBから外部ファイルに直接データをダンプする方法も見ていく。 CockroachDBへのデータ移動は、話のほんの一部に過ぎない。CockroachDBは一般化データベースシステムであるが、そのスイートスポットは間違いなく演算処理である。多くの環境では、CockroachDB内で処理されるデータは、他のオペレーティングシステムからのデータと組み合わせて、ビジネスインテリジェンスやデータサイエンスの目的で活用される。このような場合、データを外部システムに移動する仕組みが必要になる。CockroachDBの変更データキャプチャ(CDC)機能はこの目的のために非常に貴重であり、CDCを使用してデータをSnowflakeやKafkaなどの外部システムに移動する方法を見ていく。また、CockroachDBから外部ファイルに直接データをダンプする方法も紹介する。

移籍のオブジェクト

あるシステムから別のシステムに移行する場合、新しいシステムがどのように自社のアーキテクチャやエンジニアリング組織に統合され、補完されるかを検討することが重要である。

ゴンドールを拠点とする有名な戦士がかつて言ったように、"人は単にデータベースをCockroachDBに置き換えることはできない"(彼は時代を先取りしていた)。(顧客は、CockroachDBを採用すれば、レガシー・テクノロジーを置き換えるだけでなく、アーキテクチャを簡素化し、多くの場合、エンジニアリング組織も簡素化できることに気づいている。

このセクションでは、CockroachDBが可能にする様々なアーキテクチャの簡素化について探る。CockroachDBを導入する前と導入した後のパターンをYouTubeで紹介し、そのコードをGitHubリポジトリに

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

CockroachDB: The Definitive Guide, 2nd Edition

CockroachDB: The Definitive Guide, 2nd Edition

Guy Harrison, Jesse Seldess, Ben Darnell, Rob Reid
CockroachDB: The Definitive Guide

CockroachDB: The Definitive Guide

Guy Harrison, Jesse Seldess, Ben Darnell

Publisher Resources

ISBN: 9798341634695