feat(concurrency): trace 一致性 hash 亲和 + 透传 stream 优化 #20
Reference in New Issue
Block a user
Delete Branch "feat/concurrency-multi-instance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
配合 pricebot 单机多进程:透传层按 trace_id 把同一次比价/领券的所有帧
亲和到同一 pricebot 实例,使进程内内存维护 state、无需 Redis。本仓改动:
6→7 扩容只重映射 ~13%(取模会 ~85%)。
pricebot_instances property;留空 fallback 单实例,向后兼容。
loads 一次拿 trace_id 选实例、转发原始 bytes 不重序列化(省 ~半透传 CPU,
单 worker 即可扛高并发,避开多 worker 破坏短信内存表的坑);覆盖
intent/recognize、intent/step、price/step、coupon/step 四端点。
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com