cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

SMS throttling error: long term fix #284

Open sastels opened 4 months ago

sastels commented 4 months ago

Description

As a Notify user, I need SMS to be sent within AWS rate limits

WHY are we building?

As currently configured, Notify will send SMS fragments up to a possible rate of 5500 / minute. Meanwhile, our rate limit with AWS is 3000 / minute. We recently had several celery errors) of the form An error occurred (Throttling) when calling the Publish operation (reached max retries: 4): Rate exceeded

Notify should not send over the allowed rate limit

WHAT are we building?

Some or all of:

VALUE created by our solution

We will not go over our AWS rate limit. Note that during the recent episodes on Feb 5 we only had 27 SMS sends causing errors (and being retried 5 minutes later). This could be worse in the future, however.

Acceptance Criteria

Given some context, when (X) action occurs, then (Y) outcome is achieved.

QA Steps