Originally published on gregale.dev. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.
A Slack app built with Bolt can run in HTTP mode on a host that scales to zero, as long as the first request after an idle period is answered within Slack's 3 seconds. Slack expects a 2xx for an Events API request within three seconds and an acknowledgement of a slash command within 3,000 milliseconds. On Gregale, the Bolt app on this page wakes from a parked snapshot in under 300 ms, acknowledges first, and keeps running whatever work comes after the acknowledgement.
Bolt receives requests from Slack one of two ways:
/slack/events.
HTTP mode is what lets the app scale to zero, and the deadlines are what to plan around:
| Request from Slack | Deadline | If you miss it |
|---|---|---|
| Events API event | 2xx within three seconds |
Retried three times: nearly immediately, after 1 minute and after 5 minutes |
| Slash command | Acknowledged within 3,000 milliseconds | The user sees an operation_timeout error |
A retried event carries x-slack-retry-num (1, 2 or 3) and x-slack-retry-reason, which is http_timeout when your app was too slow.
package.json:
{
"name": "slack-bolt-http",
"private": true,
"type": "module",
"scripts": { "start": "node app.js" },
"dependencies": { "@slack/bolt": "^5.1.0" },
"engines": { "node": ">=22" }
}
app.js:
import { App } from '@slack/bolt';
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET,
customRoutes: [
{
path: '/healthz',
method: ['GET'],
handler: (req, res) => {
res.writeHead(200);
res.end('ok');
},
},
],
});
app.command('/ping', async ({ ack }) => {
await ack('pong');
});
app.event('app_mention', async ({ event, say }) => {
await say(`Hi <@${event.user}>`);
});
await app.start(Number(process.env.PORT ?? 3000));
app.logger.info('Bolt app is running');
Bolt checks Slack's request signature with the signing secret before any listener runs, and answers Slack's URL verification for you. The customRoutes entry adds a cheap /healthz path for Gregale's health check. Without it, Bolt logs every health and warm-up request as unhandled.
Make the app public in gregale.yaml, because Slack cannot send a Gregale API key, and name the health path:
access: public
hosting:
health: /healthz
Put the bot token and signing secret from your Slack app's settings in a secrets file, and deploy:
printf 'SLACK_BOT_TOKEN=xoxb-…\nSLACK_SIGNING_SECRET=…\n' > ../slack.secrets
gregale deploy --name my-slack-app --secrets-file ../slack.secrets
In the Slack app settings, set the Request URL for events, slash commands and interactivity to https://my-slack-app.gregale.app/slack/events.
Bolt checks the bot token with Slack when it starts. With a wrong or revoked SLACK_BOT_TOKEN, the process exits with invalid_auth, and gregale logs my-slack-app shows it.
Call ack() before anything slow, such as a database query or an LLM call, and send the result afterwards with say() or the command's respond(). That is Bolt's default in HTTP mode, and on Gregale it works as written: the instance keeps running while the listener works after the acknowledgement, and the reply to a call your app made resumes a d instance. In our test, a 4-second outbound call started after the response finished in 4.3 seconds, without waiting for another request.
That differs from AWS Lambda, where a handler can be stopped once it has responded. Bolt's Lambda guide uses AwsLambdaReceiver, and with other receivers it requires processBeforeResponse: true, which defers the acknowledgement until after your handler has run. The handler's work then counts against Slack's 3 seconds.
Whatever the host, make event listeners safe to run twice. A retry can deliver an event your app already handled, if the first attempt was slow rather than lost.
We deployed this app on Gregale on 2026-11-27 and sent it requests signed with a test signing secret, after letting it park. For the test only, Bolt's token check was turned off, because the token was not a real one.
/ping was acknowledged with pong. 401.
About a second after each request, with nothing in flight, Gregale s the instance, and d seconds are not billed.
| Platform | Idle app | First request after idle |
|---|---|---|
| Gregale | d, then parked to a snapshot; neither billed | 270 ms to first byte in our test; work after ack() keeps running |
| AWS Lambda | Bolt uses AwsLambdaReceiver |
With processBeforeResponse: true , acknowledged after the handler runs |
| Render (Free web service) | Spins down after 15 minutes without inbound traffic | About one minute to spin up, past Slack's 3 seconds |
| Heroku (Eco dyno) | Sleeps after 30 minutes without web traffic | Wakes "after a short delay" |
Sources, checked 2026-11-27: Slack: Events API, Slack: slash commands, Slack: verifying requests, Bolt: custom routes, Bolt: deploying to AWS Lambda, Render free instances, Heroku Eco dyno hours.
A Bolt app in HTTP mode fits the Free plan: one app, 256 MB, and 20 included GB-RAM-hours a month, billed only while it handles requests. See Gregale pricing and How scaling to zero works.
Should my Slack app use Socket Mode or HTTP mode?
Socket Mode keeps a WebSocket open, so the app has to run all the time. HTTP mode gives Slack a Request URL, Bolt’s /slack/events, and nothing has to run between requests, which lets the app scale to zero.
What happens if my Slack app answers too slowly?
Slack retries an Events API request three times: nearly immediately, after 1 minute and after 5 minutes, with x-slack-retry-reason set to http_timeout. A slash command not acknowledged within 3,000 milliseconds shows the user an operation_timeout error.
Does work after ack() keep running on Gregale?
Yes. The instance keeps running while the listener works after the acknowledgement, and the reply to a call your app made resumes a d instance. On AWS Lambda, Bolt needs processBeforeResponse: true instead, which defers the acknowledgement.
Does a Bolt app fit the Free plan?
In our test it used 89 MB, inside the Free plan’s 256 MB, and it is billed only while it handles requests: about a second after each one, with nothing in flight, Gregale s it.