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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Notation – Bridging infrastructure and runtime code

9 点作者 djgrant超过 1 年前
Hey everyone, Daniel here. I’m building an open source framework that makes it easy to code and deploy serverless applications – <a href="https:&#x2F;&#x2F;github.com&#x2F;notation-dev&#x2F;notation">https:&#x2F;&#x2F;github.com&#x2F;notation-dev&#x2F;notation</a> | <a href="https:&#x2F;&#x2F;notation.dev" rel="nofollow">https:&#x2F;&#x2F;notation.dev</a>.<p>I wanted a tool that delivers the benefits of serverless (scalable managed services), but with a first-class developer experience.<p>Here are the main concepts:<p>1&#x2F; Notation provides a set of primary infrastructure resources (eg API gateway, lambda, event bridge etc) that can be composed together into serverless apps. They are fully typed, so slot into place very easily. A lot of annoying cloud implementation details – things like constructing valid ARN strings, and writing JSON policy documents - are handled by the framework.<p>2&#x2F; Secondary infrastructure resources (eg IAM roles, permissions and integrations) are inferred from the relationships between the primary resources, and from explicit user intents. You can see these visualised in a generated graph.<p>3&#x2F; Runtime code (ie the lambda function code) belongs in separate modules – but, these can be imported into and referenced by infrastructure modules. Again, we have end-to-end types, so if a lambda function were configured to accept and API request, but got attached to an SQS stream, the compiler would quickly complain about that.<p>4&#x2F; Notation apps can be deployed directly to your own cloud accounts. If you want to develop locally, you can deploy using watch mode, which hot-swaps infrastructure resources, and provides snappy updates of serverless functions, while you code.<p>The next step is to integrate more AWS services, and then later expand to other cloud platforms (feature requests ofc welcome).<p>You can give Notation a spin at <a href="https:&#x2F;&#x2F;github.com&#x2F;notation-dev&#x2F;notation">https:&#x2F;&#x2F;github.com&#x2F;notation-dev&#x2F;notation</a>. I’d love to hear your feedback on the approach!

暂无评论

暂无评论