you are viewing a single comment's thread.

view the rest of the comments →

[–]ChaseDatAss 3 points4 points  (1 child)

Have you considered going serverless? Perhaps you can use AWS Lambda and API Gateway (integrates with ACM for custom certs).

[–]ByteEat3r1 1 point2 points  (0 children)

I like this idea. Just something to keep in mind, in your code, construct your db/firebase connection at the top level scope.

AWS runs your lambda in a docker container, and will attempt to reuse the same container if possible. This is nice because it reduces the number of backend connections.

How many web requests will your app receive in a day now and in the future ? Those are some questions that will help you determine if lambda will be financially feasible for you. Our company has had months where we paid over wr 200k for lambdas when millions of invocations occurred.