Hacker News new | ask | show | jobs
by joshstrange 967 days ago
Sorry I wasn’t clear.

Yes, that’s the correct SST. Yes, we could host our PHP anywhere and there are options like Cloud Run. We are on AWS and so I was talking about AWS Lambda but I understand that wasn’t clear at all.

The reason for wanting to use Lambda is for bursty/inconsistent workloads. We have EC2 servers that handle all our traffic right now but some are oversized to handle the peaks. There are parts of our system that we could easily offload to lambda to reduce the load on the main servers if we could easily run PHP in lambdas.

I’m going to take a look at the CDK example OP posted (sibling comment to yours) since SST is just a layer over CDK and you can reach down into CDK easily.

1 comments

I see, thanks for explaining!

Have you also looked into Elastic Beanstalk? It's an older AWS service but it's made to help you handle bursts or scheduled peaks.

I was about to say that wouldn't work but EB does appear to let you use a custom AMI which means we could have a FreeBSD host and make use of our full existing stack. I had written it off thinking it was little more constrained, or at least constrained to AL2/linux hosts. Thank you for bringing that to my attention.