Advice Needed for Rebuilding My Web App with Microservices and Kubernetes

0
4
Asked By TechWhiz101 On

Hey everyone! I'm currently working on a simple web app built with Next.js that has user management, event management, reviews, and comments. I'm planning to rebuild it using a microservices architecture and I need some guidance. My tech stack includes: Java (Spring Boot) for the backend, Next.js for the frontend, Flutter for the mobile app, and Kubernetes for deployment (I've got some basic knowledge).

Here are my specific questions:
1. How can I set up databases in Kubernetes? I used Supabase before, but now I want to run everything inside Kubernetes with persistent volume claims and storage classes. I've heard about using Bitnami PostgreSQL Helm chart and CloudNativePG, but I'm not sure what's the best for production.
2. What's the best way to build a secure user management service? I'm currently using NextAuth, but I'm looking for a microservices-friendly option with JWT. Is Keycloak a good fit for this? How do I ensure it's set up securely in Kubernetes?
3. Should I implement an API Gateway? What's the best approach for routing traffic to my services with NGINX Ingress, Kong, or something else? How should I handle authentication, rate limiting, and service routing?
4. Is it advisable to use a message broker like Kafka or RabbitMQ? Are they both good for Kubernetes microservices, and what's the best way to deploy and manage them?
5. Finally, what are the best practices for deployment? I can build Docker images and basic manifests, but I have some confusion about specific points.

If anyone has links to good open-source repositories or tutorials on real-world Kubernetes microservices projects, I'd really appreciate it!

1 Answer

Answered By CodeNinja42 On

If your app is pretty simple, I'm curious why you're moving to microservices. It's a lot to manage! But if you're aiming for scalability in the future, it makes sense to start learning now. Just make sure to keep a clear structure as you expand.

UserForwardThinker -

Exactly! Starting early is wise, especially if you're planning on scaling. You'll thank yourself later!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.