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

消息推送跟踪 #79

Open
tianxiaoliang opened this issue Jan 21, 2020 · 2 comments
Open

消息推送跟踪 #79

tianxiaoliang opened this issue Jan 21, 2020 · 2 comments

Comments

@tianxiaoliang
Copy link
Contributor

tianxiaoliang commented Jan 21, 2020

场景:
用户关心当前客户端拉取配置的状况。并且帮助定位为何配置没有生效。

需求:
对于所有客户端,需要追踪客户端(记录IP,User-Agent),以及他的拉取条件(比如key,label,revision,wait),返回值(response body,header)

不要记录历史信息,只需要把user agent和ip作为unique id存储,记录他最新的拉取信息即可

collection: polling_detail
列:
id,polling date,IP,user agent,url path,response body,response header

@tianxiaoliang
Copy link
Contributor Author

tianxiaoliang commented Jan 22, 2020

客户端通过header传输instance id,来确定唯一进程

unique id应该是intance id+domain

如果客户端不按照约定传,就不做记录了

tianxiaoliang pushed a commit that referenced this issue Feb 17, 2020
* record polling history

* fix bugs and use chan get body

* add unit test

* rename by comment

* use context instead of chan

* use const instead string

* modify as comment
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 26, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 26, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 27, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 29, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 29, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 29, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 29, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Feb 29, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 2, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 2, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 3, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 3, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 3, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 5, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 11, 2020
GuoYL123 added a commit to GuoYL123/servicecomb-kie that referenced this issue Mar 11, 2020
tianxiaoliang pushed a commit that referenced this issue Mar 20, 2020
* add get interface for polling data

* change header

* db modify

* fix update failed

* modify as comment

* modify as comment

* go checker

* add handler to test

* modify

* when header is empty don't record
@develpoerX
Copy link
Contributor

使用mogondb自身的TTL索引,记录推送轨迹,通过判断revision和sessionId来进行区别每一条记录。

develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 24, 2020
新增TTL索引来实现推送轨迹有效期控制,通过revision和session_ID来区分记录的唯一性
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 24, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 24, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 24, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 24, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 24, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 24, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 25, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 25, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 25, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 25, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 26, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 26, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 26, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 26, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 26, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 26, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 28, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 28, 2020
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 28, 2020
1.补充返回状态判断;
2.新增索引domain+sessionid+revision
develpoerX added a commit to develpoerX/servicecomb-kie that referenced this issue Dec 28, 2020
tianxiaoliang pushed a commit that referenced this issue Dec 29, 2020
* #79 消息轨迹推送跟踪

* #79 消息轨迹推送跟踪
1.补充返回状态判断;
2.新增索引domain+sessionid+revision

* #79 消息轨迹推送跟踪
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