AI 原生工程笔记AI Native Engineering

实验室Lab

大营销抽奖实验室Big Market lottery lab

个活动activities
3
种身份personas
4
个奖品prizes
9

一1实验台Try it

选一个活动,换一个身份,抽一次。记录会一行行写出,这次请求在哪个节点被接管。Pick an activity, switch persona, draw once. The record writes out, line by line, which node took this request over.

数据来自演示种子Data from the demo seed
不连真实后端No real backend

活动Activity

正在读取活动…Reading activities…

正在加载活动与规则配置。Loading the activity and its rules.

身份Persona

匿名身份,每位访客一个。An anonymous identity, one per visitor.

本档奖池This pool正在读取活动和奖池。Reading the activity and its pool.

奖品Prizes

按住约 1 秒,重置这个身份的额度、积分和中奖记录;空格键或回车键按住也可以。Hold for about a second to reset this persona’s quota, points and records; holding Space or Enter works too.

正在准备抽奖Getting the draw ready

二2读数Readings

先调参数,再看结果:浅色条是配置概率,铜色刻度是这个身份实际抽中的比例。Set the knobs, then read the result: the pale bar is the configured rate, the copper tick is the share this persona actually drew.

权重门槛Weight threshold

这个活动现在没有 rule_weight。切到「权重责任链演示」,或打开下面的开关。This activity has no rule_weight right now. Switch to the weight chain demo, or turn on the switch below.

责任链节点Chain node

额度Quota

正在读取额度。Reading the quota.

积分Points

–

    刻度轴 0–5%。还没有样本:抽几次,铜色刻度就会落在条上。Axis 0–5%. No sample yet: draw a few times and the copper ticks land on the bars.

    三3路径Path

    抽奖前显示这个活动装配的责任链;抽奖后只点亮这次实际走过的边,虚线表示没走。点一个站点,看它在后端做什么。Before a draw it shows the chain wired into this activity; after one, only the edges this draw took light up, and dashed lines were not taken. Pick a station to see what it does in the backend.

    还没抽No draw yet

    正在读取责任链配置。Reading the chain configuration.