Overview - High cohesion
What is it?
High cohesion means that parts of a system or service are closely related and focused on a single task or responsibility. In microservices, it means each service does one thing well and contains all related functions inside it. This makes the system easier to understand, maintain, and change. Without high cohesion, services become messy and hard to manage.
Why it matters
High cohesion helps teams build reliable and scalable systems by keeping each microservice focused and independent. Without it, services become tangled, causing bugs, slow development, and difficulty scaling. Imagine a kitchen where each chef only cooks one dish perfectly versus one chef trying to cook everything at once—high cohesion is like having specialized chefs.
Where it fits
Before learning high cohesion, you should understand what microservices are and the basics of service decomposition. After mastering high cohesion, you can learn about low coupling, service communication patterns, and scaling strategies to build robust distributed systems.