Skip to Content
Cassandra: 定義ガイド、改訂第3版、第3版
book

Cassandra: 定義ガイド、改訂第3版、第3版

by Jeff Carpenter, Eben Hewitt
March 2025
Intermediate to advanced
432 pages
7h
Japanese
O'Reilly Media, Inc.
Content preview from Cassandra: 定義ガイド、改訂第3版、第3版

第8章. ドライバーを使ったアプリケーション開発

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

さて、ホテル・アプリケーションのマイクロサービス・アーキテクチャを設計する方法を見てきたので、そのアプリケーション内のサービスの1つである予約サービスを実装する方法を見ていこう。Cassandraを使用してアプリケーションを作成するには、ドライバが必要になる。

皆さんは、ドライバを使用してリレーショナルデータベースに接続することに慣れているだろう。例えばJavaでは、JDBCはリレーショナルデータベースのベンダ実装を抽象化し、StatementsPreparedStatementsResultSets などを使ってデータをストアしたり検索したりする一貫した方法を提示するAPIである。データベースと対話するには、Oracle、SQL Server、MySQLなど、使用している特定のデータベースで動作するドライバを入手する。この対話の実装の詳細は、開発者には隠されている。

Cassandra用のクライアント・ドライバーも数多くあり、ほとんどの一般的な言語をサポートしている。これらのクライアントには、独自のアプリケーションに簡単に組み込むことができ、接続プールやJMXの統合と監視など、CQLネイティブ・インタフェースよりも多くの機能を提供することが多いという利点がある。以下のセクションでは、利用可能なさまざまなクライアントと、それらが提供する機能について説明する。

DataStax Javaドライバ

CQLの導入は、Cassandraクライアント・ドライバーの状況を大きく変えるきっかけとなった。CQLのシンプルさと慣れ親しんだ構文により、クライアント・プログラムの開発は従来のリレーショナル・データベース・ドライバーと同様になった。DataStaxは、Cassandraの採用を促進するために、Javaといくつかの追加言語用のオープンソース・ドライバに戦略的な投資を行った。これらのドライバーは、すぐに新規開発プロジェクトのデファクト・スタンダードとなった。 ...

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

実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

Suhas Pai, 金本 勝吉, オライリー・ジャパン編集部
機械学習デザインパターン ―データ準備、モデル構築、MLOpsの実践上の問題と解決

機械学習デザインパターン ―データ準備、モデル構築、MLOpsの実践上の問題と解決

Valliappa Lakshmanan, Sara Robinson, Michael Munn, 鷲崎 弘宜, 竹内 広宜, 名取 直毅, 吉岡 信和

Publisher Resources

ISBN: 9798341626430