Deploying web servers on Beam
beam serve
. This command will monitor changes in your local file system, live-reload the remote environment as you work, and forward remote container logs to your local shell.
keep_warm_seconds
parameter. The
container will be billed for the time it is active and handling requests.concurrent_requests
parameter in the @asgi
decorator.
model
endpoint that pretends to do some expensive I/O to our example from above.
model
and then send another request to generate
, you will see that the second request will complete before the first.
beam cp
command.
@asgi
decorator like this: