Herramientas y SDK

Creación de aplicaciones Couchbase reactivas con 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 ejemplos 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 

Comparte este artículo
Recibe actualizaciones del blog de Couchbase en tu bandeja de entrada
Este campo es obligatorio.

Autor

Publicado por Dmitrii

Promotor senior de desarrollo en Couchbase

Deja un comentario

¿Listo para empezar con Couchbase Capella?

Empezar a construir

Consulte nuestro portal para desarrolladores para explorar NoSQL, buscar recursos y empezar con tutoriales.

Utilizar Capella gratis

Ponte manos a la obra con Couchbase en unos pocos clics. Capella DBaaS es la forma más fácil y rápida de empezar.

Póngase en contacto

¿Quieres saber más sobre las ofertas de Couchbase? Permítanos ayudarle.