Re:Ask HN: Best free compute and other resources for startups?
by nicoburns on Wednesday June 19, 2019 @03:20PM
(#20226462)
I avoid systems like Cognito for that reason! SQS I've found to be ok when used as a backend for an abstraction. E.g. Laravel has a generic queue library that can be backed by file or redis or sql, ans using redis locally with SQS in production worked quite well with this.
Re:Ask HN: Best free compute and other resources for startups?
by eropple on Wednesday June 19, 2019 @04:31PM
(#20227024)
SQS has different characteristics from a Redis queue or a RabbitMQ queue. That's the source of a lot of my nervousness around it: when those abstractions break and somebody-who-isn't-me has to debug it.
(I actually have an answer for local dev with Cognito because my current employer already had Cognito when I showed up, but it amounts to "have configurable signing keys and sign your own JWT in dev".)
Re:Ask HN: Best free compute and other resources for startups?
by ElFitz on Wednesday June 19, 2019 @06:00PM
(#20227802)
I don't use Cognito, and all authentication / authorization takes place upstream, in API Gateway.
Our local tests' leaky abstractions don't care about anything happening upstream. They only care about testing our core "agnostic" logic.
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 haven't seen.
From a lot of experience doing this on AWS and on other clouds, I have learned that it is better to use systems that you can operate, and then use hosted versions where applicable. RDS is great, but it's great mostly because you can run PostgreSQL locally and inspect its brain. DynamoDB, SQS, etc. tend to be untrustworthy and should be avoided unless you have a bulletproof story for local testing (and none of the fake implementations are bulletproof).