V
V
Void Vasher2021-03-15 16:28:22
Amazon Web Services
Void Vasher, 2021-03-15 16:28:22

Sending push notifications in batch to AWS SNS?

Hello.

Is it possible to send platform-specific push notifications in a batch?

For example, I have a platform application, and several thousand endpoints in it. Somewhere in my service, I collect a bunch of notifications, with different content for each endpoint, and I want to send them in one request.

Is this feasible in the case of SNS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2021-03-15
@AlgollY

One SNS topic can have a large number of subscribers. Somewhere in your service, you publish a message for a topic and all subscribers receive it. Thus, I would separate each topic for its own type of notification. But you can't push more than 1 message per 1 api call.
I advise you to use SQS queue, there is a batch push of messages. In addition, create a Lambda, the cat will be called every time there are messages in SQS. Lambda can take these messages from SQS and send them to different backends, based on, for example, some field in the message. You also need a deadletter sqs queue, for those messages that were not processed for some reason and remained in the main queue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question