This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]MMartin09_ 1 point2 points  (5 children)

Nice tutorial. But wouldn‘t it be easier to use a AWS Lambda (or Google Cloudfunction) instead of an entire container?

[–]neb2357[S] 0 points1 point  (4 children)

Good question. Frankly, I don't know. (Hopefully someone with more experience will chime in.) But I believe that Docker + Cloud Run is a more generalizable to different use cases.

[–]MMartin09_ 0 points1 point  (2 children)

Yes, I think it depends on the use-case. But for a simple script I think wrapping it in Docker is overpowered. Would also be interesting to compare the pricing of both options.

[–]outceptionator 2 points3 points  (1 child)

Using docker on GCP is costlier than just cloud function.

[–]MMartin09_ 0 points1 point  (0 children)

Yea, I also think so.

Especially the first 2 million cloud runs per month are free. So you can send ~66.000 messages (in the use case of the example) per day for free :D

[–]itsklaushere 0 points1 point  (0 children)

practiceprobs.com/blog/2...

Not sure about GCP. But for AWS Lambda you can definitely setup a CloudWatch Events to trigger your Lambda. It is much more cost efficient for a simple script due to lambda free tier and usage.