共享两个服务器的数据,但在 Frappe 框架上共享不同的脚本

Share data for two servers but for different scripts on Frappe framework

我正在使用 Frappe 框架。我想分享从 注册POS 资料 收集的相同数据,但请记住,它们都位于不同的服务器上。有什么建议吗?

您可以使用事件流。

Event Streaming enables inter site communications between two or more sites. You can subscribe to Document Types and stream Documents between different sites.

For Example: Consider you have more than one Company hosted on different sites, one among them is the main site where you want to do ledger posting and on other sites, the Sales Invoices are generated. You can use Event Streaming in this case. For this, your child company sites can subscribe to the main company site for Item, Customer, and Supplier Document Types. The main Company in turn can subscribe to the child companies for Sales Invoices.

来源:https://docs.erpnext.com/docs/v13/user/manual/en/automation/event_streaming