r/cloudcomputing • u/k2718 • Apr 15 '23
Serverless vs. Servers
When deciding between servless vs. server architecture,what factors do you take into account?
How do you anticipate the demand changes that could affect that design choice?
3
Upvotes
7
u/coinclink Apr 15 '23
Generally it's a mix of the two but some thoughts off the top of my head:
Start with serverless when you have no metrics to predict usage and let the platform handle scaling.
Prioritize serverless for applications/scripts that don't need 24/7 compute resources (e.g. scheduled tasks, low/mid-resource batch jobs, event-based triggers that are infrequent, etc.)
Move to managed infrastructure (e.g. EC2+autoscaling) when 1.) you have metrics to define your baseline usage and knowledge of what metrics to use for autoscaling out/in and 2.) the cost metric shows savings over serverless that is worth the effort to implement over serverless.
The summary is: Metrics always define what type of infrastructure you should use.
2
u/VariousAd5147 Apr 18 '23
Serverless can be favorable if you have unpredictable workloads and less latency sensitive applications. Moreover, it can be easier to prototype new applications with serverless as well.
If your use case shows usage metrics outside these patterns, then switch over to server-based
1
u/OkSwordfish8878 Dec 09 '25
If your app’s demand is likely to grow steadily over time, a traditional server setup might be more predictable and cost-effective. However, if you expect frequent bursts of high traffic, serverless can scale seamlessly. Use Datadog to monitor trends and predict how demand fluctuations could affect your design choice.
1
u/sidglobalsolutions Apr 17 '23
Serverless computing is a cloud computing model in which the cloud provider manages the infrastructure and automatically allocates resources to execute and scale applications. This means that developers do not need to provision, configure, or manage servers, and they only pay for the computing resources they use.
In contrast, traditional server-based computing involves the use of physical or virtual servers to run applications. In this model, developers are responsible for managing and scaling their infrastructure.
Here are some key differences between serverless and server-based computing:
Scalability: Serverless computing scales automatically and seamlessly based on the workload, while server-based computing requires manual scaling.
Cost: Serverless computing can be more cost-effective because developers only pay for the resources they use, while server-based computing requires ongoing maintenance and management of servers.
Management: Serverless computing requires less management because the cloud provider handles the infrastructure, while server-based computing requires more management and monitoring of the infrastructure.
Flexibility: Serverless computing allows developers to focus on code and applications rather than infrastructure, while server-based computing provides more control over the infrastructure.
Architecture: Serverless computing typically involves a distributed architecture where functions are deployed in different regions, while server-based computing typically involves a centralized architecture where applications are deployed on specific servers.
Serverless computing can be a more efficient and cost-effective way to run applications, especially for applications with unpredictable or variable workloads. However, it may not be suitable for all types of applications, and developers should carefully consider their specific requirements when choosing between serverless and server-based computing.