# General guidance on data replication - Google Cloud

**URL:** <https://discuss.elastic.co/t/general-guidance-on-data-replication-google-cloud/315161>\
**Category:** Elasticsearch\
**Created:** [September 26, 2022, 10:09am UTC](https://discuss.elastic.co/t/general-guidance-on-data-replication-google-cloud/315161 "2022-09-26T10:09:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucien\_Perouze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lucien_perouze/32/111266_2.png) [@Lucien\_Perouze](https://discuss.elastic.co/u/Lucien_Perouze)\
**Post date:** [September 26, 2022, 10:09am UTC](https://discuss.elastic.co/t/general-guidance-on-data-replication-google-cloud/315161/1 "2022-09-26T10:09:34Z")

</div>

I'm building a search engine for my app. For that i'm trying Elasticsearch for the first time. My app uses a Postgre SQL. As I understood I need to replicate datas from my Postgre to Elastic Search in order to perform REST searches on it.

I understood that I need to configure a replication stream whenever my Postgre gets updated thanks to Postgre's locical decoding feature. I found few tutorials that recommend using Debezium for data capture and Kafka for transport. But i'm a bit lost on what to build and how to build it.

All my infrastructure runs on Google Cloud. I enabled the logical\_decoding flag on Cloud SQL. I created a ready-to-use Elastic Search and Kafka instances thanks to Google Cloud partnership.

But now I'm kind of lost on how to bundle everything. Should I run an additional Debezium server to capture Postgres changes ? The configurations I've seen seemed a bit overkill for what I'm trying to achieved. Is there any built-in solution on Google Cloud (Is Cloud Fusion suited for this and for production ?) ? I've seen a Postgre plugin on Kafka that seems to be able to capture Postgre data, Is that a solution ? How do I securely connect everything together ?

I'm not even sure I'm going in the right direction... Is there any kind soul around here that could take me by the hand and describes the best stack to achieve a search engine from a Postgre database on Cloud SQL (No web scrapping possible). I'm a fair developper but a learning DevOps.

Thank you very much !

---

<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:** [October 24, 2022, 10:10am UTC](https://discuss.elastic.co/t/general-guidance-on-data-replication-google-cloud/315161/2 "2022-10-24T10:10:02Z")

</div>

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