Skip to content

Duong's Blog

About technology stuff that piqued my interest

  • English
  • Vietnamese
  • About me

Category: English

  • Home
  • English

Send raw bytes to Redis with RedisTemplate

September 15, 2024 duongnt.bkLeave a Comment on Send raw bytes to Redis with RedisTemplate

By default, RedisTemplate convert our data to String before sending it to Redis. In some case, sending raw bytes can help us save some memory.

English, Java/Kotlin Kotlin, redis, RedisTemplate

Fire and forget using coroutine in Kotlin

August 24, 2024 duongnt.bkLeave a Comment on Fire and forget using coroutine in Kotlin

Fire and forget means we start an action and don’t care when or how it finish. Let’s see how we can achieve this with Kotlin

English, Java/Kotlin coroutine, fire-and-forget, Kotlin

Kotlin DSL example with Elasticsearch

August 6, 2023August 6, 2023 duongnt.bk1 Comment on Kotlin DSL example with Elasticsearch

Implementing a DSL can’t be easier with Kotlin. Today, we will create a toy DSL to query data from Elasticsearch cluster.

English, Java/Kotlin dsl, Elasticsearch, Kotlin

Async search with Elasticsearch and Kotlin

July 16, 2023July 20, 2023 duongnt.bk1 Comment on Async search with Elasticsearch and Kotlin

Elasticsearch requests can take a long time. In such cases, we can send them in an asynchronous way, or use async search request.

English, Java/Kotlin async search, Elasticsearch, Elasticsearch API Client, Kotlin

Query data with Kotlin and Elasticsearch API Client

June 27, 2023June 28, 2023 duongnt.bk1 Comment on Query data with Kotlin and Elasticsearch API Client

In Kotlin, Elasticsearch API Client is the recommended library to interact with Elasticsearch cluster. Today, e will find out how to use it to query data.

English, Java/Kotlin Elasticsearch, Elasticsearch API Client, Kotlin

Query boosting in Elasticsearch

May 25, 2023May 25, 2023 duongnt.bk1 Comment on Query boosting in Elasticsearch

Query boosting is an interesting technique in Elasticsearch. It lets you control the impact of each query on the final score of matching documents

English Elasticsearch, query-boosting

Use MeterFilter to change Resilience4j metrics

April 4, 2023April 5, 2023 duongnt.bk1 Comment on Use MeterFilter to change Resilience4j metrics

Sometimes, we need to modify Datadog metrics emitted by a third party libraries. In that case, the MeterFilter interface is a powerful tool.

English, Java/Kotlin Datadog, Kotlin, MeterFilter, Micrometer

Delegation in Kotlin and its limitations

March 23, 2023March 23, 2023 duongnt.bk1 Comment on Delegation in Kotlin and its limitations

Kotlin has great support for implementing the delegation pattern. But we must be mindful of its limitations and pitfalls.

English, Java/Kotlin delegation, Kotlin

Kotlin null safety deep dive

February 6, 2023February 6, 2023 duongnt.bk1 Comment on Kotlin null safety deep dive

At first glances, null safety in Kotlin seems to add new types to the JVM. In this article, we will take a deep dive and see how it is actually implemented.

English, Java/Kotlin Kotlin, null-safety, nullable

The Kotlin launch builder and exception handling

January 22, 2023January 25, 2023 duongnt.bk1 Comment on The Kotlin launch builder and exception handling

In today’s article, we will look at how to handle exceptions occurred inside children of coroutines created by the launch builder.

English, Java/Kotlin concurrency, coroutine, Kotlin

Posts navigation

Older posts
Copyright © 2025 Duong's Blog All rights reserved. Theme: Flash by ThemeGrill. Powered by WordPress