0xffff-one / flarum-0x

🔧 Customized Flarum for the 0xFFFF Community.
https://0xffff.one
MIT License
44 stars 5 forks source link

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

Closed zgq354 closed 2 years ago

zgq354 commented 3 years ago

image

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

zgq354 commented 3 years ago

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

zgq354 commented 2 years ago

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

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

zgq354 commented 2 years ago

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

env 相关改动: https://github.com/0xffff-one/0xffff-env/commit/ad408fae7458caef35514c1647ba2436c8daa69c