mrdulin / blog

Personal Blog - 博客 | 编程技术,软件,生活

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GKE cluster中的定时任务解决方案(二)

mrdulin opened this issue · comments

架构图

image

流程简介

GraphQL API部署在GKE中的资源类型是Deployment,daily report部署在GKE中的资源类型是CronJob,该CronJob的功能是定时publish一个消息到Cloud Pub/Sub,进而触发daily report Cloud Function,执行数据库查询和相关逻辑,得到需要的数据,然后调用send email Cloud Function,该Cloud Function调用SendGrid邮件服务发送邮件给终端用户。

参考


Flag Counter