Hi everyone! I’m learning backend development and recently built a small micro-service that handles basic user data through a REST API. Now I want to take the next step and deploy it using cloud computing so that it’s accessible online and can scale when needed.
I’ve read about different approaches like using serverless functions or containerized services, but I’m not sure which one is more beginner-friendly. I’d love to hear from others who have tried both. What would you recommend for someone just starting out?
Also, how do you usually manage your database connection when your app is running in the cloud? Should it be part of the same setup or managed separately?
Any insights, examples, or best practices would be super helpful. Thanks in advance for sharing your experience!
Top comments (2)
Choose a cloud platform (like AWS, Azure, or Google Cloud), containerize your app using Docker, and deploy it through a service like Kubernetes or AWS ECS. Expose it via an API gateway, then test and monitor your microservice.
Thanks so much for the reply! I really appreciate the detailed advice. I’ve heard a lot about Docker and Kubernetes, but honestly, it’s a bit overwhelming as a beginner. I’m still getting the hang of containerizing an app and deploying it smoothly, so I might start with something a bit simpler, like using AWS ECS for deployment.
One thing I’m curious about: when you set up your app with a service like ECS or Kubernetes, how do you handle database connections? Should the database be set up on a separate service (like RDS in AWS), or is it okay to include it within the same containerized app for simplicity’s sake?
Again, thanks for the insights, it’s really helping me make sense of the process!