TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Build a serverless Discord bot with OpenFaaS and Golang

3 点作者 alexellisuk大约 2 年前

1 comment

alexellisuk大约 2 年前
&gt; If you’ve ever tried to build a bot in the past, you may have noticed that they often rely upon a long-lived websocket. This means that your code needs to stay running all of the time, as a daemon.<p>&gt; A serverless approach means writing efficient, stateless functions that respond to events and can be scaled independently. They only need to run when an event is available and can be scaled down to zero when not in use. Fortunately, most platforms that support websockets, also support webhooks for responding to events.<p>Code repo for this write-up: <a href="https:&#x2F;&#x2F;github.com&#x2F;alexellis&#x2F;discord-to-zoom&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;alexellis&#x2F;discord-to-zoom&#x2F;</a>