Satisfy the user

The Research team wants to identify if we have an opportunity to make users’ stream more content. They have identified a challenge which they think is worth exploring: “Improve how Spotify users find…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Spring Reactive Elasticsearch

Hey there! I and my team use Elasticsearch in our project but we implemented it a long time ago. I was wondering what’s new with Spring and Elasticsearch.

We are used to using JPA(Java Persistence API), it is so nice to let the JPA write queries for us. Can we do that for non-relational databases? Yes, we can! Additionally, we can use reactive repositories that return data to us as flux!

This below is a JSON aspect of the stock data for one day. The stock market data changes incredibly fast you may want to store it on a trusted solution :)

But first, you need an Elasticsearch instance to connect. Let me help with that! If you have docker on your local machine once you execute the command below you will have an Elasticsearch instance.

There is not much to talk about, I will give the Github repository to you. Check the code out!

I am putting some important parts of my code just in case if you want to give a quick look at how is the code looks like. Check below.

Thanks for reading this far :)

Add a comment

Related posts:

dua dunia

dunia yang sempurna benar-benar sempurna. di dunia itu hanya ada kebahagiaan. segala keinginan manusia terpenuhi. di dunia itu tidak ada kesusahan, kesulitan, penderitaan. di dunia itu tidak ada…

How to Grow as a Writer

If you have ever put pen to paper, you have probably dreamed of being the next Stephen King, J. R. R. Tolkien, J. K. Rowling, or Jane Austen. Or maybe you have some other writing hero you look up to…