Ferramentas e SDKs

Criando aplicativos reativos do Couchbase com o Flink

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 exemplos 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 

Compartilhe este artigo
Receba atualizações do blog do Couchbase em sua caixa de entrada
Esse campo é obrigatório.

Autor

Postado por Dmitrii

Advogado desenvolvedor sênior na Couchbase

Deixe um comentário

Pronto para começar a usar o Couchbase Capella?

Iniciar a construção

Confira nosso portal do desenvolvedor para explorar o NoSQL, procurar recursos e começar a usar os tutoriais.

Use o Capella gratuitamente

Comece a trabalhar com o Couchbase em apenas alguns cliques. O Capella DBaaS é a maneira mais fácil e rápida de começar.

Entre em contato

Deseja saber mais sobre as ofertas do Couchbase? Deixe-nos ajudar.