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

JsonRpc学习 #2

Open
woshidama323 opened this issue Sep 7, 2021 · 3 comments
Open

JsonRpc学习 #2

woshidama323 opened this issue Sep 7, 2021 · 3 comments

Comments

@woshidama323
Copy link
Owner

简介

如何利用jsonrpc 来搭建web服务

@woshidama323
Copy link
Owner Author

可能的素材

jsonrpc

@woshidama323
Copy link
Owner Author

filecoin中的jsonrpc的结构理解

  • 初步理解 filecoin的 jsonrpc 只是包了一层 注册 输出 handler

对于golang的http 包里
http.Handle("xxx", struct)
是不是将这样的注册信息 放到的http packge 的一个全局变量中?
default mux ?

@woshidama323
Copy link
Owner Author

woshidama323 commented Oct 10, 2021

另外一个思路

graphql 的尝试

素材

  1. tutorial
  2. golang实现artical
  3. golang 库

4 ws实现的例子
https://betterprogramming.pub/graphql-subscriptions-with-go-6eb25dec5cd1

flutter支持的库以及实现方法

kafka graphql实现subscribe 功能

是否可以考虑,将计算结果每隔3秒计算 buy sell 净买入总和写到kafka中,让后由外部根据消费情况来推送给前端?

首先 1 每隔三秒计算一次,这个是kafka的produce来决定的,所以不用担心频率问题

根据比较,选择 这个gqlgen

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

1 participant