hidden

Tech blog of j-labs' engineers. Experiences, knowledge, solutions.

Elasticsearch in Java projects - data enrichment

The previous articles present how to index and query documents using a single index. Let's imagine more real-life scenario when the relevant information is kept in few indices and the data should be put together. The one approach is to read documents from each index separately and use pure Java to merge the results, however it may be error-prone. The other solution comes directly with Elasticsearch, it is called data enrichment, where the data from source indices may enrich ingested documents. This article presents what is the data enrichment, how it can be configured and used in Java projects in practise

Mariusz Maślanka |

18 Jul 2022

  Java 
Read more
3

Elasticsearch in Java projects - data enrichment

18 Jul 2022 | Mariusz Maślanka

  Java 

The previous articles present how to index and query documents using a single index. Let's imagine more real-life scenario when the relevant information is kept in few indices and the data should be put together. The one approach is to read documents from each index separately and use pure Java to merge the results, however it may be error-prone. The other solution comes directly with Elasticsearch, it is called data enrichment, where the data from source indices may enrich ingested documents. This article presents what is the data enrichment, how it can be configured and used in Java projects in practise

Read more
4

Elasticsearch in Java projects - RESTful API over HTTP

04 Jul 2022 | Mariusz Maślanka

  Java 

The previous articles focus on the communication with Elasticsearch using Java Rest High Level Client. This article presents the communication over RESTful API over HTTP with a web client Postman. It is very handy tool for testing REST API where you can have your hands dirty by playing with the provided commands on your own. In this article all activities, regarding indices or documents, that were done using Java API are covered so you can easily see how they correspond each other.

Read more
5

Spring Cloud Contract

20 Jun 2022 | Dominik Adamek

  Cloud Spring 

Spring Cloud Contract helps developers in implementing the Consumer Driver Contracts(CDC) approach. In this article, we'll explain what is Consumer Driven Contract Testing and see how to use Spring Cloud Contract project to implement CDC. As an example, we'll use two Spring Boot applications: a Producer exposing a REST API, and a Consumer being a client of Producer's API.

Read more
6

Save your time with MapStruct library

06 Jun 2022 | Michał Nowak

  Java 

The MapStruct library is a great tool that can help you save time and make your life easier. Many times, when working in a microservices environment, we need different objects depending on the layers. For example, when we want to detach our DTO objects from database objects or when we want to create new objects based on previous objects to call another microservice.

Read more
7

Elasticsearch in Java projects - aggregations

23 May 2022 | Mariusz Maślanka

  Java Backend 

This article, in contrary to previous ones, is not dedicated to search. It presents another powerful aspect of the Elasticsearch - Aggregations, that let users analyze and summarize the set of data.

Read more
8

Spring Cloud Config

09 May 2022 | Dominik Adamek

  Cloud Spring 

Spring Cloud Config is a project that offers support for externalized configuration in a distributed system for both client side and server side. At server side, Spring Cloud Config helps you to implement a Config Server, which is a central service that manages configuration for applications across all environments. At client side, you can use Spring Cloud Config to automatically fetch appropriate properties at the application startup. In this article, we'll show how to use Spring Cloud Config to implement a Config Server and how to use it at a client side.

Read more
9

Elasticsearch in Java projects - index and read documents

25 Apr 2022 | Mariusz Maślanka

  Java 

Nowadays market puts a huge demand for projects on efficient searching and analyzing capabilities of the big volume data. The answer on this is using Elasticsearch, that can be easily integrated into Java projects. In the series of articles I would like to present how Elasticsearch can be used in practice by developing a simple demo project that will use Elasticsearch features step by step.

Read more
10

Monitor your application with micrometer and Google Cloud Monitoring

11 Apr 2022 | Krzysztof Dymek

  Cloud monitoring 

Monitoring is an integral part of modern Site Reliability Engineering practices. In this article, you will learn how to apply monitoring to your application using Micrometer and Google Cloud Monitoring.

Read more
11

Bottlenecks identification with perf

28 mar 2022 | Piotr Rut

  Linux monitoring 

This article presents how to easily profile a Linux system application with the perf tool. Additionally, you will learn how to visualize gathered data as interactive graphic.

Read more
Page 1 of 16