Home > Blockchain >  How can I get an Email when my APIs goes down?
How can I get an Email when my APIs goes down?

Time:08-24

I have a few APIs written in NodeJs using Express, Which are hosted on AWS EC2, What can I do to get an email whenever my APIs go down? Can I use any service of AWS like CloudWatch to send an Email when my API crashes?

CodePudding user response:

Consider using CloudWatch's synthetic monitoring to:

create canaries, configurable scripts that run on a schedule, to monitor your endpoints and APIs. Canaries follow the same routes and perform the same actions as a customer, which makes it possible for you to continually verify your customer experience even when you don't have any customer traffic on your applications. By using canaries, you can discover issues before your customers do.

You can monitor canary events with EventBridge and send custom notifications, including email.

CodePudding user response:

I'm just a beginner, but isn't SNS the solution you would want for this situation?

  • Related