bilibili / bilibili/gengine

如何做到先初始化完全局规则,后根据业务场景动态对请求data进行校验?

Open
#64 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.1k
Forks
281
PR merge metrics
No merged PRs in 30d

Description

当前流程:
1.初始化engine
2.初始化datacontext
3.用datacontext加载规则
4.使用规则对数据进行判定

典型需求是先对规则完成初始化,全局加载,然后不同代码场景动态的地对请求data进行规则判定,即是实现:
1->4
2->3
2->3

不然每次检查数据,都需要完成2,3,4,规则不停重建,有什么方式能实现呢?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the engine and datacontext flow described in the issue, especially how rules are loaded and applied. Determine whether rules can be initialized globally and reused across request-scoped validation; done means supporting the 1→4 and repeated 2→3 flow without rebuilding rules for every check.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.