Settings

Theme

$1 API architecture to use in new ideas

imgur.com

1 points by lucastonelli 21 days ago · 1 comment

Reader

lucastonelliOP 21 days ago

Hey, everyone!

I've recently developed and API from scratch, which is costing me around $1.00, and I thought I'd share its architecture here in case anyone is still guessing how to do one without spending a lot or is having a hard time on execution.

The architecture lacks in monitoring a little bit, but you can use Sentry to do so initially or CloudWatch with a few tweaks. It also does not contemplate AWS WAF (or Fastly WAF) which I think is costly for something that doesn't even have traffic yet.

Apart from that, the only costs you'll have, while no one is using it, will come from AWS Route53 Hosted Zones, $0.5 for each one and a little bit every month from decrypting your SSM parameter (KMS costs), but you can store a JSON string and parse to avoid having multiple decryption requests and reduce that cost a little bit more.

If you have any doubts or criticism, feel free to comment. I hope it helps you!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection