Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何更好的区分内外部服务? #27

Closed
8ugMak1r opened this issue Aug 11, 2020 · 1 comment
Closed

如何更好的区分内外部服务? #27

8ugMak1r opened this issue Aug 11, 2020 · 1 comment

Comments

@8ugMak1r
Copy link

  1. 因为业务需要,想在windows起一套内部服务,但是想到编译的时候会因为一些windows的包或者linux的包无法编译。
    想请问一下如何较好的解决这个问题?

  2. 如果外部服务调用内部服务的话,是直接用tiwrp生成的client来请求还是写http请求?这个请求是否应该是在外部服务的dao层?

@taoso
Copy link
Member

taoso commented Aug 11, 2020

  • 我们这边从开发到生产都没有用 windows 的,实在不好支持。有一个办法,你可以在 linux 开发,编译的时候指定 GOOS=windows,会构建 win 平台下的 exe。
  • 服务相互调用建议走 twirp 的额户端。相关代码应该组织到外部服务的 dao 层。

更多信息可以加群讨论
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants