gugoorg / gugotik Goto Github PK
View Code? Open in Web Editor NEW第六届字节跳动青训营后端进阶实战项目第一名,迷你抖音后端
Home Page: https://gugotik.endymx.qzwxsaedc.cn/
License: GNU General Public License v3.0
第六届字节跳动青训营后端进阶实战项目第一名,迷你抖音后端
Home Page: https://gugotik.endymx.qzwxsaedc.cn/
License: GNU General Public License v3.0
解决方案:
使用 rk-boot 库启动 Service,并添加启动配置文件。
参考:https://medium.com/@pointgoal/grpc-configure-data-transmit-size-f25991e75670
需要保存成功的请求结果,每次只发送未成功的请求。
Feat:
目前的依赖 Service 发现是在 init
里面完成的,但这出现了两个问题:
解决方案:
在 Sevice Server 创建时添加 gRPC 中间件,在每个 handler 执行前初始化所有依赖的 Sevice Client
GuGoTik/src/rpc/feed/feed.pb.go
Line 188 in bfc3503
response 返回 nil,单测不通过
在 addComment 前添加若干中间件
通过 ChatGpt/指标采集 来完成,或者使用别的魔法
panic: ERROR: no schema has been selected to create in (SQLSTATE 3F000)
需要新增环境变量POSTGRESQL_SCHEMA
gorm.Config增加NamingStrategy的TablePrefix,值从环境变量POSTGRESQL_SCHEMA里取
待 Feed 合并入 Master 后开始接入 MQ
将func count暂时移除,下次PR再提交,以过Lint CI
GetWithFunc支持key参数作为failed hook
Cached 设计不当,可能存在Cache覆盖旧Map风险,需要修改New Cache 逻辑
将 Comment 的 Gorm.Model 的 ID 和 CommentId 复用。
例如:User.go
前置Issue: #28
为 Memory, Redis, DB 提供一致化的 Sync 工具
https://redis.uptrace.dev/guide/go-redis-sentinel.html#redis-server-client
MasterName需要增加配置传入,基建的名字的mymaster
导致问题的PR:#40
已接入prometheus,可以在需要处采集指标
consul需要支持鉴权的参数
{"Service":"GuGoTik-AuthService","Tied":"","level":"panic","msg":"Rpc GuGoTik-AuthService register consul happens error for: Unexpected response
code: 403 (Permission denied: anonymous token lacks permission 'service:write' on "GuGoTik-AuthService". The anonymous token is used implicitly when a request does not specify a token.)","time":"2023-08-12T19:56:03+08:00"}
panic: (*logrus.Entry) 0xc0001c2000
已接入prometheus,可以在需要处采集指标
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.