Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

邮件通过后台队列异步发送 #27

Closed
zgq354 opened this issue Sep 7, 2021 · 3 comments
Closed

邮件通过后台队列异步发送 #27

zgq354 opened this issue Sep 7, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@zgq354
Copy link
Member

zgq354 commented Sep 7, 2021

image

初步判断是发邮件操作发生了阻塞,需考虑将这个操作放到后台,待调研如何实现

@zgq354 zgq354 added the enhancement New feature or request label Sep 7, 2021
@zgq354 zgq354 changed the title 邮件进入发送队列 邮件通过后台队列异步发送 Sep 7, 2021
@zgq354 zgq354 added this to To do in 0xFFFF Dev Sep 7, 2021
@zgq354 zgq354 moved this from To do to In progress in 0xFFFF Dev Sep 8, 2021
@zgq354 zgq354 self-assigned this Sep 8, 2021
@zgq354
Copy link
Member Author

zgq354 commented Sep 9, 2021

官方有提供一个 Queue 的接口,只要做一套 Queue 的实现逻辑就可以
https://docs.flarum.org/extend/update-b10.html#new-features

@zgq354
Copy link
Member Author

zgq354 commented Sep 11, 2021

解決方案:
https://github.com/blomstra/flarum-redis

還需要給容器增加 scheduler、queue 的異步 worker 進程。

  • 參考此方案改造 0xffff-env 的 php-fpm docker 配置

zgq354 added a commit that referenced this issue Sep 12, 2021
@zgq354
Copy link
Member Author

zgq354 commented Sep 12, 2021

已增加 redis 异步消息队列支持

env 相关改动:
0xffff-one/0xffff-env@ad408fa

@zgq354 zgq354 closed this as completed Sep 12, 2021
@zgq354 zgq354 moved this from In progress to Done in 0xFFFF Dev Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant