Building an MVP right now and keep seeing mixed opinions on Amazon Cognito. Some people say it’s great because you don’t have to manage auth yourself. Others say costs + complexity become painful as you scale.
For people who’ve used it: was it worth it? did you eventually migrate away? any better alternatives for startups/simple SaaS apps?
Take this with a pinch of salt, but in the recent 10 years, I have constantly heard from DevOps the same thing:
1.) “All AWS services are great for building an MVP, or very small and simple stuff. But when you can have a complex real product, it is better to have full control over everything.”
2.) “I spend most of my time debugging ARN/IAM/Permissions/VPC .”
3.) “When XYZ company moved out from AWS’s close grip to self-manage/k8s/etc, since then, they have no complaints, and I have to spend only 1-2 hours there per month.”
.
> …any better alternatives for startups/simple SaaS apps?..
Depend on your comfort level and knowledge (or budget/having dedicated DevOps time). A simple, small VPS like Hetzner or other cloud providers (Digital Ocean, Linode, etc) might be way cheaper, with less complexity.
Nowadays, we can’t say that AWS’s startup time/learning curve/infra build time are low. It quickly became extremely complex and no safer or more reliable than anything else on the market, but 5-50x pricier.
I’d opt for an alternative.. Cognito wound up being a yoke around our necks: Some customisation options but not enough. Awkward troubleshooting. Not enough options for users’ information its user pools (wound up creating workarounds via scripts to update users). I’d say it’s worth sinking some time into the other options. Can’t exactly give you a recommendation unfortunately: we wound up integrating a system we’d rolled ourselves for another project
Cognito was not designed as a service to make money itself but to bring you into the AWS ecosystem and get you using other profit-making services. This had an impact on its design and capabilities that are not always in the best interest of users. It also struggled for feature development because it chose to build on a bad database layer.
Have used Cognito in production for a small app for the past 5 years or so. Its perfectly usable and the price is right if you dont need to scale, but since you specifically mentioned scaling I think I have to agree with other replies in the thread , especially because with auth in general migrating it away in the future is quite hard without forcing users to reinit their passwords
ALB supports external OIDC rules so you can defer all auth management to an external idp. There are external idps with much richer featureset than cognito.
Cognito is OK. But our application does not rely on the user ID from the Cognito User Pool. For every new user, we generate our own unique internal ID. Then, when we receive an authenticated Cognito request with an unknown Cognito ID, we make an API call to Cognito to retrieve the user’s email. Using that email, we find the corresponding internal ID and create a mapping between the internal ID and the Cognito ID.
Cognito is great when you don’t have a large user base. It’s excellent for internal applications with limited use and a small number of users. Now, when you’re working with a system with a considerable number of users, or you don’t have control over that number (it can jump from 200 users to 2,000 from one month to the next), Cognito is terrible. It lacks the necessary features for a robust system: native backup, multi-region support…
Depends on your user base and application, for us Auth0 is pathetically cheap. For a development perspective it is basically the gold standard for resources and documentation. If you want to learn anything about auth, go through their docs and a lot of it is applicable to any other vendor you might use.
We’re looking at around $0.25 per active user per month. Our cloud product is priced at an order of magnitude larger than that per user per month. (do note the difference between the two), and we have around 5% of users actually being active in a month.
Cognito is okay, I was using it for a MVP and encountered bugs along the way but got it fixed swiftly by optioning a case (upgrading to business+ plan). It’s used by amazon internally so you’ll see improvements (though very slow), bug fixes and it wont be sunset.
Price, integrates somewhat well with other AWS services. A very good starting point.
I actually moved from Auth0 to Cognito. Auth0 is a good product but I found Cognito would more closely match my requirements in that I can set up multiple apps. My SaaS is building a lot of integrations in to other systems so the OAuth handling in Cognito worked for us