Search API with elastic search in .Net core Micro-services

I'm developing a microservice solution for an E-commerce application. I like to use the Elasticsearch for searching the items in different databases like the product from MongoDB, Vendors from SqlDB. I need a clear idea for my requirement on the top of elastic search.

Just to be clear. You don't search in other databases. You search in elasticsearch.
Which means that you need to send your data in elasticsearch as well (duplicate the data).

@dadoonet Thanks. Yes. I got your point. No problem with duplicate the data.

  1. I need to get the export the data from DB to elasticsearch using logstash.
  2. Then I can make the search from elastic search.
    Please correct me If I'm wrong.


But I shared most of my thoughts there:

Basically, I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.

Thanks @dadoonet.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.