September 2018 Summaries
10 posts from Couchbase
Filter
Month:
Year:
Post Summaries
Back to Blog
The text provides a detailed guide on implementing a custom dynamic client registration using Spring Security OAuth2, building on previous discussions about OAuth 2.0 authentication configuration and custom token stores. It introduces the creation of an entity, `CustomClientDetails`, to store client data and a corresponding repository interface to manage it. The document then explains how to implement the `ClientDetailsService` interface by using the `CouchbaseClientDetailsService`, which retrieves client details from the database. The guide highlights using the `BaseClientDetails` class and configuring the `AuthorizationServerConfig` to utilize the `CouchbaseClientDetailsService`. Finally, it outlines how to insert a new client into the database and use these credentials for OAuth authentication, emphasizing the key step of implementing the `ClientDetailsService` interface to pass it to the `ClientDetailsServiceConfigurer`.
Sep 25, 2018
726 words in the original blog post.
The text is a detailed guide on creating a custom token store for OAuth2 authentication using Spring Security with Couchbase as the storage solution, rather than the default in-memory token store. It highlights the limitations of in-memory stores, such as their unsuitability for multi-server environments and their vulnerability to data loss on server restarts. The author provides a step-by-step walkthrough for setting up the necessary entities and repositories for access and refresh tokens, along with implementing a custom `TokenStore` class that handles token serialization and storage. The guide demonstrates altering the SecurityConfig class to integrate CouchbaseTokenStore, ensuring tokens are stored persistently. The author acknowledges the difficulty of implementing a custom token store and offers this guide to save others time and effort, while also addressing a reader's query about the possibility of incorporating JWT into the implementation.
Sep 21, 2018
1,578 words in the original blog post.
The blog post details the integration of OAuth 2.0 authentication with Spring Security using the spring-security-oauth2 library, focusing on configurations beyond in-memory and JDBC data sources. It introduces a tutorial divided into three parts: authenticating users, configuring a token store, and setting up dynamic clients while using Couchbase with Spring Data for demonstration. The tutorial covers implementing a Resource Server and a CustomUserDetailsService to bridge data sources with Spring Security OAuth, emphasizing the importance of using a UserDetailsService interface for user authentication. It discusses configuring a SecurityConfig class to manage authentication, token storage, and CORS settings, and introduces an Authorization Server for managing client credentials and token validity. The author suggests using Couchbase's Key-Value Store for improved performance and invites readers to reach out for further questions.
Sep 20, 2018
2,157 words in the original blog post.
In full-text search, analyzers, tokenizers, and filters play a crucial role in shaping the result of searches. An inverted index is used to efficiently store and retrieve data, allowing for fast matching of terms against large datasets. Tokenizers split text into words or smaller units, while filters remove irrelevant information and transform tokens into standardized forms. In the context of a Shazam-like app that uses Parsons code to identify music melodies, these components work together to convert user input (whistled notes) into a query term that can be matched against the indexed data. The choice of tokenizer and filter can significantly impact search results, highlighting the importance of selecting the right tools for the job.
Sep 12, 2018
1,299 words in the original blog post.
The YCSB-JSON benchmark is an extension of the original YCSB benchmark to measure the performance of JSON databases. It extends the existing operations to JSON and defines new operations and workloads to cover the capabilities of JSON databases, such as nested objects, arrays, and query language. The benchmark aims to provide a comprehensive evaluation of the performance of JSON databases in supporting massively interactive applications. It includes various operations like insert, update, read, delete, scan, search, page, nestscan, arrayscan, and report, which can be combined to create different workloads. The YCSB-JSON implementation is available for Couchbase and MongoDB, and the source code is accessible on GitHub. The benchmark also includes a YAML file to generate customer and orders datasets.
Sep 10, 2018
3,295 words in the original blog post.
The latest episode of The NoSQL Database Podcast features ArangoDb, a multi-model NoSQL document database, with Max Neunhoeffer as the special guest. This episode marks a transition in hosting duties from Nic Raboy to the new host, who welcomes Raboy as a guest to ensure a smooth handover. The podcast, which previously covered Couchbase, the Engagement NoSQL Database, with guest Justin Michaels, is available on major platforms like iTunes and Pocket Casts. Listeners can engage with the hosts and guests via Twitter for further questions, and additional information on Couchbase Server can be found on the Couchbase Developer Portal.
Sep 10, 2018
153 words in the original blog post.
Couchbase has launched its new product, the Couchbase Autonomous Operator 1.0, aiming to ensure its enterprise-grade performance and production readiness, particularly when deployed on Kubernetes. This blog post details performance results from YCSB Performance Benchmark tests conducted on Couchbase Server 5.5 using the Autonomous Operator on Kubernetes, addressing enterprise concerns about database performance on this platform. The tests compared two workloads, YCSB A and E, on Kubernetes versus bare metal, revealing that Workload A had comparable performance, while Workload E experienced less than 10% degradation on Kubernetes. The setup involved seven servers with specific resource allocations, and the results highlight that Couchbase Server 5.5 is production-ready for Kubernetes, with minimal performance penalties compared to bare metal deployments.
Sep 10, 2018
1,917 words in the original blog post.
In recent years, the significance of efficient search functionality in applications has become increasingly recognized, primarily due to its potential to boost sales and enhance user engagement. The blog series in question aims to guide readers from a basic understanding to a professional level in implementing search features. The text criticizes the conventional use of the "Like %" SQL query for being inefficient in terms of speed and relevance, as it fails to utilize indexing effectively and does not prioritize search results logically. Full-Text Search (FTS) is presented as a superior alternative, offering enhanced speed and relevance through the creation of inverted indexes and boosting to assign weight to field matches. However, the adoption of FTS can be complex, requiring new infrastructure and dependencies, which deters some developers. The text suggests using specialized FTS engines like Bleve integrated into Couchbase for significant data volumes, as they offer more advanced query capabilities compared to traditional SQL-based systems.
Sep 04, 2018
1,188 words in the original blog post.
The document details the integration of Couchbase's NoSQL database with Kubernetes (k8s) API through a Custom Resource Definition (CRD), aimed at enhancing customer experience by reducing the need for manual cluster management and minimizing vendor lock-in. This integration allows for the creation of custom controllers to manage workflows within a Couchbase cluster more efficiently. The text includes a step-by-step guide to deploying Couchbase's Autonomous Operator on Azure Kubernetes Service (AKS) and highlights the ease of scaling, handling node failures, and administering the Couchbase cluster using Kubernetes automation. The deployment process involves using Azure CLI to create a resource group and a Kubernetes cluster in AKS, followed by deploying the Couchbase Autonomous Operator and Couchbase Cluster, inserting documents, scaling the cluster, and simulating node failures to demonstrate the system's resilience and self-healing capabilities. The integration is presented as a significant innovation in cloud portability and operational efficiency for Couchbase users.
Sep 04, 2018
1,616 words in the original blog post.
The AMD EPYC processor is designed to meet the needs of modern datacenter workloads, offering a flexible architecture that allows users to choose the number of cores and sockets that best suit their requirements without sacrificing key features like memory and I/O. This innovative design enables terrific performance at a low cost, making it suitable for both storage-intensive and compute-intensive workloads. The AMD-EPYC system has been certified with Couchbase 5.5, enabling companies to deliver extraordinary customer experiences by providing an agile and responsive platform that supports exponential growth at low costs.
Sep 01, 2018
292 words in the original blog post.