# Best approach for sharing segment data between two mautic instances with different domians

**URL:** <https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866>\
**Category:** General Discussion\
**Tags:** community, discussion, development\
**Created:** [December 2, 2021, 9:01am UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866 "2021-12-02T09:01:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![shailemalla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shailemalla/32/1394_2.png) [@shailemalla](https://forum.mautic.org/u/shailemalla)\
**Post date:** [December 2, 2021, 9:01am UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/1 "2021-12-02T09:01:39Z")

</div>

Hello,

I was wondering about the best approach to get data of a dynamic segment of a mautic instance to be added to a segment of another mautic instance on a different domain.

Do we do it on database level, webhooks level, or is there some sort of api or maybe even a plugin that can transfer data between two mautics?

Would love to know how to implement this in a robust way.

Thanks

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 2, 2021, 9:10am UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/2 "2021-12-02T09:10:11Z")

</div>

Hi,  
Some questions:  
What is the segment size? Why not to use 1 Mautic?  
How often is okay to synch? Daily? Weekly? Hourly? Upon request?  
Thx,  
J

---

<div class="post-metadata">

**Author:** ![shailemalla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shailemalla/32/1394_2.png) [@shailemalla](https://forum.mautic.org/u/shailemalla)\
**Post date:** [December 2, 2021, 9:16am UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/3 "2021-12-02T09:16:04Z")

</div>

I am fairly new to mautic.

Can we use same mautic to send emails from two or more domains? If yes, then I guess I could use 1 mautic.

Segment size would start from a few hundred and will potentially grow to thousands or even more down the line.

I happy with syncing rate of once per week.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [December 2, 2021, 10:17am UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/4 "2021-12-02T10:17:09Z")

</div>

we run multiple instances for certain clients specifically due to the ESP limitation. In order to get around this we have setup some amazing stuff using [n8n.io](http://n8n.io) where data is passed through to different instances depending on actions like non/opens no/clicks, page hits etc… and then automatically added to different segments, Basically a monster operation running 🙂

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 2, 2021, 11:09am UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/5 "2021-12-02T11:09:39Z")

</div>

Yes, you can have multiple sending domains, there is a plugin for that.  
But in general I would go with @mikew 's suggestion.  
One more thing: with just a little coding you can also do automatic imports / export between instances using the custom import bundle plugin. It makes sense if you seal with 10k+ data at the time, since the custom import runs in 2 min, with webhooks would take more then 50x.  
Joey

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [December 2, 2021, 1:39pm UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/6 "2021-12-02T13:39:58Z")

</div>

Hey @joeyk for some reason I have not been able to get the custom import to run with the parallel flags.

Any pointers

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [December 2, 2021, 1:52pm UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/7 "2021-12-02T13:52:12Z")

</div>

@mikew ive had the same issue since updating to 3.x. I change parallel import setting in local.php and then run overlapping crons as a workaround.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 2, 2021, 3:21pm UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/8 "2021-12-02T15:21:03Z")

</div>

I never tested parallel imports. I’m not constantly running it, rather as a part of a bash script.

1. Make query and create csv
2. Run import.

---

<div class="post-metadata">

**Author:** ![shailemalla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shailemalla/32/1394_2.png) [@shailemalla](https://forum.mautic.org/u/shailemalla)\
**Post date:** [December 3, 2021, 12:11pm UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/9 "2021-12-03T12:11:27Z")

</div>

> [@mikew](#):
>
> we run multiple instances for certain clients specifically due to the ESP limitation. In order to get around this we have setup some amazing stuff using [n8n.io](http://n8n.io) where data is passed through to different instances depending on actions like non/opens no/clicks, page hits etc… and then automatically added to different segments, Basically a monster operation running 🙂

Nice. I will have a look into it for sure.

Thank you.

---

<div class="post-metadata">

**Author:** ![shailemalla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shailemalla/32/1394_2.png) [@shailemalla](https://forum.mautic.org/u/shailemalla)\
**Post date:** [December 3, 2021, 12:12pm UTC](https://forum.mautic.org/t/best-approach-for-sharing-segment-data-between-two-mautic-instances-with-different-domians/21866/10 "2021-12-03T12:12:58Z")

</div>

You’re right, i’ll first try @mikew 's approach and see how it goes.

Thanks!
