No. Each service should own its data. Sharing databases couples services and defeats the purpose. If you need data from another service, use an API or event, not a direct query.
Monolith vs Microservices: Interview Questions and Answers
Should microservices share a database?
The answer
More FAQs in Monolith vs Microservices: Interview Questions and Answers
You incrementally replace parts of a monolith with new services. Old code is strangled (removed) as new services take over. Each step is shippable and reversible. It is the safe way to split a monolith.
Use the saga pattern: each service does its part and publishes an event. If a step fails, compensating events undo prior steps. You accept eventual consistency instead of ACID transactions.
A pattern that stops a service from calling a failing downstream service. It trips after N failures, fast-fails subsequent calls, and resets when the downstream recovers. It prevents cascading failures.
Still have questions?
Browse all our FAQs or reach out to our support team
Want to upskill yourself?
Your learning library
Small steps. Big possibilities.
Find your next course. Build something great.