TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is there any consensus on defining microservice size?

6 点作者 roopawl超过 3 年前
Put another way, how have you seen service boundaries defined, and what was the cost&#x2F;benefit?<p>Did you take a way a preference or set of criteria that were particularly effective?

2 条评论

PaulHoule超过 3 年前
The most important place to put boundaries is where different technology or configurations are necessary for scaling or cost control.<p>For instance some things work fine with serverless architecture, some things do not.<p>Some things are CPU limited, other things are memory limited.<p>The best time to adopt microservices is that time it hits your service costs too much to run and you are counting the days of runway you have left.<p>You might have one system written in PHP which is 99% ok but the 1% of it which burns 99% of the resources. Write that part in Go, leave the rest alone.<p>Do not get seduced by the ‘freedom’ to be sloppy, use Guava 7 here and Guava 25 there, have as many ways to start and stop servers as Paul Simon had to leave his lover. Standardize all the little things (anything you would bikeshed) because all those meaningless-but-essential things will destroy your devs unless it easy for them to transfer experience from service X to Y.
rshnotsecure超过 3 年前
Less than 500 lines was a metric I heard once. As I recall it was from an O&#x27;Reilly blog interviewing someone, and the interviewer had to practically drag that definition out of the interviewee. YMMV.