Earlier quoted context omitted.
Cleanly separate your logic from AWS dependencies using interfaces / protocols, summarily mock the required service by implementing said protocols (sparing you the pain of mocking the AWS services themselves), and voilà, you're running everything locally. It's easy. But if that's too much for you, the serverless framework has some nice plugins for all of it.
I understand what one can do to create a leaky abstraction for local development. And it is leaky, and it can't be relied upon for correctness, and so while it makes "getting things done" possible, it makes getting things done correctly much more difficult than it needs to be. And local development when you've opted to use systems like Cognito are well beyond its scope, unless someone has something very clever that I…
Ask HN: Best free compute and other resources for startups?
61–70 of 145 posts
Re: Ask HN: Best free compute and other resources for startups?
#62Re: Ask HN: Best free compute and other resources for startups?
#63Earlier quoted context omitted.
Deploying to lambda is literally uploading a zip.
Until you need a database. And an API. And a website. And a CDN. And... And if you get as far as CloudFormation I just have one word of advice. Run!
It's ugly. It has a TON of powerful functionality that the documentation dives into way too early for most people. It has some weird behavior, especially when you get into networking or stateful resources. It's not perfect. But it gets the job done.
Re: Ask HN: Best free compute and other resources for startups?
#64Earlier quoted context omitted.
Serverless framework has an "invoke local" feature that solved this for me. I too was annoyed at the speed of deploy.
It's not the running that's the problem--it's the dependencies. You can run Serverless on Localstack, there's a plugin for it, and you can run locally while pointing at Localstack for your "AWS" dependencies, but the impedance mismatch remains pretty high. (Also, getting a bit further away from that, I find API Gateway kinda shifty and I dislike that it's so hard to run something like NestJS inside of Serverless. Doa…
Are you saying you need an environment to test in that is 100% disconnected from the internet? Given the interconnectedness of APIs in 2019, that seems like making things harder than necessary.
Re: Ask HN: Best free compute and other resources for startups?
#65Heroku's free tier is good. GCP App Engine is pretty similar, a little more powerful, but also more limiting in how you build your app. My pick for MVPs is AWS Lambda. It's very easy to get up and running, and you get access to the rich AWS ecosystem. Yeah yeah, the "unlimited scale" benefit will be great when you're accelerating user growth, but that's not why its a good pick for MVPs. Need a cron? Not too bad on Ap…
The difficult part with AWS is local development. Waiting on AWS deploys is not a fast process and it kills momentum. LocalStack tries, but IMO it's not great.
Re: Ask HN: Best free compute and other resources for startups?
#66Re: Ask HN: Best free compute and other resources for startups?
#67Earlier quoted context omitted.
It’s not a bad idea if your ISP gives you a static IP and you’ve got some spare hardware lying around (just in case closing your laptop causes downtime). If you can isolate that box from the rest of your home network, even better. Personally I’ve been using $3 Lightsail instances on AWS. There’s a lot you can do with one CPU and half a gig of RAM. An MVP Rails app will squeeze into that easily enough.
Even without a static IP, a free dynamic DNS service is good enough to prototype on a local machine as long as you aren’t using enough bandwidth to tip off your ISP. At that point, however, you’ve probably got enough market validation to move to another host.
Re: Ask HN: Best free compute and other resources for startups?
#68Earlier quoted context omitted.
I understand why some are downvoting this but, with consumer internet connections being 1000up/down and a threadripper giving you like 100 cores for a few bucks, this can be a very handy solution, with quicker deploys and easier management. security might be too much of a concern for some applications
I have that stack and security concerns are holding me back. Any suggestions for ways to secure a home network for public hosting?
I did all of this for my family's software company 20 years ago. We were serious about it, too: SDSL line (good at the time!) with an SLA, natural gas standby generator, redundant hardware... never again. I spent all my time futzing with infrastructure rather than producing any business value.
I did learn a ton, and that continues to be valuable (it surprises me how often I'm the only dev in the room that has experience configuring IP routing). But it's a huge time-sink, and I'd never consider doing it to save money (the amount of money saved would be marginal, at best).
Re: Ask HN: Best free compute and other resources for startups?
#69Re: Ask HN: Best free compute and other resources for startups?
#70Zeit Now 2.0 has a free serverless tier: https://zeit.co/now MongoDB Atlas has a free cloud database tier: https://www.mongodb.com/cloud/atlas