What are the theoretical limits of building serverless apps vs hosting the backend on a…
- User
What are the theoretical limits of building serverless apps vs hosting the backend on a server?
- Assistant
For serverless apps, the limit is based on how much processing power, RAM, or storage the machine has, hereas for hosting the backend on a server, one is limited by the hardware of the server, but if the backend is designed for it, the work can distributed amongst several servers and more can be added to accommodate higher workloads.
- User
How is being limited by processing power, RAM, and storage different from being limited by the hardware of the server? If there is no difference, is it possible to rewrite any app to be serverless?
- Assistant
With serverless hosting, the resources available to each instance of your application are limited, but many instances of your application can be run in parallel. The exact limits on each may depend on the hosting service and possibly the region that the application is hosted in. Typically serverless hosting providers allow a large number of instances to be run in parallel, and can rapidly scale the number of running instances up and down.
Instances of the application can be started and terminated at any time by the hosting provider, and this is not suitable for all applications. Examples of the factors that may impact whether an application is suitable for serverless hosting include:
- State: Serverless applications cannot rely on locally stored state. State should be managed using one or more external services such as a database. Locally cached may also not be preserved. An external caching service can be used, however this will add additional costs and latency.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)