July 2018 Summaries
10 posts from Couchbase
Filter
Month:
Year:
Post Summaries
Back to Blog
This summary provides an overview of building a GraphQL application using Spring Boot, Java, and Couchbase Server as the NoSQL database. The application is designed to serve as a RESTful API endpoint for executing GraphQL queries, with schema definition, database logic, and integration with Couchbase. The example includes setting up the project structure, defining the GraphQL schema, developing the fetching logic for the Couchbase NoSQL database, wiring the application together for successful GraphQL processing, and initializing the GraphQL schema. The resulting application allows for querying multiple unrelated pieces of data in a single request, which would have required several requests in a traditional RESTful API.
Jul 26, 2018
2,586 words in the original blog post.
This tutorial details the process of building a full-stack application utilizing Vue.js, Node.js, Express, and Couchbase Server, complemented by Google Maps and Here Places REST APIs. The application is a single-page web app designed to display points of interest around hotels in selected cities via an interactive map. It incorporates advanced techniques such as airport-city matching for hotel selection, server-sent events for data pushes to the client, and reactive data binding in Vue.js. The guide covers setting up the development environment, structuring the application with Vue CLI and Bootstrap-Vue, and integrating the client and server components. It also delves into database interactions using Couchbase's N1QL queries and Eventing Service, enabling real-time updates and data augmentation. The tutorial concludes with steps for deploying the application, including necessary API keys and security configurations, and provides resources for further exploration and community support.
Jul 26, 2018
5,235 words in the original blog post.
Couchbase has released version 1.4.0 of its Go SDK, introducing key features such as Transparent Compression, Client Certificate Authentication, and Multi Network Configuration Support, alongside Response Time Observability. Transparent Compression allows automatic compression and decompression of documents, improving bandwidth and transmission efficiency. Client Certificate Authentication, available for Enterprise Edition users, enhances security by using X.509 certificates for server authentication. Response Time Observability includes ThresholdLogTracer implementation for diagnosing slow operations and Orphan Response Logging for tracking responses from timed-out requests. Multi Network Configuration Support enables the SDK to connect to clusters with different internal and external network setups, while bug fixes and updates are detailed in the release notes. Users can access the latest version through "go get gopkg.in/couchbase/gocb.v1" or by cloning the repository.
Jul 25, 2018
1,085 words in the original blog post.
The latest release of Couchbase Server 5.5 is now available, introducing several new Enterprise Grade features that enhance agility, performance, and manageability. The new release includes the Couchbase Eventing Service, which enables real-time processing of changes to data in near real-time, as well as the Couchbase Analytics Service, which allows users to analyze JSON data in real time without extracting, transforming, or loading (ETL) it into a separate system. N1QL now supports ANSI joins, making it easier for developers to migrate applications from relational databases to Couchbase. The release also includes performance improvements such as N1QL pushdowns, aggregate optimization, index partitioning, and end-to-end data compression. Additionally, new features like security compliance, auto failover, response time observability, and IPv6 support have been added to improve the overall management and monitoring of the Couchbase Data Platform.
Jul 23, 2018
1,815 words in the original blog post.
In the continuation of a GraphQL series using the Go programming language, the focus shifts to integrating Couchbase with a GraphQL-powered API that includes JSON Web Token (JWT) authorization. The tutorial outlines steps to transition from mock data to using Couchbase as a data source, detailing the process of setting up the database, modifying Go data structures, and handling account creation and JWT validation. The integration involves executing N1QL queries for dynamic data retrieval while maintaining JWT protection on sensitive fields. The series concludes by emphasizing the seamless transition to Couchbase, which enhances data management without altering the JWT implementation, and highlights the broader exploration of GraphQL functionalities such as querying, mutating, and securing data, presenting an alternative to traditional REST APIs.
Jul 19, 2018
1,761 words in the original blog post.
Couchbase has released beta version 3.4 of its Kafka connector, introducing significant improvements in handling rollbacks after failovers. The new version includes rollback mitigation, which buffers changes until they are confirmed to be persisted across all replicas to prevent publishing non-persisted changes to Kafka topics. This approach reduces the risk of inconsistency caused by Kafka's inability to retract published messages. The connector also supports setting time-to-live values for incoming documents, assigning document IDs from multiple fields, and has enhanced fault tolerance. The new flow control mechanism allows for a tunable buffer size, increasing from a fixed 20 megabytes to a default of 128 megabytes, providing flexibility to accommodate larger buffering needs. Users are encouraged to test the beta and provide feedback to improve the final release.
Jul 16, 2018
990 words in the original blog post.
Couchbase is a NoSQL database that offers various features for administrative tasks, deployment, and data management. It has a Restful API for automation of operations, can be quickly deployed on AWS, and supports deployment on Kubernetes or OpenShift with an Operator for infrastructure management. Couchbase can scale massively by combining high performance with linear scalability through architectural features such as Transparent shards, multidimensional scaling, master-less architecture, Database Change Protocol, No single point of failure, etc. It also provides full-text search indexes, supports end-to-end data compression, and allows auditing of queries. Additionally, it has a feature called Response Time Observability which logs slow requests with details for identifying poor performance.
Jul 12, 2018
1,218 words in the original blog post.
The text provides a comprehensive comparison between Couchbase and MongoDB in terms of their approaches to performing join operations on JSON documents. Couchbase uses a declarative query language, N1QL, which supports INNER JOIN, LEFT OUTER JOIN, and a limited RIGHT OUTER JOIN, allowing for efficient joining of large and distributed datasets with a syntax similar to SQL. MongoDB, on the other hand, uses a more procedural approach through its $lookup operator within the aggregation framework, primarily supporting LEFT OUTER JOIN for scalar values, which requires developers to manually construct query plans and stages, making the process more complex and verbose. The text highlights the efficiency differences in query execution, with Couchbase offering hash joins for enhanced performance, especially with larger datasets, whereas MongoDB's method involves a more cumbersome pipeline syntax. The analysis is supported by examples illustrating the differences in query construction and execution between the two databases.
Jul 11, 2018
2,271 words in the original blog post.
The summary of the text is as follows: Kops is a tool that allows users to create, destroy, upgrade and maintain production-grade Kubernetes clusters from the command line. It provides portability for applications, databases, and cloud vendors, giving freedom to decide on the best deployment strategy. Kops can be used with various cloud providers, including AWS, GCE, and VMware vSphere. The tool uses a YAML file to define the cluster configuration, making it easy to standardize and manage deployments across different environments. By using kops, users can automate the process of deploying and managing Kubernetes clusters, reducing administrative tasks and improving efficiency. Additionally, kops provides features like service resiliency, auto-rebalance, and automatic bucket creation, making it an ideal tool for large-scale deployments. The text also covers the installation and configuration of kops, as well as its usage with Couchbase Autonomous Operator to deploy a Couchbase cluster at scale.
Jul 11, 2018
1,709 words in the original blog post.
The text discusses the implementation of multi-document transactions in Couchbase, a distributed database. A transaction is created to transfer chickens from one barn to another, and the process involves several steps, including creating a transaction document, switching to a "pending" state, changing the documents, switching to a "committed" state, removing transaction tags, and handling exceptions during the transaction. The code uses optimistic locking to update the documents, but handles rollbacks in case of errors, restoring the documents to their previous state. The example highlights the importance of considering edge cases, such as process failure, dirty reads, and concurrent transactions, and notes that a more robust solution would require additional features or modifications to the Couchbase SDK. The text concludes by mentioning other options for implementing multi-document transactions, including RAMP client-side transactions, NDescribe library, and the Saga Pattern.
Jul 09, 2018
2,519 words in the original blog post.