每日阅读——《microservice design》

一、原文:

As new functionalities are added, the codebase gradually becomes larger. Over time, the size of the codebase can become very large, making it difficult to determine where to make modifications when needed. Despite our efforts to make the codebase have a clear modular structure, it is difficult to maintain boundaries between these modules in practice. Similar functionality code begins to appear everywhere in the codebase, making it difficult to fix errors or implement new features.

The concept of microservices applies this modularization idea to independent services. By determining the boundaries of services based on business boundaries, we can more easily determine where specific functional code should be placed. In addition, because each service focuses on a specific boundary scope, it can effectively avoid many related problems caused by a large codebase.

二、翻译:

随着新功能的增加,代码库会逐渐变得庞大。随着时间的推移,代码库的规模可能会变得非常庞大,导致在需要进行修改时很难确定要修改的位置。尽管我们努力使代码库具有清晰的模块化结构,但实际上,难以维护这些模块之间的边界。相似功能的代码开始在代码库中随处可见,给修复错误或实现新功能带来了困难。 微服务的理念将这种模块化思想应用于独立的服务上。通过根据业务边界确定服务的边界,我们可以更容易地确定特定功能代码应该放置在哪里。此外,由于每个服务专注于特定的边界范围内,因此可以有效避免由于庞大的代码库而带来的许多相关问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值