logo

Notification Service 作为入口层,如何处理即时通知与定时通知?它与 Scheduler Service 如何协作?

As the entry layer, how does the Notification Service handle immediate vs scheduled notifications, and how does it collaborate with the Scheduler Service?

题目类型: 技术面试题

这是一道技术面试题,常见于澳洲IT公司面试中。

难度: medium

分类: system-design, workflow

标签: ingestion, validation, scheduling, scheduler-service, enqueue

参考答案摘要

TL;DR 入口层接收通知请求后会鉴权与校验,并根据是否包含 schedule.sendAt 决定走即时投递还是定时投递:即时通知直接入队;定时通知交给 Scheduler Service 存储并在到点后入队。 即时通知 请求校验通过后,将通知消息推入 Notification Queue。 定时通知 若请求包含未来发送时间( schedule.sendAt ),则将通知发送给 Scheduler...

本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。

← 返回面试题库

Notification Service 作为入口层,如何处理即时通知与定时通知?它与 Scheduler Service 如何协作?

Mediumsystem-design

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案