TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

1 pointsby avyfainalmost 9 years ago

1 comment

elperdidoalmost 9 years ago
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.