你需要的是模块,而不是微服务
Dissecting why everybody keeps talking about microservices.
剖析为什么每个人都在谈论微服务。
02 January 2023
2023年1月2日
tl;dr Architecture is hard sometimes--people keep offering up some new idea that quickly becomes the mainstream "way to do it" without any context or nuance, and the industry, desperate to find ways to improve their architecture, snaps it up without hesitation. Microservices was the latest in the trend, and it's time we dissected the idea and got to the real root of what's going on.
总结 架构有时很难——人们不断提出一些新的想法,这些想法很快就成为主流的“做法”,却没有任何背景或细微差别,而行业迫切希望找到改进其架构的方法,毫不犹豫地接受了这些想法。微服务是最新的趋势,现在是时候剖析这个想法,找出真正的根源。
At the heart of microservices, we're told we'll find...
在微服务的核心,我们被告知会发现...
... Lots of Good Things (TM)!
... 许多好东西 (TM)!
- "Scalability": "Code can be broken into smaller parts that can be developed, tested, deployed, and updated independently."
- "可扩展性": "代码可以分解成更小的部分,这些部分可以独立开发、测试、部署和更新。"
- "Focus": "... developer focuses on solving business problems and business logic."
- "Focus": "... 开发人员专注于解决业务问题和业务逻辑。"
- "Availability": "back-end data must always be available for a wide range of devices... ."
- "可用性": "后端数据必须始终可用于各种设备...。"
- "Simplicity": "provides simplified development of large scale enterprise level application."
- "简洁性": "提供简化的大规模企业级应用程序开发。"
- "Responsiveness": "... enables distributed applications to scale is response to changing transaction loads... ."
- "响应能力": "... 使分布式应用程序能够根据变化的事务负载进行扩展...。"
- "Reliability": "Ensures no single point of failure by providing replicated server groups that can continue when something breaks. Restores the running application to good condition after failures occur."
- "可靠性": "通过提供复制的服务器组,确保没有单点故障,当某些东西出问题时可以继续运行。在故障发生后恢复运行的应用程序到良好状态。"
These all sound relatively familiar, I'd imagine, but the fun part about those six quotes is that two were taken from microservices literature (blog posts, papers, etc), two from twenty-years-ago EJB literature, and two from Oracle Tuxedo, which is forty-plus-years-ago technology. Can you spot which went to which?
这些听起来都相对熟悉,我想,但关于这六个引用的有趣部分是,其中两个来自微服务文献(博客文章、论文等),两个来自二十年前的E...