通过分布在网络上的通道传递切片和映射结构的最佳方法是什么?我需要分布在多个EC2实例上运行的应用程序,并想知道如何通过按Go通道通信每个应用程序来实现这一点。
这是我想运行的工作流程:
1. Process data in one application
2. Distribute the data into 10 replica applications
3. Each 10 application does its job in a separate EC2 instance
4. Once they are all done, they send the result back to the original program
5. This is sent over the channel
请告诉我。谢谢!
潇湘沐
相关分类