Category: Java

Introducing the Couchbase Java SDK 3.0 Alpha

Introducing the Couchbase Java SDK 3.0 Alpha

I am super excited to finally write this announcement, because it allows me to put the spotlight on something we’ve been working hard over the last months. In a collective effort across the SDK team, we have started to roll...

Michael Nitschinger June 18, 2019
Getting Rid of Sticky Sessions in Java | Couchbase Spring Session

Getting Rid of Sticky Sessions in Java | Couchbase Spring Session

Sticky Sessions refers to the need to redirect the requests of a given user to the same server where his session lives in. It is considered an anti-pattern as in case of a server failure, all users connected to it...

How to Boost Spring Data Performance

How to Boost Spring Data Performance

Spring Data provides an easy programming model for data access in both relational and non-relational databases. It became very popular among Java/JVM developers because of the small learning curve and low codebase. However, developers frequently run into performance issues while using...

Create a production-grade Java microservice architecture with JHipster and Couchbase

Create a production-grade Java microservice architecture with JHipster and Couchbase

Tayeb Chlyah is a Java lead architect with solid experience on performance large-scale applications, microservices, and NoSQL databases. He has developed a couple of open source Java libraries for Couchbase.   Introduction Every successful developer needs to keep up to date...

NDP Episode #26: Chris Anderson on ACID and RAFT in FaunaDb

NDP Episode #26: Chris Anderson on ACID and RAFT in FaunaDb

FaunaDb is the focus of the latest episode of The NoSQL Database Podcast. Chris Anderson joins as the special guest to talk about RAFT and ACID in a NoSQL database. The previous episode of the podcast was Nathan Voxland on...

Matthew Groves January 4, 2019
Exploring RxJava – Wrapping a Listener Callback

Exploring RxJava – Wrapping a Listener Callback

In this post, I’ll show how to convert a callback-based listener style API to a reactive one with RxJava 2. Contents Introduction Objective Getting Started Creating a Source Listing: BasicSource.java Listing: UnboundSource.java Converting to an Observable Listing: Observables.java Instantiation and...

How to log queries generated by Spring Data

How to log queries generated by Spring Data

One of the ways to improve your application performance in Couchbase is to create indexes for common queries. However, when you are working with Spring Data using its standard DSL, the generated query is not very clear, which makes a...

NDP Episode #25: Nathan Voxland on Liquibase

NDP Episode #25: Nathan Voxland on Liquibase

Liquibase is the focus of the latest episode of The NoSQL Database Podcast. Nathan Voxland joins as the special guest to talk about source control for your database. I’m also joined by special co-host Denis Rosa, a developer advocate who...

Matthew Groves November 13, 2018
What Is Fuzzy Matching and How to Use It Correctly

What Is Fuzzy Matching and How to Use It Correctly

Have you sound yourself asking the question, “What is fuzzy matching?” Fuzzy matching allows you to identify non-exact matches of your target item. It is the foundation stone of many search engine frameworks and one of the main reasons why...

Spring Security & Dynamic Client Registration | OAuth Part 3

Spring Security & Dynamic Client Registration | OAuth Part 3

We already discussed how to configure an OAuth 2.0 authentication and how to build a custom token store. In the last article of this series, you will learn how to implement a custom dynamic client registration using spring-security-oauth2. I recommend you...

How to Create a Custom Token Store for Spring-Security-Oauth2 | OAuth Part 2

How to Create a Custom Token Store for Spring-Security-Oauth2 | OAuth Part 2

In the previous blog post, we discussed how to configure a simple OAuth2 authentication. However, our implementation has a major flaw in it: we are using an in-memory token store. In-Memory token stores should be used only during development or...

How to Configure OAuth2 Authentication With Spring-Security-Oauth2

How to Configure OAuth2 Authentication With Spring-Security-Oauth2

As you might have noticed in my previous blog posts, I am a big fan of Spring + Java and Spring + Kotlin. Consequently, whenever I need to implement an OAuth 2.0 authentication, spring-security-oauth2 lib is a natural choice. However,...