Menu

Slack Bolt without AWS Lambda: HTTP mode on a host that scales to zero, inside Slack's 3 seconds
📰

Slack Bolt without AWS Lambda: HTTP mode on a host that scales to zero, inside Slack's 3 seconds

DEV Community: serverless·Hüseyin Poyraz Küçükarslan·7 days ago
#N0p7ZOhp
#devtoserverless#devto#dev#slack#bolt
Long article (1260 words) — no AI summary yet.
Reading 0:00
15s threshold

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.

HTTP mode or Socket Mode

Bolt receives requests from Slack one of two ways:

Socket Mode connects your app to Slack over a WebSocket. The connection must stay open, so the app runs all the time.

HTTP mode gives Slack a public Request URL, and Slack sends each event, command and interaction to it. Nothing has to run between requests.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.