How to configure two different datasource for a model in Strongloop Loopback framework?

前端 未结 3 1626

Our MySQL database are set up with Write clusters and Read clusters, is there a way to set up Strongloop Loopback Model (e.g. User) to Write to MySQL Host A and Read from My

3条回答
  •  离开以前
    2021-01-05 09:23

    You can define as many datasources as you wish as documented here

    You should then be able to setup how you control the data by adding an ACL to control the access type. In this case READ or WRITE. Documentation on this can be found here

提交回复
热议问题