Re:How we manage plans and features in our SaaS app
by conroy on Sunday March 24, 2019 @12:41AM
(#19474369)
I run a small SaaS app that also has volume-based features. Instead of using queries to check the count, we compute the total count of resources via database triggers. I’m not saying this is a better approach, just that there are multiple ways of doing these calculations.
[ Parent
| on HN ]
Re:How we manage plans and features in our SaaS app
by tnolet on Sunday March 24, 2019 @04:57AM
(#19475252)
We actually do this on the frontend with Vue.js computed properties. Triggers will certainly do that in the backend, but they are bit more initial work than just a simple query.
Re:How we manage plans and features in our SaaS app
by vbsteven on Sunday March 24, 2019 @05:41AM
(#19475389)
Please tell me you are not basing any plan/usage decision on computed properties in the frontend without verifying them on the backend
Re:How we manage plans and features in our SaaS app
by a13n on Sunday March 24, 2019 @07:23AM
(#19475711)
Honestly, at an early stage startup, especially if your target audience isn't developers, it's pretty safe to only do checks on the front end. Just add them later, once you have enough volume that it's a problem.