도구 및 SDK

Flink를 사용한 반응형 쿠치베이스 애플리케이션 개발

2 분 읽기

The Couchbase Flink connector is updated to version 0.5.0.

Apache Flink is a framework and distributed processing engine for stateful computations over unbounded and bounded data streams. Flink is designed to run in all common cluster environments, and perform computations at in-memory speed and at any scale. 

With our recently updated Couchbase connector, Flink projects can use Couchbase clusters not only to store and retrieve data but also to subscribe and react to changes in data as they are applied on the cluster. This feature is implemented by directly reading the Data Change Protocol stream from a Couchbase cluster. 

There are several noticeable changes in this release of the Flink connector:

  • Flink 2.1.1 is now supported by the connector
  • Couchbase java SDK is updated to the latest version
  • The DCP library dependency is updated to the latest version

Besides introducing support for Flink 2.1.1, this new version updates Couchbase dependencies and removes previously deprecated APIs.

The connector can be installed from a Maven repository:

Or it can be built from sources that are located at the following GitHub repository: https://github.com/couchbaselabs/flink-connector-couchbase

The connector provides Flink classes like:

  • `CouchbaseDCPSource` – subscribes to the Couchbase DCP stream for real-time mutation processing 
  • `CouchbaseQuerySource`  – Executes SQL++ queries and streams results into Flink
  • `CouchbaseCollectionSink` – Stores documents into Couchbase collections.

Small example Java projects that demonstrate how to use the connector can be found in the `examples` folder in the repository: https://github.com/couchbaselabs/flink-connector-couchbase/tree/master/examples

The connector library is currently experimental and in alpha stage. We welcome feedback and contributions from the community.  If you run into any problems when using the connector, or if you have any feedback, please open a GitHub issue in the project repository: https://github.com/couchbaselabs/flink-connector-couchbase/issues 

이 기사 공유하기

작가

Senior Developer Advocate at Couchbase

댓글 남기기

카우치베이스 카펠라를 시작할 준비가 되셨나요?

개발 시작하기

NoSQL을 탐색하고, 리소스를 찾아보고, 튜토리얼을 시작하려면 개발자 포털을 확인하세요.

카펠라 프리 사용하기

단 몇 번의 클릭으로 카우치베이스(Couchbase)를 직접 체험해 보세요. Capella DBaaS는 시작하기 가장 쉽고 빠른 방법입니다.

연락해

Couchbase 제품군에 대해 더 알고 싶으신가요? 저희가 도와드리겠습니다.