M
M
Michaebuff2021-01-12 17:21:55
API
Michaebuff, 2021-01-12 17:21:55

Background sending emails in API?

Hello, I am writing an API and wondered if background sending of emails to the API is necessary? Say, if I call a view in the web client that sends a letter, and this operation is expensive, then the client will wait all this time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-01-12
@Michaebuff

Yes. It is better to throw the sending into the queue and process it separately. With the control of failed tasks, because the letter may not be sent for any reason.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question