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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How do you define the boundaries of your microservices?

1 点作者 avyfain将近 9 年前

1 comment

elperdido将近 9 年前
I work as a contractor designing microservice arches on AWS. When I talk with my clients&#x27; developers about splitting their app into microservices, I ask them to use this abridged Unix Philosphy to draw borders:<p>1. Make each service do one thing well. To do a new job, build afresh rather than complicate old programs by adding new features.<p>2. Expect the output of every service to become the input to another. Don&#x27;t clutter output with extraneous information.<p>3. Data structures, not algorithms, are central to complicated systems. The more universal you APIs, the easier to add new services later.<p>You can also compare this to functional programming: imagine each microservice is a stateless function for manipulating you data and outputting the result.