i want to develop a role-based GPay-like prepaid money system that includes:
-
Web Applications:
- Super Admin Portal for managing the overall system.
- Admin Portal for managing specific functionalities.
- B2C Portal for end-users.
-
Mobile Application for B2C users.
Technology Stack:
- Frontend and Backend: .NET Core MVC with Microservices architecture.
- Database: PostgreSQL.
- Containerization: Kubernetes for managing microservices.
Requirements:
- Guidance on how to design the infrastructure for this project.
- Recommendations for the number of servers required for hosting the application.
- Details on what should be hosted on each server (e.g., microservices, database, etc.).
The goal is to ensure scalability, reliability, and efficient resource utilization.
Could someone provide insights or suggestions for the optimal infrastructure setup?
I am looking for guidance from experienced professionals who have worked on similar projects.

Amira BedhiafiPosted Jan 14, 2025, 1:20 PM
Since you're using a microservices architecture, I think that each service should be isolated to make sure that your solution guarantee scalability and maintainability. INMHO these services should be containerized and managed by Kubernetes.
PostgreSQL should be the central relational database for storing data, but you should consider 2 points :
- Database Clustering and Replication: Use PostgreSQL's built-in replication for high availability and fault tolerance. Set up read replicas for scalability in read-heavy operations, especially for fetching transaction history or user details.
- Separation of Concerns: Use separate databases or schemas for different modules such as user data, transaction logs, etc. This helps in managing performance and scaling each module independently.
For Kubernetes, here is what my reaserach helped me to find:Then you can plan the server distribution as follows:
Some links to help you (from where I got inspired) :
Benefits of Microservices Architecture for Banking and FinTech Industries
Is Microservice the Optimal Architecture for Fintech Applications? | by Rohan_157 | Virtual Force Inc. | Medium
Microservices in Banking & Finance: Modernizing Legacy Systems
Payment System Interface Modernization on AWS: Modern Cloud-Native Payment Systems - Payment System Interface Modernization on AWS
Building Payment System Architecture: Comprehensive Guide | Devox Software
Unlocking the Power of Microservices in Financial Systems - TechBullion
Microservice architecture: A transformational change in the financial ecosystem | Fortunesoftit
15-083_e7db671b-12b2-47e7-9692-31808ee92bf1.pdf