# Hesitation between three Elasticsearch-based Architectures

**URL:** <https://discuss.elastic.co/t/hesitation-between-three-elasticsearch-based-architectures/299625>\
**Category:** Elasticsearch\
**Created:** [March 14, 2022, 1:34pm UTC](https://discuss.elastic.co/t/hesitation-between-three-elasticsearch-based-architectures/299625 "2022-03-14T13:34:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bechir-jamoussi](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bechir-jamoussi](https://discuss.elastic.co/u/bechir-jamoussi)\
**Post date:** [March 14, 2022, 1:34pm UTC](https://discuss.elastic.co/t/hesitation-between-three-elasticsearch-based-architectures/299625/1 "2022-03-14T13:34:44Z")

</div>

Hello everyone,  
Let me present to you my Use Case:  
I am trying to develop an algorithm that chooses the best communication channel(SMS, RCS, Messenger, Whatsapp, E-mail) and the best moment to communicate with the clients. There are two phases for this algorithm:

- The prediction phase in which it will, based on usage and segmentation criteria, pick the right channel.

- The adaptation phase, in which it will receive everyday logs (CDRs) of the client's actions and usages and try to adapt.(Machine Learning Process)

I am hesitating between three Elasticsearch-based architectures, can you please give me some advice, and if you have any documentation or Architecture to suggest please feel free.

1st: Logstash(Producer) -\> Kafka -\> Logstash(Consumer) -\> Elasticsearch -\> Eland(Machine Learning)

2nd: Logstash -\> Spark -\> Elasticsearch -\> Eland(Machine Learning)

3rd: Logstash -\> Kafka -\> Spark (Do Machine Learning) -\> Elasticsearch

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [March 14, 2022, 8:23pm UTC](https://discuss.elastic.co/t/hesitation-between-three-elasticsearch-based-architectures/299625/2 "2022-03-14T20:23:53Z")

</div>

I'm not familiar with Spark and Eland. However I am pretty sure for anyone to help you they will need to understand your (planned) usage of the elastic stack.

What usecase(s) do you plan to carry out?

---

<div class="post-metadata">

**Author:** ![bechir-jamoussi](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bechir-jamoussi](https://discuss.elastic.co/u/bechir-jamoussi)\
**Post date:** [March 14, 2022, 9:51pm UTC](https://discuss.elastic.co/t/hesitation-between-three-elasticsearch-based-architectures/299625/3 "2022-03-14T21:51:16Z")

</div>

Thank you for your comment, I have just edited my post.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 11, 2022, 9:51pm UTC](https://discuss.elastic.co/t/hesitation-between-three-elasticsearch-based-architectures/299625/4 "2022-04-11T21:51:45Z")

</div>

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