简体   繁体   English

如何构建 AWS Serverless 应用程序?

[英]how to structurize AWS Serverless application?

我发现 nano services 看起来适合 AWS lambdas 的架构是真的,还是我应该坚持使用经典的微服务架构?

AWS lambda's are not a complete architecture, they are merely a component. AWS lambda 不是一个完整的架构,它们只是一个组件。

The functionality you described in your comment would need a full-stack solution, because you need to manage state, etc. Classic microservices sounds like a safer approach because:您在评论中描述的功能需要全栈解决方案,因为您需要管理状态等。经典微服务听起来更安全,因为:

  • It's a more well understood architecture, so there will be more resources you can leverage.这是一个更容易理解的架构,因此您可以利用更多资源。 At this stage, from the little reading I have done, nano seems a bit "flavor of the month".现阶段,从我做的小阅读来看,nano似乎有点“月味儿”。
  • Microservices are much closer to providing a full stack, where as AWS lambdas are only part of it.微服务更接近于提供完整的堆栈,而 AWS lambda 只是其中的一部分。 With a microservices architecture you'll be more consciously considering a wider range of technical aspects.使用微服务架构,您将更有意识地考虑更广泛的技术方面。

If you decide to take the lamdba approach You'll have "nano" architecture based on lambdas, and everything else.如果您决定采用 lamdba 方法,您将拥有基于 lambda 的“纳米”架构,以及其他一切。 Not sure how good an architecture that will be - because it won't be "balanced" if you put all your focus on the lambdas.不确定一个架构有多好 - 因为如果你把所有的注意力都放在 lambdas 上,它就不会“平衡”。 Architecture needs to be holistic, if you are too preoccupied with lambdas you will miss other important things, or and try and use lambdas where a different approach would have been better.架构需要是整体的,如果你过于专注于 lambdas,你会错过其他重要的事情,或者尝试使用 lambdas,而另一种方法会更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 许可 AWS 无服务器应用程序 - Licensing an AWS serverless application 使用AWS无服务器应用程序存储库 - Using AWS Serverless Application Repository 如何在openFaaS中部署无服务器应用程序,类似于带有S3的AWS lambda - How to deploy a serverless application in openFaaS similar to AWS lambda with S3 如何在AWS Lambda上的.NET Serverless应用程序中启用GZIP? - How to enable GZIP in .NET Serverless Application on AWS Lambda? 如何在无服务器 (AWS Lambda) 应用程序中缓存或重用 MongoDB 数据库连接 - How to cache or reuse MongoDB database connection in Serverless (AWS Lambda) application CORS 和 AWS 无服务器应用程序的身份验证死锁 Model - CORS and Authentication deadlock with AWS Serverless Application Model 如何在AWS Lambda上的无服务器应用程序中存储和使用HTML模板(使用AWS SAM)? - How to store and use HTML templates in serverless application on AWS Lambda (using AWS SAM)? 通过 Visual Studio 发布 AWS 无服务器应用程序 - AWS Serverless Application Publish via Visual Studio AWS Lambda .NET无服务器应用程序中的MVC? - MVC in a AWS Lambda .NET serverless application? AWS Lambda 无服务器应用程序嵌入式资源 - AWS Lambda Serverless Application embedded resource
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM