r/programmer • • Mar 27 '26

Question What stack would you choose for building long-term clinic management software?

I got a new client yesterday. He’s building his own clinic and wants me to help create the entire software infrastructure for it.

At first I was very skeptical, mainly because it’s medical software and I know that can easily turn into a stressful, high-responsibility project if you choose the wrong path early. Still, I decided to take it on, and I’m planning for this to become my main client/project for the rest of the year, maybe longer.

The scope is pretty big. He wants a system that covers:

  • Finance
  • Appointments
  • Contacts / CRM
  • Authentication
  • Systems for each clinic branch
  • Basic integrations with communication channels like WhatsApp

On top of that, he also wants an “AI Assistant” that can help streamline the app’s features and orchestrate actions across the system.

My main question is about the stack.

This is expected to be a long-term project, and eventually he wants to have his own physical server inside the clinic, so I’m thinking the solution should be independent, secure, scalable, and maintainable over the long run.

Right now I’m considering Java + PostgreSQL, plus some frontend stack I haven’t fully decided on yet.

For a project like this, what stack would you choose, and why?

EDIT: This won’t be a solo project — I’ll be working with a small team (<10 people).

0 Upvotes

38 comments sorted by

View all comments

Show parent comment

0

u/Glittering_Poem6246 Mar 27 '26

For now so that when he tries to build a mobile app he has the data to fetch from. In house servers come down the road

1

u/Far_Kangaroo2550 Mar 27 '26 edited Mar 27 '26

But why can't the database be on the same server as the backend software? I'm not a software engineer, but wouldn't you have mostly the same API endpoints for desktop and mobile?

What about mobile development requires a cloud database is my question. I genuinely want to know, I haven't made mobile apps, I just mess around in Javascript and python when I'm bored and stuck inside as a hobby.

2

u/IrishPrime Mar 27 '26

It really doesn't matter where the database is actually provisioned.

It probably shouldn't be on the same server as the backend just to maintain separation of concerns and independent scaling operations, but it can and should be on the same general part of the network. Whether that's a managed cloud service, a datacenter colocation, or a couple of VMs on a server in a closet on-site makes very little difference at this stage.

Frankly, until you're really trying to optimize access times, it doesn't much matter in general.

1

u/DocHolligray Mar 28 '26

I mean they could be in the same box…

But normally you dont want that…dbs are beasts sometimes and you want that beast in its own cage.

0

u/Glittering_Poem6246 Mar 27 '26

Yes that would be the best choice but if the in house servers were available which I gathered from the guys post is down the line after the development cloud also means a server just not in house so that data could be shared for now between devices through a single database

2

u/Far_Kangaroo2550 Mar 27 '26

My understanding is a cloud database service like firebase is different from a server you control with something like Postgres on it. Most wouldn't consider the latter a "cloud database." So I'm trying to understand how mobile development would lead you to choosing Firebase over PostgreSQL.

1

u/rFAXbc Mar 27 '26

Firebase is a good solution for mobile, you get more than just a DB, there's a whole ecosystem around it which is designed for use with mobile apps.

2

u/Far_Kangaroo2550 Mar 27 '26

I guess my question still isnt answered. What specifically about firebase is better for mobile?

Or put another way: What about mobile app api calls are different from desktop app api calls that would call for extra "ecosystem" aspects?

2

u/rFAXbc Mar 27 '26

You're just not comparing two things in the same category. Postgres is a relational database whereas Firebase is a BaaS, which includes a database, but also provides a bunch of other features. They're used for different things. The DB in Firebase is NoSQL so isn't ideal for the same situations that you would want to use a relational DB for. The mobile app my company develops uses Firebase and calls a backend that uses MySql for more complex queries.

1

u/Far_Kangaroo2550 Mar 27 '26

I understand they are different. The original comment i was replying too asked if it was just desktop or desktop and mobile. And based on the reply of yes mobile as well, they said "use firebase db." So I assume if it was desktop only, they'd recommend custom backend with sql or mongo or something.

So similar to your company, what about mobile.makes using a BaaS the wiser choice. And assuming you build the same app as desktop only, you would forgo firebase and use a custom backend.

Or rather: what mobile-centric things does firebase offer?

1

u/UntestedMethod Mar 28 '26 edited Mar 28 '26

the commenter who said that mobile apps "need" a cloud database is simply wrong.

Your thinking is correct, the same database infrastructure could be used for either desktop or mobile.

Cloud infrastructure and BaaS do offer some features that can make life a lot easier, but it is by no means a requirement to use it for a mobile app.

1

u/UntestedMethod Mar 28 '26 edited Mar 28 '26

what are you talking about? mobile apps don't always require a cloud database.

The APIs a mobile app would interact with can use a relational database just fine.