Hacker News new | ask | show | jobs
by konart 937 days ago
Often this is view as counter microservices pattern. Microservice architecture assumes each service has its own data storage and is logically independable from other services.

Monolith on the other hand is a single application with all of the logic in one place.

Distibuted monolith is a set of applications\services like in microservices pattern but they can share common data storage and depend on each other.

1 comments

Data Storage and Compute should be separate orthogonal issues, it's not needed in this comparison.

Stateful vs Stateless.

Your monolith is a binary that gets distributed to hosts to perform some function. The binary has multiple entry points that can be envoked. Most calls are via internal library call.

Microserverices (also stateless) have a different artifacts for each component, services call other services via a private API (often grpc/httprc).

Good point. I was just trying to (awkwardly) say that monolith can also be split into a separate parts communicating via a private API.