原文
| ||||||||||
| ||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43515563
一篇Hacker News的讨论帖围绕微服务的缺点展开,起因是一篇题为“为什么我不再和架构师谈论微服务”的文章。评论者们强调了微服务的额外开销,有人估计与简单的函数调用相比,CPU和网络开销增加了1000倍。组织上的复杂性,特别是管理不同端点的团队之间的沟通开销,也是一个重要的担忧,可能还会增加另一个1000倍的成本因素。一位评论者讽刺地将微服务定义为基于武断的架构决策而非实际需求。另一位评论者指出微服务的定义过多,认为这个术语本身可能比有帮助更令人困惑。讨论还涉及到是否应该简单地将HTTP公开的功能视为API,一些人质疑普遍存在的贬低单体架构和微服务的趋势,认为两者根据具体情况都有效,这可能并非软件项目交付时最大的问题。
| ||||||||||
| ||||||||||
![]() |
Think: how much overhead, one function has in terms of the CPU calling it, then returning it.
How many 1000s of X more are you adding by making that a function inside another webserver.
Yes, there are times when a microservice is correct, there are many-many-many other times where using them is pure waste.
reply