92 points · by kiyanwang · 4y ago · 39 comments
1. Novelty: It is no longer cool, shiny, hip.
2. Paradox of choice: Just too many things. Though, I prefer AWS Lightsail and do use its services.
3. DevEx: Prefer easier tooling and simpler billing.
4. Realisation: Boring tech works: https://archive.is/sXPN9 (https://twitter.com/jeanqasaur/status/1455589141299675139)
Sure, I can run my personal website on a Pi, but then I have to do the hoops to try and serve it off port 80/443 since my ISP blocks it. I could spend an extra $100/month for business class, but why do that if I can get a $5 VM on lightsail that can host half a dozen small WordPress sites and a DB..
And I know S3 and CloudFront, so I can cut the costs lower and serve the static page for pennies...
I'd pay AWS $0.10/month to avoid the hassles of my ISP and Dynamic DNS..
The paradox of choice doesn't apply here, you don't have to choose between every service offered. You can pick the one or few that work for you and reuse, reuse, reuse. I find it great for small operations; free tiers for really tiny projects, and the choice of managed services for a higher fee but way less maintenance - especially handy for small businesses who don't have the people to be worrying about architecture every day.
kubernetes on the other hand....think will be replaced by fargate/ecs, I still struggle to know why startups with a dozen container services need kubernetes. Not having opinionated standard creates so much complexity with endless amount of configurations.
K8S: many vendors collaborating on a API they all implement
I'd call kubernetes the emerging standard.
Unfortunately I think that the article doesn't make a good case of why this was discarded right off the bat. In particular it is not clear why this wasn't a lift and shift with the NAS storage replaced by S3 and Celery workers placed under an autoscale policy.
Looking at the conclusions the first two are consequences of having on demand compute power while the third one is just surpring (was 70% of the code dedicated to celery infrastructure?).
When running functions as a service, you don't have to administer the OS, you just request the computation, provide an input event, and wait for the results to be computed.
If you use EC2 you need to handle the work submission, the scaling and registration of the workers, and the security and life-cycle of the OS yourself.
It seems to me they didn't get all the benefits of serverless, because they had to write thier own custom workload management code. But probably it would still be simpler than managing the workload across thousands of EC2 instances.
You don't have to administer any OS when you run them with a container orchestration system as a short-lived job.
It's also perplexing how suddenly "managing an OS" is depicted as such a blocker, specially in a time when treating servers as cattle is the norm.
I think ECS is a better fit if you require GPU or you can do with not scaling to zero. Obviously once Fargate catches up and polishes its kinks it would stand on its own but given the way Cognito is, I have very little faith that things will improve quickly (theres an open ticket in cognito that is over 3 years old).
You can trigger it from an s3 upload, for example.
60 minutes for HTTP functions.
10 minutes for event-driven functions.
Not sure why you would need 60 minutes for HTTP invoked functions, that alone should be a signal to offload it to another queue or asynchronous process.
I've used GCP / AppEngine for about a decade now. Built one biz that did $80m gross in its first year. Never even a small threat of being shut down. Recently had a billing issue with GCP and after explaining the problem, they credited me far more than I was even asking for.
I currently have 20k+ servers hitting Cloud Functions (golang) and Cloud SQL 24/7, which is a constant 50 requests/sec... costing me about $100 a month total. It was easy to set up, documentation is well written with clear examples, deployments are all through CI on Github. It just works.
Sorry, but I'm a fan.
To answer your question... https://cloud.google.com/tasks/docs/creating-http-target-tas...
Like I said we did it this way to avoid adding a proper queue and worker pool to this app so not recommended for heavy traffic but it works
You can run short-lived jobs in a container in any container orchestration system or even straight up Docker.
unless you're ok to build your own docker images, then fargate already mentioned should be good