January 2022 Summaries
12 posts from Couchbase
Filter
Month:
Year:
Post Summaries
Back to Blog
The blog post provides a concise guide on connecting to a Couchbase Capella cluster using Node.js, detailing the necessary steps and requirements, such as having a Couchbase Capella account and installing Node.js and its package manager, npm. It includes instructions for setting up a Node.js project, installing the Couchbase Node.js SDK, and using the SDK's built-in examples to connect to a Capella cluster. The guide highlights how to modify example code with user-specific connection details and demonstrates the process of running a connection script to successfully connect to the cluster and perform basic operations, like creating and retrieving a document. The post encourages trying out Couchbase Capella, offering additional resources for learning and training opportunities for further exploration.
Jan 31, 2022
1,427 words in the original blog post.
Couchbase's asynchronous event-driven architecture enables real-time updates across its services by streaming document mutations to its Index, Analytics, Eventing, and Search functionalities. This blog post outlines how to integrate Couchbase with the Solace PubSub+ event broker using the Couchbase Eventing Service, which triggers JavaScript functions in response to data changes. By employing a REST messaging API, the Eventing Service sends mutated documents to a Solace Topic, allowing subscribers to consume these updates via various protocols such as JMS and MQTT. The integration utilizes a sample application demonstrating this process, including setting up a Couchbase single-node cluster and configuring Solace with topics, queues, and REST delivery endpoints. The article emphasizes that while the example uses basic cURL POST requests, a production-ready solution would require more robust error handling and retry mechanisms. The guide concludes with recommendations for leveraging the Solace platform's quality of service features and encourages readers to explore further resources on Couchbase Eventing.
Jan 28, 2022
1,910 words in the original blog post.
Couchbase Server 7.0 Enterprise Edition introduces a Cost-Based Optimizer (CBO) to replace the previous Rule-Based Optimizer (RBO), aligning with the evolution seen in other major relational databases. The CBO relies on optimizer statistics gathered through new SQL++ (N1QL) statements, UPDATE STATISTICS or ANALYZE, which are issued manually to compute statistics on keyspaces, collections, indexes, and term distributions. These statistics are stored in a newly created N1QL_SYSTEM_BUCKET and are available across multiple query nodes, but if the bucket is dropped, the system reverts to RBO until statistics are re-analyzed. The CBO setup also includes options for customizing statistics collection, such as resolution, sample size, and batch size, to optimize resource use and analysis time. Additionally, users can specify which fields or expressions require statistics, including those in WHERE, ON, GROUP BY, and ORDER BY clauses, as well as array index expressions. The system introduces new system keyspaces for managing these statistics, and the EXPLAIN output now includes optimizer estimates, signifying the use of CBO in query planning. However, the process is manual, necessitating regular updates, potentially via automated jobs like cron, to maintain optimal performance.
Jan 25, 2022
2,739 words in the original blog post.
This blog post is the second part of a series exploring how to use Couchbase Server's high-availability features on the Google Cloud Platform (GCP), specifically focusing on Cross Data Center Replication (XDCR) between two clusters in different GCP regions to achieve high availability, disaster recovery, and geo-locality data enforcement. While the concepts are applicable to any cloud environment, the implementation details are specific to GCP. The post elaborates on Couchbase's architecture for data resiliency, including strategies for preventing data loss at various levels, such as write durability, node failure, and cloud region failures. It provides a step-by-step guide to setting up XDCR for both active/passive and active/active high-availability strategies, emphasizing the importance of backups to handle scenarios like data corruption. Additionally, it highlights the replication capabilities of Couchbase, which ensure data consistency through eventual consistency and outlines how XDCR can be part of a broader high-availability strategy for Couchbase clusters in case of data center or regional network failures.
Jan 24, 2022
1,478 words in the original blog post.
Couchbase offers the Couchbase Playground, a user-friendly tool designed to simplify the learning and testing of its database platform without requiring installation or long time commitments. The Playground is particularly beneficial for developers as it supports multiple programming languages like Java, Node.js, Python, and more, providing language-specific code samples and SDKs to execute database operations, including Key-Value operations and SQL++ queries. Users can interact with examples using the default travel-sample dataset and can create a temporary database session for further exploration. For deeper engagement, Couchbase offers a 30-day free trial of Capella, its fully managed database-as-a-service, allowing users to connect with the Playground and explore additional features such as Query Workbench and Full Text Search Workbench, all while receiving support from the Capella technical team.
Jan 19, 2022
487 words in the original blog post.
Google Cloud Platform (GCP) is gaining ground in the cloud compute market, despite initially lagging behind Amazon Web Services (AWS) and Microsoft Azure. Enterprises are increasingly adopting GCP due to its unique features, such as running resources across multiple worldwide regions on a single private network by default, which eliminates the need for VPN connections and reduces global traffic exposure to the public Internet. As a result, more prospects and Couchbase customers are exploring and using GCP, with various documentation available to assist in getting started. To ensure high availability, Couchbase recommends employing Server Group Awareness and Cross Data Center (XDCR) capabilities, which provide enhanced redundancy and protection against data center failure. By following the outlined steps, users can implement Server Group Awareness on a GCE cluster created via the GCP Marketplace, separating services across nodes and assigning them to separate zones for improved fault tolerance.
Jan 17, 2022
1,062 words in the original blog post.
Couchbase Server version 7.0 enhances its role-based access control (RBAC) system by introducing several new administrative roles and refining existing ones to improve security and operational efficiency. The Security Admin role has been split into Local User Security Admin and External User Security Admin, allowing more precise management of user permissions within and outside the cluster. Additionally, two new Full Admin roles—Eventing Full Admin and Backup Full Admin—are introduced for specific cluster-wide operations without altering security settings. The update also includes eight new roles for managing and executing SQL++ Query User-Defined Functions (N1QL UDFs), enabling administrators to apply the principle of least privilege by granting specific permissions at the scope or global level. Two operational roles, Manage Scopes and External Stats Reader, have been added to further enhance control over scopes and access to stats endpoints. These changes are part of Couchbase's ongoing effort to bolster security and streamline database management through more granular access controls.
Jan 13, 2022
883 words in the original blog post.
System catalogs are internal tables and views that provide system-level metadata about objects stored in a database. In SQL Server, accessing these catalogs can be cumbersome due to their scope being limited to individual databases, making it difficult to compare results across multiple databases. In contrast, Couchbase's system catalogs are scoped at the cluster level, allowing for easier comparison and analysis of database metadata. This simplification enables developers to access and analyze database objects with minimal code, making it a convenient approach for database administrators. The text highlights the differences in terminology between SQL Server and Couchbase, demonstrating how these NoSQL databases can simplify tasks typically associated with relational databases like SQL Server.
Jan 12, 2022
1,046 words in the original blog post.
Amid the ongoing digital transformation accelerated by the pandemic, organizations are expected to push further into modernization in 2022 and beyond, embracing technologies like Edge 2.0, AI 2.0, and composable IT to meet growing consumer demands for digital interactions. Edge 2.0 promises to decentralize cloud infrastructure, enabling devices to function offline and improving efficiency in data collection and decision-making, especially in connectivity-challenged industries. AI 2.0 will enhance decision-making through advanced data analysis, reducing human intervention and increasing reliance on explainable AI. The evolving IT landscape will see increased investments in digital experiences, personalization, and real-time analytics, driven by the need to integrate physical and digital services seamlessly. Developer Relations will adapt to support these advancements, emphasizing two-way communication and individualized interactions while navigating the challenges of measuring impact. Composable IT will become crucial for managing applications across diverse infrastructures, facilitating agility and simplicity in technology stacks. As enterprises adopt microservices and edge computing, the focus will be on leveraging multi-cloud environments and observability platforms to optimize performance, all while preparing for unforeseen disruptions in a rapidly changing global landscape.
Jan 11, 2022
1,844 words in the original blog post.
For decades, the last mile of Internet infrastructure has been a weak point, but mobile operators are now poised to improve it with reliable, fast connectivity enabled by AWS Wavelength, which allows developers to leverage 5G networks by deploying application infrastructure directly at mobile operator data centers. Couchbase explored this capability at AWS re:Invent 2021, demonstrating how its master-less architecture simplifies edge computing through a demo auction application that compared latencies between the classic us-west-2 AWS region and the Las Vegas Wavelength edge zone. Administering Wavelength instances requires connecting through a mobile operator's network or using a bastion server, and deploying instances involves setting up a carrier gateway, subnet, and routing table within AWS. Couchbase can be deployed using a Kubernetes cluster or directly onto EC2 instances, and Sync Gateway setup is detailed, with options for incorporating TLS encryption or using a reverse proxy like NGINX. Couchbase's comprehensive suite of features, including Couchbase Lite and Sync Gateway, paired with Wavelength's ultra-low latency, offers a robust platform for mobile applications, and Couchbase is enthusiastic about the potential applications that can be developed using this technology.
Jan 06, 2022
1,142 words in the original blog post.
The unprecedented rise in online mobile shopping has pushed companies to modernize their digital strategies, as the demand for personalized and seamless mobile experiences becomes crucial for cultivating customer loyalty, particularly during high shopping periods like holidays. Leading enterprises are now integrating NoSQL cloud databases with embedded mobile technologies to offer synchronized customer experiences across different platforms, which is essential for maintaining competitiveness and capitalizing on new revenue opportunities. Industries such as banking and retail face challenges in meeting consumer expectations for mobile functionalities, with outdated technology often resulting in customer dissatisfaction and a shift towards more agile digital solutions. To avoid losing customers, companies must enhance their cloud strategies to include mobile and edge capabilities, ensuring that mobile experiences match web experiences by adopting technologies that enable fast, reliable, and innovative mobile applications. As mobile usage continues to grow, neglecting mobile strategies could result in significant competitive disadvantages, emphasizing the importance of investing in scalable and user-friendly mobile applications.
Jan 05, 2022
686 words in the original blog post.
Couchbase has continued to evolve its support for JavaScript, with recent initiatives focusing on improving its compatibility with popular frameworks such as Ottoman, Next.js, and Ionic. Ottoman is an Object Document Mapper (ODM) library that maps JSON documents stored in Couchbase to native JavaScript Objects, providing adaptability, supportability, sustainability, and affordability. The library features a query builder, hooks for maintaining data integrity, schemas and models for defining data structures, immutable data storage, timestamps, custom data types, constraints, and custom validators. Additionally, Couchbase has initiatives underway to extend data quality with field-level encryption, enhanced Management and Query Builder APIs, and GraphQL plugins. Ionic and Couchbase Lite enable the development of offline-enabled mobile apps, while Next.js and Couchbase offer a flexible and scalable solution for building server-side rendered web apps.
Jan 04, 2022
921 words in the original blog post.