Hi, I’m developing a flutter app with firebase + Dgraph as the backend solution.
As a solo developer, so i need to be cost-conscious and want to be prepared if the user base of my app suddenly rises to 1 million users. (dreaming ) (Would be sad if I could not afford to run my service if it would be a hit, due to wrong decisions around my backend)
As my app is structured today, each user will read their node once a day (evenly distributed throughout the day, for example, if I have 100,000 users, it will be 1.16 requests per second around the clock) and the more advanced querys that affect tens of millions of nodes will occur relatively less frequently as they are not controlled by the users but by an external source (And the number of advanced querys does not depend on the number of users but is constant).
Slash GraphQL unfortunately becomes very expensive due to the minimum cost of 1 credit even if I only read one node which is 99% of my requests. I found a post (Slash GraphQL Pricing) that you could pay a fixed price instead (but i find no information on the website about that option) based on CPU/RAM/Storage.
1: But then comes the question of how much it takes to run my querys?
2: What can an instance do? (4GB RAM Alpha / 1GB RAM Zero / 20GB Storage / 40GB Data Transfer - $149/month)
3: “Bonus question” what is the difference between RAM Alpha and RAM Zero?
Option three is to run a local instance of Dgraph but i can not find price information on the website. (Only contact Us) Which makes it difficult to compare alternatives. I could have asked this question directly to Dgraph support but i thought that several other people might be interested in an analysis of cost alternative.
Technically, I’m very happy with Dgraph so far, i have used both Neo4J and TigerGraph earlier but I find Dgraph easier to work with.
Hope someone can come up with some input on how I should think about the costs when / if my app grows.