DEV Community

campbelltech
campbelltech

Posted on

1

Microservices: Do It Right With These Principles

To ensure that microservices can FAIL INDEPENDENTLY, we need to follow these principles:

👉 Each microservice should only facilitate a single business domain or function.

👉 Microservices should not share code or data.

👉 If you have to, rather violate the DRY principle than compromise on independence.

👉 Microservices should not communicate directly with each other over HTTP. Instead, they should make use of a message/event bus (message queue or broker, e. g. Apache Kafka)

👉 Each microservice should, as far as possible, be unaware of the existence of other microservices.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay