Skip to content

Conversation

@ZePedroResende
Copy link
Contributor

@ZePedroResende ZePedroResende commented Jan 15, 2026

Why

We want to support the maximum number of stacks while conserving the server resources . We can look at heroku or vercel approach of suspending the resource until needed .

How

We only spawn the anvil process when a request is made to the stack , after 10 minutes of inactivity we kill the process again.
This lifecycle is managed by the Anvil genserver .

@ZePedroResende ZePedroResende added the enhancement New feature or request label Jan 15, 2026
@vercel
Copy link

vercel bot commented Jan 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
stacks Ready Ready Preview, Comment Jan 16, 2026 6:49pm

Request Review

alias Ethui.Stacks

# :timer.minutes(30)
@idle_timeout :timer.seconds(30)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

30 seconds seems way too little
how about 30 seconds for dev and 10 minutes for prod?

@ZePedroResende ZePedroResende merged commit 172359e into main Jan 16, 2026
3 checks passed
@ZePedroResende ZePedroResende deleted the zpr/suspend branch January 16, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants