Home / Companies / Couchbase / Blog / April 2022

April 2022 Summaries

19 posts from Couchbase

Filter
Month: Year:
Post Summaries Back to Blog
The Couchbase Autonomous Operator is a Kubernetes operator that provides cloud-native integration with open source Kubernetes and Red Hat Openshift. It allows users to define their Couchbase Server Cluster using Kubernetes' declarative functionality, enabling environment definitions to be stored in source control. The operator's goal is to manage one or more Couchbase Server deployments fully, managing the cluster lifecycle and configuration. A new feature added in Couchbase Autonomous Operator v2.3 is the Save and Restore feature, which enables users to migrate a non-managed Couchbase Cluster to a managed cluster by generating a YAML file that matches the current data topology. This feature simplifies CI/CD pipelines and allows for easy migration from an unmanaged cluster to a managed cluster. The Save and Restore feature demonstrates how to create an unmanaged cluster, generate a topology YAML file, clone the topology to a new managed cluster, and restore it using the cao binary.
Apr 29, 2022 1,152 words in the original blog post.
A major software development company sought to enhance its customer engagement by implementing a scalable and secure Customer 360 solution, aiming to unify disparate data sources into a single, comprehensive repository. This initiative was driven by the need to consolidate customer data scattered across multiple platforms like Marketo, Salesforce, and Zendesk, which previously limited cross-customer analytics and required manual synchronization. Initially, the company built an ETL pipeline with Couchbase to centralize their data but faced challenges due to its inflexibility and resource demands. To overcome these issues, they integrated Dataworkz, a SaaS service that streamlines data management, providing governance, quality, and real-time insights without requiring extensive IT resources. This transition reduced the project timeline significantly, enabling a functional Customer 360 application in three months and setting the stage for future AI-driven business processes. The collaboration between Dataworkz and Couchbase facilitated a more efficient and resilient data infrastructure, enhancing analytic capabilities and operational efficiency.
Apr 27, 2022 1,039 words in the original blog post.
In the concluding part of a series exploring the creation of microservices, the focus shifts to generating test data for a Python-based microservice schema using Couchbase as the datastore. The discussion highlights the importance of rigorous testing and automation in DevOps and agile development, emphasizing the need for realistic test data to ensure software stability. The author describes a utility called cb_perf, which generates randomized JSON data and inserts it into Couchbase, using a schema definition file to ensure varied and realistic data for testing purposes. The utility facilitates performance testing by integrating Jinja2 expressions to generate unique records, accompanied by primary and secondary indexing. The series concludes with a brief mention of future updates to cb_perf and resources for further exploration, underscoring the utility's capability to simulate realistic data environments for microservices testing.
Apr 26, 2022 1,662 words in the original blog post.
The COVID-19 pandemic has accelerated digital transformation, compelling organizations to adopt Database-as-a-Service (DBaaS) solutions to manage increased data demands. A performance benchmark report by Altoros compared three NoSQL DBaaS offerings—Couchbase Cloud, MongoDB Atlas, and Amazon DynamoDB—across various workloads and cluster configurations. The report found Couchbase Cloud consistently outperformed its competitors, demonstrating low latency and high throughput in update-heavy, short-range scan, pagination, and JOIN query workloads. While MongoDB Atlas performed well in certain scenarios, it struggled with JOIN operations, and Amazon DynamoDB faced challenges due to its indexing process, resulting in a high rate of failed operations. Overall, Couchbase Cloud was identified as the most robust and scalable document store DBaaS among the three.
Apr 26, 2022 715 words in the original blog post.
The text provides a detailed walkthrough for setting up a private network connection between a new Couchbase Capella cluster and an AWS Virtual Private Cloud (VPC) using VPC Peering, which is essential for high-performance, mission-critical applications. It explains the process of creating a Couchbase Capella cluster on AWS, ensuring that the cluster's region and CIDR block are compatible with the AWS VPC. The guide includes steps for creating a new VPC, launching an EC2 instance, and configuring networking settings such as enabling DNS Hostnames and Resolution. It then details the process of creating a peering connection between the Capella cluster and the AWS VPC, including accepting the peering request, associating VPCs with hosted zones, and modifying route tables. The final setup involves testing the connection to ensure communication is now occurring over a private network rather than a public one. The text emphasizes that while the guide provides a foundational approach to VPC peering, individual AWS environments may require additional considerations and offers resources for further support and information on Couchbase Capella.
Apr 25, 2022 1,494 words in the original blog post.
As the world emerges from pandemic restrictions, Couchbase is celebrating Earth Day 2022 by reinforcing its environmental commitment through various initiatives aimed at reducing its carbon footprint, waste, and energy consumption, particularly in its offices and data centers. The company is actively engaging its "Green Team" to focus on creating an eco-friendly workplace, supporting employees' environmental efforts at home, and leveraging its products to help partners and customers achieve their sustainability goals. Key initiatives include promoting sustainable purchasing practices, minimizing packaging and single-use plastics, implementing a carbon analysis and offset program, and collaborating with the IT department to reduce energy use. Couchbase views Earth Day as the starting point for a broader commitment to environmental stewardship throughout 2022, inviting others to join in these sustainability efforts.
Apr 22, 2022 310 words in the original blog post.
This blog post is part of a series on building an end-to-end mobile application using Couchbase Lite. In this third installment, the author explains how to add syncing functionality to a centralized server. The process involves installing Couchbase Server and Sync Gateway Server on a local machine or cloud environment, creating a user account for the sync gateway, and configuring the replicator configuration with the local database and centralized database details. The author also demonstrates how to enable device-to-server syncing by toggling the sync switch and sending rating requests between users. Finally, the post showcases how to update the main page of the app to display incoming rated requests and change the stars on a request based on user input.
Apr 21, 2022 2,252 words in the original blog post.
Over the past decade, there has been a significant transformation in the development and deployment of applications, moving away from traditional ERP and CRM systems to embrace modern capabilities such as dynamic data and real-time information. A recent webinar by Couchbase highlighted how they assist customers in building modern applications using flexible JSON documents combined with the familiar power of SQL, catering to more complex requirements than legacy systems. The webinar emphasized three critical areas: delivering personalized and responsive user experiences, developing efficiently by simplifying and accelerating processes while leveraging existing skills, and deploying effectively across various platforms with the assurance of 100% uptime and cost-effectiveness. Traditional relational databases are deemed too rigid for modern applications, making JSON document datastores ideal for flexibility while still utilizing relational capabilities and SQL. The webinar also provided insights into Couchbase Capella, their database-as-a-service, and discussed features like automatic sharding, ACID transactions, and SQL++ for enhanced database management.
Apr 21, 2022 392 words in the original blog post.
SQL++ queries in Couchbase can incorporate business logic through User Defined Functions (UDFs), particularly beneficial for operations like calculating distances from a user's geographic location. This is demonstrated by creating a UDF in JavaScript that calculates distances using the Haversine Formula, which is then integrated into SQL++ queries to provide geographic points of interest, such as nearby landmarks and airports, from the travel-sample dataset. The JavaScript functions are imported into Couchbase via the REST API, and the UDFs can be executed within SQL++ queries. To enhance performance and reduce load on the Couchbase cluster, similar distance calculations can be performed using UDFs written in Python within the Couchbase Analytics service, which requires enabling Developer Preview mode. This approach allows for efficient processing of complex queries without affecting transactional data services, with real-time data synchronization between the Data and Analytics Services.
Apr 20, 2022 2,717 words in the original blog post.
The text outlines the process of building an ASP.NET Core endpoint to read data from a Couchbase database using SQL++, a comprehensive SQL implementation designed to interact with JSON data. In this guide, the author explains how to write and execute a SQL++ query to retrieve wishlist items, highlighting the importance of creating a primary index for query execution and how to use the META() function to access document metadata. The document also details how to implement this functionality in an ASP.NET Core application by creating an endpoint that interacts with the Couchbase cluster using SQL++ queries and discusses scan consistency options available during query execution. The guide concludes by suggesting further exploration of Couchbase capabilities and hints at upcoming content on alternative data access methods in future posts.
Apr 18, 2022 1,139 words in the original blog post.
Couchbase has released Autonomous Operator 2.3.0, focusing on simplifying DevOps and development while introducing innovative solutions. Key features include the management of Scopes and Collections, which are significant architectural improvements from Couchbase Server 7.0 that enhance data organization and application density for microservices-based architectures. These features enable schema isolation and microservice-based isolation, allowing for more efficient data management and reduced total cost of ownership. The release also introduces a new Operator Self-Certification Lifecycle tool, which helps users validate the compatibility of their Kubernetes platforms with Autonomous Operator, even if they are not using officially certified platforms. This self-certification tool is particularly useful for those dealing with data locality issues, on-premise deployments, or vendor lock-in. Additional enhancements and resources are available in the product-specific release notes.
Apr 14, 2022 554 words in the original blog post.
Couchbase recently participated in a Cloud Database Battleground industry event where it discussed its highlights and customer stories with several leading cloud database vendors. The purpose of the event was to deliver in-depth discussions on various topics such as analytics, security, performance at scale, and data distribution across hybrid and multi-clouds. Couchbase showcased how it helps organizations manage data at scale and speed, become more data-driven, and create new revenue streams. It also highlighted its trusted data environment and simplified data distribution across different cloud environments. The company shared customer stories of FICO, UPS, and Gluu mobile, which demonstrated the success of Couchbase in driving business results for these organizations.
Apr 13, 2022 292 words in the original blog post.
This summary provides an overview of how microservices can leverage Couchbase as a scalable and resilient datastore by subscribing to a Solace PubSub+ Topic, processing the data, and updating the document in Couchbase. The example application stores hotel details in Couchbase and updates the configuration with new attributes using the sub-document API for efficient updates. The process involves setting up a Solace PubSub+ Topic, creating a JCSMPSession, and implementing an XMLMessageConsumer to subscribe to messages from the topic. The received message is then converted to a JSON object and used to update the hotel document in Couchbase using the sub-document API. The code example is available on GitHub for further reference.
Apr 12, 2022 1,780 words in the original blog post.
Couchbase has been acknowledged for its excellence by being named a leader in multiple categories in G2's 2022 Spring Reports, which are based on customer satisfaction and market presence. The recognition includes leadership in Document Databases and Key-Value Databases grids, as well as having the best support in the mid-market for Key-Value Databases. This accolade reflects extensive customer feedback and highlights Couchbase's strong market presence and social impact. The company attributes its success to the combination of its products and core values and encourages customers to share their experiences on the G2 platform.
Apr 11, 2022 206 words in the original blog post.
In this installment of the series, the author explores the development of Python-based microservices using Couchbase, focusing on performance and scalability. The text discusses the implementation of a User Profile service in Python, initially utilizing a "full code" approach with Python’s HTTPServer class, and later transitioning to FastAPI for improved performance through asynchronous programming. The article highlights considerations for processing request paths efficiently and securing the microservice with a Bearer Token. The service is containerized using Kubernetes for testing with different implementations, including a Node.js version for comparison. The Node.js implementation demonstrated superior performance in terms of latency, but the Python versions, particularly with FastAPI, showed effective scalability. The text concludes by acknowledging Python’s suitability for moderate load services, while suggesting Node.js for high-scale, low-latency applications, emphasizing Couchbase's compatibility with multiple languages and frameworks.
Apr 11, 2022 2,979 words in the original blog post.
Couchbase Lite has released a plugin for Visual Studio Code that allows users to inspect and manage their databases in a rich, graphical, cross-platform setting. This plugin extends the capabilities of the text editor by providing CRUD operations, including listing documents, editing documents, querying databases, and more. The plugin is open source and can be found on GitHub, with straightforward build instructions. It uses a stable tested build of the Couchbase Lite library underneath to provide functionality, and it's currently available as a prerelease number, but is expected to become fully stable in the future. With this plugin, users can explore their databases more easily, and it provides an excellent introduction to Couchbase Lite databases outside of the context of Couchbase Lite itself.
Apr 07, 2022 619 words in the original blog post.
Couchbase offers a robust solution for customers needing ACID transactions, high durable writes, high availability, and high performance, whether deployed on-premises or in the public cloud. Its architecture, featuring event-driven and asynchronous design, supports automatic failover, high availability, and high performance through the use of server groups that distribute active and replica data across multiple nodes and availability zones. This setup helps avoid data loss and split-brain scenarios while ensuring consistent data transactions without conflict resolution. The ability to combine clusters into auto-sharded databases enhances traffic handling and redundancy, with features like cross-datacenter replication facilitating seamless integration and high availability. Couchbase's design emphasizes operational autonomy and ease of use, requiring no downtime during transitions and minimizing the workload for DevOps teams through its built-in auto-failover and data distribution capabilities. Looking ahead, Couchbase's Autonomous Operator for Kubernetes and OpenShift promises further automation, enabling self-healing and self-administering clusters with minimal manual intervention.
Apr 06, 2022 1,164 words in the original blog post.
This multipart blog series provides a detailed guide on building an end-to-end mobile application using Couchbase Lite, focusing on creating scalable, production-grade apps with features like an embedded database, synchronization capabilities, and advanced analytics. The series is divided into three parts, with Part 2 emphasizing the implementation of Full-Text Search (FTS) on mobile devices. Couchbase Mobile, an award-winning NoSQL cloud database, supports versatile deployment environments, including cloud, on-premises, and edge computing, and integrates features such as an embedded database (Couchbase Lite) and a high-performance Sync Gateway for synchronization. The blog offers a step-by-step approach, including code snippets and layout configurations, for Android app development using tools like Android Studio and Java, and highlights the importance of understanding Couchbase Lite documentation for database creation and management tasks. This part of the series builds on the foundational application created in Part 1 and prepares for the upcoming implementation of peer-to-peer syncing in Part 3.
Apr 05, 2022 1,414 words in the original blog post.
The text provides a comprehensive guide on setting up an ASP.NET Core project with a NoSQL database using Couchbase Capella, focusing on creating a CRUD (Create, Read, Update, Delete) HTTP API for managing a gift wishlist. The project involves using Visual Studio 2022 and the Couchbase .NET SDK to connect to a Couchbase cluster, with instructions for configuring database credentials, whitelisting IP addresses, and utilizing dependency injection for seamless Couchbase integration. It outlines the creation of a simple data model represented by a C# class for wishlist items and demonstrates how to initialize the database with sample documents. The guide also describes the setup of an ASP.NET Controller named GiftsController, which will handle CRUD operations using the IBucketProvider to access the Couchbase database. The post concludes by indicating that future updates will cover the development of the actual CRUD endpoints and encourages readers to explore Couchbase resources and sign up for a trial account.
Apr 04, 2022 1,051 words in the original blog post.