首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >基于Serverless框架的可独立部署微服务模板

基于Serverless框架的可独立部署微服务模板
EN

Stack Overflow用户
提问于 2020-12-03 11:11:14
回答 1查看 49关注 0票数 0

遵循微服务的原则,

代码语言:javascript
复制
Defined domain: Each microservice has a defined domain of responsibility (sometimes referred to as a bounded context). The microservice manages this domain itself, without concerning itself about other domains.

Self-contained: Each microservice is a self-contained unit. It may contain multiple components that all work together.

Independently deployable: Each microservice can be built and deployed as an independent entity. Deploying one microservice does not affect another microservice.

Manages data stores: The data store or stores used by each microservice should be contained within the microservice boundary, thereby ensuring that there are no hidden dependencies caused by data stores being shared.

Loosely coupled: Microservices should be loosely coupled, and ideally communication will occur asynchronously using event sourcing or queues.

Highly automated: The build, deployment, and ongoing management of microservices should emphasize automation wherever possible.

我正在寻找代码结构/样板的建议,以实现这些原则,特别是独立部署、松散耦合和包含的数据存储。在AWS上使用无服务器框架。如果能有工作良好的样板的参考资料,并认识到这些原则,那么部署顺序就不再重要了。

我偶然发现了https://github.com/trilom/sls-microservice,但这里有makefile。我不喜欢不得不使用它们的想法。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-19 08:31:26

我发现这就是正确的目的:https://github.com/zotoio/generator-mono-serverless

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65119342

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档