请问这个题目重点想考察什么内容呢? 和数据收集系统一样吗?
能否给出具体的需求是什么?这个 Logging 是指什么样的 logging,是服务器的 log 吗?是 plain text 还是有特定的 schema?
这样的
Logging system where all dropbox teams would call this api and log the event/something.
The log will be list of key value pairs from differnet teams.
Later on all these teams can query on logs saying give all the entries where key=value. You have to return team specific results.
Every log can have different keys and values.
For eg:
team1 entry 1 : { id : “user1”, key1 : 123, key2:12.67 }
team2 entry 1 : { userguid : “HAK8916”, key22 : 123.34}
每次 call api 可以发送一个 team-specific Kafka event 包含一对 KV pair。然后 Kafka consumer 读取以后把数据存到 Redis,Redis key = team id + key