D
D
dostoevskiy542021-11-28 15:17:42
Message Queues
dostoevskiy54, 2021-11-28 15:17:42

How to organize the sending of a large number of letters using queues?

You need to create a service for sending emails. The volume is ~50k per day, and all messages are formed in one piece, and not throughout the day. I thought about using distributed computing with a subsequent increase in workers. Actually the question arose how to organize it all?

From the options I see 2:
1) Create 1 task for each letter in rabbitmq, but then the question arises about performance, will this greatly reduce it and will I have to do batching on the worker (take several tasks at once)

2) Create 1 task with all letters, but then the question is how to divide the load between workers

Who understands the topic, can you tell me how best to organize it all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2021-11-28
@dostoevskiy54

you probably write on something scripted, because 50k connections per day is generally a trifling task, not a trifling task - I don’t even know how
to organize their delivery , google it, probably PowerMTA for a start https://www.sparkpost.com/ powermta/ well, so as not to get up twice - immediately buy here , especially since there is a discount for Friday, it seems, but so - in general, you see everything correctly - pour it into the queue and process it, changing the deliverymen depending on ...

J
javedimka, 2021-11-28
@javedimka

Use a mobile aggregator that can handle email/sms/telegram/whatsapp etc. There are now hundreds of them, and all of them, mostly, you can set up mailing campaigns.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question