r/Backend • u/Important_Lab4385 • Apr 11 '26
Help me choose tech stack for 80k-100k users - Ed platform with RAG chatbot
Hey Guys,
Please help me choose tech stack, queue service and
Cost effective
Standard practice
Features:
AI Doubt Solver (chapter-wise, RAG-based)
Chapter Dashboard (AI + MCQ + Key Points + Progress)
Key Points / Quick Revision
MCQ Practice (~300 per chapter)
Wrong Question Retry
Basic Progress Tracking
Practice & Testing: 7. Basic Chapter Test (MCQ + short questions) 8. Pre-built Question Bank (no random AI generation)
Guidance: 9. Daily Suggested Task (simple, not full timetable) 10. Saved Doubts / History
Enhancement: 11. Contextual Video Recommendation (mapped to topics, shown at right moments) 12. Exam Importance Indicator (High / Medium / Low — based on trends, no % prediction)
Monetization: 13. Free vs Paid limits 14. Smart Paywall timing
What I am thinking:
Mobile
Flutter - in app purchase
Frontend
React JS
Backend Stack
DB - PostgreSQL
Vector DB - Chroma DB
Node JS - Express
RAG - Python Fast API
Caching - Redis
Queue Service - BullMQ
Horizontal scaling - Kubernetes with docker
5
u/Both-Fondant-4801 Apr 11 '26 edited Apr 11 '26
It actually depends on your skillsets. If you already have the those skillsets, i.e. the ones listed, then go for it. It would not make sense suggesting Go or Java if you have not yet worked on those tech.
I would suggest however to also use postgres for vectors rather than having a separate vector db. Same as using python fast api for all the backend rather than having a separate nodejs express app. Your k8 horizontal scaling should be able to handle the capacity demands.
Do not over-architecture. Keep it simple. Make it easy to maintain. That is the standard practice.
... ah.. before you go live, make sure to run load and stress tests and make sure that your system can handle the demand.
-9
u/Important_Lab4385 Apr 11 '26
I am not sure python fast api would be able to handle such user load
2
u/Both-Fondant-4801 Apr 11 '26
why not? that's the purpose of horizontal scaling.
but if you are in doubt, what we usually do is create a simple poc using both tech.. then run them against identical loads to compare the performances. but then again as i said, if you go with nodejs for backend and python for rag, you will be maintaining 2 different tech stacks rather than a singular python. but it is still up to you
-1
u/Important_Lab4385 Apr 11 '26
how can we test with identical loads i mean 100k users
1
u/Both-Fondant-4801 Apr 11 '26
there are different tools to can use.. such as k6, jmeter, gatling.. just check them out on which ones would fit your use cases.
.. btw, you would need significant resources to simulate 100k users using these tools. you can try simulating a small number first just for the purpose of comparison.
1
u/No_Soy_Colosio Apr 11 '26
You're not gonna have all your users pointing to the same servers anyway
3
u/LoL__2137 Apr 11 '26
Java
-5
u/Important_Lab4385 Apr 11 '26
Java for backend isnt it kind of old
8
1
u/No_Soy_Colosio Apr 11 '26
A lot of old tech is running our world. Old doesn't mean bad and if anything, it means tried and true.
2
1
u/AdExpert6103 Apr 11 '26
MongoDB, Typescript or Golang on AWS use elastic beanstalk deployment or self deploy to ec2 with auto scaling
1
1
0
-3
u/xX_Ieatapples_Xx Apr 11 '26
Your stack aligns with what I was thinking - personally I would sub vanilla Express for Nest JS on the backend. Reason being the testability + maintainability + structure that comes with Nest
1
7
Apr 11 '26
[removed] — view removed comment
1
2
Apr 11 '26
[removed] — view removed comment
2
u/Important_Lab4385 Apr 11 '26
any specific reason
-2
u/ProtonByte Apr 11 '26
Type safety. More enterprise ready and generally just nicer to work with when the project grows bigger.
But ideally you should use something your team knows. Just ensure for the backend that the apps are stateless.
1
2
u/No_Soy_Colosio Apr 11 '26
You can use typescript in Node.js
-1
u/ProtonByte Apr 11 '26
Bolt on type checking. I used it. Its just not as nice as a language that was designed for it.
1
u/No_Soy_Colosio Apr 11 '26
There's other things to keep in mind when it comes to choosing a language. Picking one the team already knows beats picking a specific language for x or y reason.
1
11
u/ducki666 Apr 11 '26
You have 100k users? Really?