As we know master/slave or split database configuration is possible with Magento 2 enterprise edition and not with the community edition.

How we can implement master/slave or split database functionality in community edition? Is there way/resource/tutorial which can help me to achieve this functionality?

  • 1
    There are many features which is only available with Enterprise edition and not with community edition. With help of third party tools/extensions or our own customization we can implement enterprise-only features in community edition. I believe this question also falls in the same category and I do not see it as a waste of time. If it was Magento 1 we could have used separate database for read and write operation by updating app/etc/local.xml . I am looking for a solution using which I can use separate db for read and write operation in Magento 2.
    – amitshree
    Dec 17, 2018 at 15:23

2 Answers 2


You can get more details on how to configure master-slave in Magento 2 from skynix blog post


The source code of the solution is licensed as open source and available here

  • 1
    Looks like a good starting point Arshad. Thanks
    – amitshree
    Dec 21, 2018 at 13:47
  • Unfortunately, the link is down.
    – Gambo
    Jun 11, 2020 at 7:29
  • @Gambo link is not down actually code what they had implemented is not supporting higher version of magento 2. You can get it from github and if u could debug its code u can surely help whole community. Jun 24, 2020 at 20:34
  • 1
    Hope it helps you skynix.co/resources/magento-2-ce-database-replication Jun 24, 2020 at 20:55
  • "UPDATE: We’re sad to inform that this module is not supported by the latest versions of Magento and requires an upgrade." + they took the github repo down.
    – bfontaine
    Jan 31 at 15:32

You can check this documentation:

This feature is available in Magento Commerce only.



  • As I have mentioned in the question I know this is in-built feature on enterprise edition. I am looking for a solution how we can customise it for community edition.
    – amitshree
    Dec 16, 2018 at 7:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.