funky-eyes commented on code in PR #923: URL: https://github.com/apache/incubator-seata-website/pull/923#discussion_r1872675772
########## i18n/zh-cn/docusaurus-plugin-content-blog/seata-grpc-client.md: ########## @@ -0,0 +1,232 @@ +--- +title: Go语言客户端与Seata Server通信 +author: 王明俊,Seata 开源之夏学生参与者 +description: 本文以Go语言为例,展示了Seata的多语言客户端通信能力。 +date: 2024/11/30 +keywords: [seata,分布式事务,云原生,grpc,多语言通信] +--- + +# 背景 +随着PR [https://github.com/apache/incubator-seata/pull/6754](https://github.com/apache/incubator-seata/pull/6754) 的合并,Seata Server能够做到识别并处理Grpc请求,这意味着任意语言客户端,只需要引入proto文件,就可以和部署在JVM上的Seata Server通信,进而实现分布式事务的全流程。 + +下面以Go语言为例,向大家演示这一过程。 + +# 环境准备 +Goland 2024.2 + +Idea 2024.3 + +jdk 1.8 + +go 1.23.3 + +Seata 2.3.0-SNAPSHOT + +libprotoc 3.21.0 + +# 操作过程 +## 部署并启动 Seata Server +运行 org.apache.seata.server.ServerApplication#main,如下所示 + + + +## proto文件导入 +在go项目中导入完成本次事务流程所需的proto文件,包括各类事务请求和响应的proto文件和发起RPC的proto文件。如下所示 + + Review Comment: 不允许有外链,需要放到seata io 自身 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org