Method for improving mail sending based on redis
The invention discloses a method for improving mail sending based on redis, and belongs to the technical field of redis message queues. The method for improving mail sending based on redis comprises the following steps: 1) changing real-time mail sending into asynchronous mail sending; 2) controllin...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method for improving mail sending based on redis, and belongs to the technical field of redis message queues. The method for improving mail sending based on redis comprises the following steps: 1) changing real-time mail sending into asynchronous mail sending; 2) controlling mail sending frequency: sending mails at regular time and sending mails by a plurality of mailboxrotation trainings through a timing task; 3) sending selectively according to the mail type. According to the method for improving mail sending based on redis, the service logic execution time can begreatly saved, the concurrent capacity of the system can be improved, server resources can be saved, the problem that a mail box cannot be sent due to frequency limitation of a mail server is solved,and the method has good application and popularization value.
本发明公开了一种基于redis改善邮件发送的方法,属于redis消息队列技术领域。本发明的基于redis改善邮件发送的方法包括以下方面:1)将邮件实时发送改为异步发送;2)控制邮件发送频率:通过定时任务实现定时发送邮件及多个邮箱轮训发送邮件;3)根据邮件类型选择性发送。该发明的基于redis改善邮件发送的方法能够大大节省业务逻辑 |
---|