#Sending email to 1 milion users Spring Boot

1 messages ยท Page 1 of 1 (latest)

green currentBOT
#

<@&987246584574140416> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Tell, me what would you like to use when you have to for example for once a week send an email to 1 milion users. Pagination? Batch processing? RabbitMQ? I have now scheduled method for taking users with pagination and async send email.

would recommend using batch processing for sending emails to 1 million users once a week. Batch processing allows you to process large amounts of data efficiently by breaking it down into smaller chunks, which is ideal for handling a large number of email addresses.

Pagination could also be used in conjunction with batch processing to divide the list of users into manageable pages, making it easier to process and send emails in smaller batches.

RabbitMQ, on the other hand, is a message broker that can be used for communication between different parts of your application. While RabbitMQ could potentially be used for queuing and sending emails, it may not be the most efficient solution for handling such a large volume of email addresses.

Overall, utilizing batch processing with pagination would be the most effective approach for sending emails to 1 million users once a week in a Spring Boot application. This combination allows for efficient processing and ensures that all users receive their emails in a timely manner without overwhelming the system.

lyric stirrup
#

I think you have to clarify the requirements and terms: For example, if you say you do it with "Pagination" this is - at least from my understanding - nothing very different from a BatchProcessing (or do you make this distinction, because the Batch is something that runs a cron job in background)?
You should ask yourself, how to deal with errors, for example: If you have a batch/page with 100 mails to be sent and one of them fails, what should happen then? - Retry? Forget it? - Depending on the answer of questions like this you might restrict your options.

lone osprey
#

this is just notification about for example new tshirts