Definitely a premature optimization on my part.
Definitely a premature optimization on my part.
We can't get rid of Postgres, but since we run Postgres on GCP we really never even think about it.
Wherever you go, there you are.
Is redis not improving your latency? Is it adding complexity that isn’t worth it? Why bother removing it?
But when you have 0-10 users and 0-1000 requests per day, it can make more sense to write something more monolithic and with limited scalability. Eg, doing everything in Postgres. Caching is especially amenable to adding in later. If you get too far into the weeds managing services and creating scalability you might bogged down and never get your application in front of potential users in the first place.
Eg, your UX sucks and key features aren't implemented, but you're tweaking TTLs and getting a Redis cluster to work inside Docker Compose. Is that a good use of your time? If your goal is to get a functional app in front of potential users, probably not.
But I agree that it would be appropriate to start out that way in some projects.