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.
About technology stuff that piqued my interest
Implementing a DSL can’t be easier with Kotlin. Today, we will create a toy DSL to query data from Elasticsearch cluster.
Elasticsearch requests can take a long time. In such cases, we can send them in an asynchronous way, or use async search request.
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.
Query boosting is an interesting technique in Elasticsearch. It lets you control the impact of each query on the final score of matching documents
Sometimes, we need to modify Datadog metrics emitted by a third party libraries. In that case, the MeterFilter interface is a powerful tool.
Kotlin has great support for implementing the delegation pattern. But we must be mindful of its limitations and pitfalls.
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.
In today’s article, we will look at how to handle exceptions occurred inside children of coroutines created by the launch builder.
Due to type erasure, we cannot access type information of generic methods at runtime. Unless we use the reified keyword inside an inline method.
FastAndFaster is a library to create objects and invoke their methods using dynamic code generation. Its performance is very close to static C# code.