June 2018 Summaries
12 posts from Couchbase
Filter
Month:
Year:
Post Summaries
Back to Blog
In the second installment of "Inside the Java SDK," the article provides an in-depth exploration of how the Java SDK manages and pools sockets across various nodes and services, focusing on releases 2.5.9 and 2.6.0. It introduces a three-layer model of the SDK's connection stack, including the Channel Layer, built on the asynchronous IO library Netty, which handles multiplexing channels across event loops. The Endpoint Layer manages channel lifecycles, handling requests and reconnections, while the Service Layer pools endpoints per node, with dynamic configurations for different services like Query and View. The article also delves into common connection-related errors such as Request Cancellations and Bootstrap Issues, offering insights into handling these effectively. It emphasizes understanding the SDK's socket management and encourages further exploration into the codebase, promising future discussions on the SDK's threading model.
Jun 29, 2018
2,925 words in the original blog post.
This summary provides a concise overview of creating a protected API using GraphQL, Couchbase, and JSON web tokens (JWT) in a Node.js application. The goal is to demonstrate how to use JWT for authorization and restrict access to certain data points while still allowing other data points to be accessible without authentication. The tutorial covers setting up the project dependencies, creating simple account API endpoints for login and registration, validating JWT tokens with an Express Framework function, and developing a partially protected API with GraphQL queries that incorporate JWT validation. Key takeaways include accessing request data in the GraphQL context variable, separating JWT creation from GraphQL mutations, and restricting queries as well as data properties with JWT.
Jun 28, 2018
2,473 words in the original blog post.
The text discusses the application of the Couchbase Eventing Service as demonstrated in the Couchbase Silicon Valley 2017 technical keynote. It describes how a mobile phone with NFC reads temperatures from a battery-less patch, storing the data as a FHIR Observation Resource in JSON format using Couchbase Lite, which then syncs with a Couchbase Server cluster via Sync Gateway. The challenge of updating a web client dashboard in near real-time with relevant patient information is addressed using Couchbase Functions, which listen for database changes and allow for the efficient extraction and transfer of necessary data without excessive infrastructure complexity. By implementing reactive code through JavaScript callbacks, the Eventing Service streamlines data processing and transfer, offering scalability and efficiency. The integration of server-sent events (SSE) over web sockets is highlighted for its lightweight and effective nature, with the overall approach demonstrating the ease of deploying business logic alongside data using Couchbase Functions. The text concludes by encouraging readers to explore additional resources and support available for Couchbase.
Jun 21, 2018
1,167 words in the original blog post.
The text provides an in-depth exploration of how the Java SDK for Couchbase bootstraps itself, focusing on the initial configuration process and the handling of different network nodes. The process begins with the user providing a list of hostnames through the CouchbaseCluster API, which are stored as seed hosts in the ConfigurationProvider. The SDK uses two loaders, CarrierLoader and HttpLoader, to fetch configurations from the Couchbase cluster, prioritizing the more scalable CarrierLoader. It discusses how the SDK manages configurations, handles reconfigurations, and maintains operations during node changes, emphasizing the importance of efficient bootstrap performance and the customization of settings to enhance stability and error handling. The document also touches on potential failures during the bootstrap process and suggests enabling debug logging to identify issues, while offering guidance on adjusting timeouts for large clusters or slow networks.
Jun 21, 2018
2,088 words in the original blog post.
Couchbase has achieved the Big Data Competency with Amazon Web Services (AWS), further solidifying its partnership with the cloud giant. This milestone validates Couchbase's expertise in big data and its ability to support AWS in a first-class manner. As an Advanced Technology Partner since 2017, Couchbase has provided AWS with customer references and undergone a well-architected review to demonstrate its architecture and methodology. The company also offers various resources on GitHub and other platforms to help customers get started with Couchbase on AWS. Additionally, Couchbase has launched a managed service jointly with Rackspace that runs on AWS and plans to participate in more AWS events this year.
Jun 19, 2018
439 words in the original blog post.
The post provides a comprehensive guide on setting up a demo application using Couchbase, highlighting its features such as dynamic N1QL queries, IoT sensor integration, and cross-data center replication. It walks through the installation and configuration of Couchbase 5.5, which includes setting up nodes, creating buckets, and managing user access. The guide also explains the use of various Couchbase services like Eventing, Full-Text Search, and Analytics, detailing how to configure indexes and shadow datasets for optimized queries and data analysis. The post further covers the setup of a web server and client using Node.js, and the development of an Android mobile application with optional Urban Airship push notifications. The overall aim is to help users explore the capabilities of Couchbase through a detailed, hands-on approach, while additional resources and community support are available for further learning and assistance.
Jun 18, 2018
2,400 words in the original blog post.
OpenShift, a platform as a service (PaaS) by Red Hat, leverages Docker containers and Kubernetes for enterprise app development and deployment. The text details how Couchbase’s Operator supports OpenShift, facilitating tasks such as scaling, recovering from failures, and modifying cluster architecture with minimal commands. It provides a step-by-step guide on deploying and configuring Couchbase on OpenShift, including setting up Minishift, creating necessary resources, deploying the Couchbase Operator, and managing the deployment's scale. The article also explains how to access the database, recover from node failures, and utilize multidimensional scaling by assigning specific services to different nodes. It concludes with instructions for connecting applications to Couchbase on OpenShift and invites readers for further interaction through comments or social media.
Jun 18, 2018
1,779 words in the original blog post.
Couchbase Analytics and Knowi are cloud-based reporting and visualization tools that integrate with Couchbase, providing a seamless NoETL experience to analyze data with powerful queries. By using Couchbase Analytics, users can avoid writing indexes for complex queries and reduce performance impact on the operational bucket. Knowi connects to Couchbase buckets directly or through an agent, allowing users to build reports and visualizations in their browser. The Knowi Agent enables users to access their Couchbase cluster even if it's not exposed to the internet. Users can create data sources, data feeds, and widgets in Knowi, which can be combined to create a dashboard for real-time data visualization. With Couchbase Analytics and Knowi, users can build powerful and easy-to-use data visualizations to identify patterns and concepts in analytics, making it easier for decision-makers to make informed decisions.
Jun 13, 2018
1,736 words in the original blog post.
This article discusses creating a user profile service using Kotlin, Spring Boot, and Couchbase. The author starts by converting a Java application to Kotlin and then creates a sample application to demonstrate the combination of these technologies. They explain how to map entities to Couchbase documents using annotations such as `@Document`, `@Id`, and `@Field`. They also discuss how to use Spring Data keywords, such as `@Repository` and `@Query`, to query the database. Additionally, they provide an example of a service that forwards requests to a repository and includes ad-hoc queries for testing purposes. The article concludes with instructions on how to write integration tests using Kotlin and Maven dependencies.
Jun 11, 2018
1,744 words in the original blog post.
Couchbase has collaborated with Gruntwork to develop Terraform templates for deploying Couchbase on AWS, which are now publicly available. These templates are designed to support key Couchbase features such as Multi Dimensional Scaling and Cross Data Center Replication (XDCR), leveraging Terraform's capabilities as a leading cross-cloud Infrastructure as Code (IaC) framework. The templates aim to accelerate and enhance the deployment process by ensuring reliability, security, and reproducibility, addressing growing customer adoption of Terraform for application deployment. Additionally, the testing around these templates is enhanced by Gruntwork's open-sourced Terratest framework, which significantly improves template reliability and helps mitigate infrastructure regressions. Further insights and resources are available on Gruntwork's blog, GitHub, and the Terraform registry.
Jun 05, 2018
258 words in the original blog post.
The text discusses the integration of Couchbase within Kubernetes using the Couchbase Operator, which provides higher-level abstraction for managing Couchbase clusters through features like automated cluster provisioning, elastic scalability, and auto-recovery. It highlights how Kubernetes, typically used for stateless workloads, is now increasingly utilized for stateful storage as well, with the operator approach being the latest model. The Couchbase Operator, currently in beta but fully functional, simplifies the management of Couchbase clusters by deploying topographies based on configurations and handling auto-recovery, demonstrating its seamless integration with Amazon EKS. The text also explains the concept of an Operator as an application-specific controller that extends Kubernetes API capabilities to manage complex stateful applications, incorporating domain-specific knowledge for automation. Additionally, there was a meetup at Couchbase HQ discussing these topics, with a video of the sessions to be made available.
Jun 05, 2018
459 words in the original blog post.
The article explores the integration of Spring Boot with Kubernetes to enhance the scalability and elasticity of applications and databases, particularly using NoSQL databases like Couchbase. It highlights the advantages of using document databases due to their efficient data management capabilities and how Kubernetes facilitates the scaling of both stateless and stateful applications. The author provides a detailed walkthrough of creating a scalable and elastic User Profile Microservice, utilizing tools such as Spring Data, Couchbase, and Docker, and deploying it on Kubernetes. The guide includes steps for configuring the database, creating Docker images, setting up Kubernetes secrets, deploying applications, and managing load balancing. It also addresses scaling strategies for handling increased user demand, such as during high-traffic events like Black Friday, and discusses the challenges of scaling stateful databases compared to stateless applications. The article concludes by emphasizing the importance of planning for the scalability of all infrastructure components to avoid bottlenecks and indicates future discussions on achieving a truly production-ready architecture.
Jun 05, 2018
2,218 words in the original blog post.